Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Issue withArrow head directions (Read 7543 times)
chiru29
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 35
Location: Hyderabad
Joined: Jul 16th, 2010
Issue withArrow head directions
Mar 26th, 2012 at 5:29am
Print Post  
Hi,

In the attached image, the arrow head directions (highlighted arrow heads) are not correct. please help me on fixing this issue.

thanks,
Chiru
  

Arrowissue.PNG (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issue withArrow head directions
Reply #1 - Mar 26th, 2012 at 6:08am
Print Post  
Hi,

Have you tried calling their Route method?

Stoyan
  
Back to top
 
IP Logged
 
chiru29
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 35
Location: Hyderabad
Joined: Jul 16th, 2010
Re: Issue withArrow head directions
Reply #2 - Mar 26th, 2012 at 6:16am
Print Post  
yes
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issue withArrow head directions
Reply #3 - Mar 26th, 2012 at 6:24am
Print Post  
Are the nodes marked as obstacles (DiagramNode.Obstacle = true)?
  
Back to top
 
IP Logged
 
chiru29
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 35
Location: Hyderabad
Joined: Jul 16th, 2010
Re: Issue withArrow head directions
Reply #4 - Mar 26th, 2012 at 6:39am
Print Post  
Yes. Node level obstacle property set to TRUE.

And to route all links, i am calling below piece of code:
this.diagram.LinkRouter.RouteLinks(links);


thanks,
Chiru
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issue withArrow head directions
Reply #5 - Mar 26th, 2012 at 7:57am
Print Post  
Please attach the diagram xml file. Are you using the default LinkRouter and routing options?
  
Back to top
 
IP Logged
 
chiru29
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 35
Location: Hyderabad
Joined: Jul 16th, 2010
Re: Issue withArrow head directions
Reply #6 - Mar 26th, 2012 at 9:00am
Print Post  
i have set the following properties for diagram.
this.diagram.RoutingOptions.Anchoring = Anchoring.Reassign;
this.diagram.RoutingOptions.DontOptimizeLongRoutes = false;
this.diagram.LinkCrossings = MindFusion.Diagramming.Silverlight.LinkCrossings.Arcs;
this.diagram.LinkStyle = LinkStyle.Cascading;
this.diagram.LinkSegments = 2;
this.diagram.DynamicLinks = true;
this.diagram.RouteLinks = true;
this.diagram.RoundedLinks = true;
this.diagram.CrossingRadius = 4.0;
this.diagram.RoundedLinksRadius = 4.0;
this.diagram.RoutingOptions.EndOrientation = MindFusion.Diagramming.Silverlight.Orientation.Auto;

this.diagram.LinkRouter = new GridRouter();

please find the attached xml
  

diagram_map.txt (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Issue withArrow head directions
Reply #7 - Mar 26th, 2012 at 12:38pm
Print Post  
It seems the default grid size is too coarse for your diagram since the nodes are small and/or close to each other. Try setting a smaller grid size, e.g. this worked for me:

diagram.RoutingOptions.GridSize = 3;
diagram.RoutingOptions.NodeVicinityCost = 10;

Or use the default QuickRouter - it does not depend on the distance between nodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
chiru29
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 35
Location: Hyderabad
Joined: Jul 16th, 2010
Re: Issue withArrow head directions
Reply #8 - Mar 26th, 2012 at 2:20pm
Print Post  
Thanks Stoyan. Its working perfect!!


regards,
Chiru
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint