Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Reroute Links Programmatically (Read 2283 times)
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Reroute Links Programmatically
May 20th, 2020 at 8:52am
Print Post  
Hi,

I am sorting nodes when user deleted a node from diagram. But links saving their positions. How can I reroute links programmatically?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Reroute Links Programmatically
Reply #1 - May 20th, 2020 at 9:18am
Print Post  
Hi,

Try Diagram.RouteAllLinks();

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Re: Reroute Links Programmatically
Reply #2 - May 20th, 2020 at 9:39am
Print Post  
It does not work. Anything else?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Reroute Links Programmatically
Reply #3 - May 20th, 2020 at 12:00pm
Print Post  
I guess make sure your links are connected to nodes in the first place. Does dragging a node move any links along with it? If using node.SetBounds method to sort your nodes, verify the updateLinks argument is true.
  
Back to top
 
IP Logged
 
Ktmr
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 24
Joined: Mar 27th, 2020
Re: Reroute Links Programmatically
Reply #4 - May 20th, 2020 at 12:15pm
Print Post  
It is working now after setting updateLinks true.

Thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint