Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to prevent links overlapping between two shape nodes (Read 2280 times)
ashar11
Junior Member
**
Offline


I Love MindFusion!

Posts: 56
Joined: Jun 29th, 2017
How to prevent links overlapping between two shape nodes
Jan 17th, 2018 at 1:00pm
Print Post  
Hi,
    When I create links between two shape nodes the links start overlapping on first link, how can i give a little distance between them so I can distinguish among them.
Thanks
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: How to prevent links overlapping between two shape nodes
Reply #1 - Jan 17th, 2018 at 1:34pm
Print Post  
Hi,
Try the method from this post -
https://mindfusion.eu/Forum/YaBB.pl?num=1374661504/1#1

Regards,
Slavcho
  
Back to top
 
IP Logged
 
ashar11
Junior Member
**
Offline


I Love MindFusion!

Posts: 56
Joined: Jun 29th, 2017
Re: How to prevent links overlapping between two shape nodes
Reply #2 - Jan 26th, 2018 at 12:39pm
Print Post  
Hi,
I have tried this solution you provided given in the link, but the issue is when i user PullLinksApart(2) with the padding it also moves my anchor point whether its on point X or Y.What i needed is, after i create the links between two nodes and then i move one of the node from them the it creates the gap among links automatically which is perfect and happening right now. So how can I implement the same effect. I have attached the pic below.
Thanks
  

Untitled3.png ( 29 KB | 95 Downloads )
Untitled3.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: How to prevent links overlapping between two shape nodes
Reply #3 - Jan 29th, 2018 at 8:21am
Print Post  
If you like what you get after moving a node, I guess it's the result of automatic link routing, or of running some code in NodeModified event handler. There's a slight difference in how the AutoRoute property works when you create or modify a single link - it does not consider other links, while moving a node or calling diagram.RouteAllLinks will consider all links together and pull them apart internally. So try calling diagram.RouteAllLinks() after creating all nodes and links.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
ashar11
Junior Member
**
Offline


I Love MindFusion!

Posts: 56
Joined: Jun 29th, 2017
Re: How to prevent links overlapping between two shape nodes
Reply #4 - Jan 29th, 2018 at 8:37am
Print Post  
Hi,
Yes after using diagram.RouteAllLinks() in linkcreated funtion its working as i needed.
Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint