Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic link arrow head direction (Read 3488 times)
steve
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Feb 23rd, 2010
link arrow head direction
Mar 25th, 2010 at 4:31pm
Print Post  
Hi,

I'm having some trouble with the arrowheads on my links - they quite often dont point in the right direction (perpendicular to the border of the shape they are connected to).


I'm setting up the links as follows:
[code]
DiagramLite.LinkCrossings = LinkCrossings.Arcs;
           DiagramLite.RouteLinks = true;
           DiagramLite.RoutingOptions.Anchoring = Anchoring.Ignore;
           DiagramLite.RoutingOptions.SmartPolylineEnds = true;
           DiagramLite.LinkStyle = LinkStyle.Polyline;
           DiagramLite.AllowUnconnectedLinks = true;
[/code]

If I'm doing anything wrong, or if anyone has a solution to the problem, please let me know!

Thanks,
Steve
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: link arrow head direction
Reply #1 - Mar 25th, 2010 at 6:02pm
Print Post  
Hi,

Is the last segment perpendicular to the node border, but the arrowhead pointing to the wrong direction? Or the segment is not perpendicular as well? If it's the latter, try changing from LinkStyle.Polyline to Cascading.

Stoyan
  
Back to top
 
IP Logged
 
steve
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Feb 23rd, 2010
Re: link arrow head direction
Reply #2 - Mar 26th, 2010 at 6:47am
Print Post  
It varies - sometimes both the segment and the arrowhead are not perpendicular, sometimes just the arrowhead.

I have tried using LinkStyle.Cascading, but have had the same problems.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: link arrow head direction
Reply #3 - Mar 26th, 2010 at 7:30am
Print Post  
Could you email to support@mindfusion.eu a sample diagram file that shows that? If there are some background nodes behind the links, try setting their Obstacle property to false to see if that helps.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: link arrow head direction
Reply #4 - Mar 26th, 2010 at 10:06am
Print Post  
It seems QuickRouter ignores ContainerNodes, always considering them as non-obstacles, and so the link segments get aligned to the node borders sometimes. Try using GridRouter for now:

diagram.LinkRouter = new GridRouter();

Stoyan
  
Back to top
 
IP Logged
 
steve
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Feb 23rd, 2010
Re: link arrow head direction
Reply #5 - Mar 29th, 2010 at 9:16am
Print Post  
Thanks Stoyan,

That has improved it considerably - much better routing.

Cheers,
Steve
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint