Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to force the arrow of Link to be perpendicular to the Node boundary in AutoRoute? (Read 5506 times)
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
How to force the arrow of Link to be perpendicular to the Node boundary in AutoRoute?
Feb 14th, 2020 at 5:11am
Print Post  
How to force the arrow of Link to be perpendicular to the Node boundary in AutoRoute?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: How to force the arrow of Link to be perpendicular to the Node boundary in AutoRoute?
Reply #1 - Feb 14th, 2020 at 6:41am
Print Post  
set link.Shape to Cascading.
  
Back to top
 
IP Logged
 
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Re: How to force the arrow of Link to be perpendicular to the Node boundary in AutoRoute?
Reply #2 - Feb 14th, 2020 at 8:24am
Print Post  
i hope like redline
  

0001.PNG ( 3 KB | 156 Downloads )
0001.PNG
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: How to force the arrow of Link to be perpendicular to the Node boundary in AutoRoute?
Reply #3 - Feb 17th, 2020 at 6:49am
Print Post  
Link got orthogonal to nodes in my test, using default router class and router options -

Code
Select All
diagram.RouteLinks = true;
var n1 = diagram.Factory.CreateShapeNode(20, 20, 40, 20);
var n2 = diagram.Factory.CreateShapeNode(100, 40, 40, 20);
n1.AnchorPattern = AnchorPattern.TopInBottomOut;
n2.AnchorPattern = AnchorPattern.TopInBottomOut;
foreach (var ap in AnchorPattern.TopInBottomOut.Points)
	ap.AllowIncoming = ap.AllowOutgoing = true;
diagram.Factory.CreateDiagramLink(n2, n1);
 



Please post your routing set-up code.
  

Untitled_009.png ( 36 KB | 183 Downloads )
Untitled_009.png
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint