Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Straightening Links When a Node is Moved (Read 2367 times)
Paul
YaBB Newbies
*
Offline



Posts: 17
Joined: Jan 8th, 2013
Straightening Links When a Node is Moved
Sep 9th, 2013 at 9:40pm
Print Post  
Is there a property that can be set on the diagram that will remove any bends in a link when the user moves a node?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Straightening Links When a Node is Moved
Reply #1 - Sep 10th, 2013 at 5:45am
Print Post  
The links are straight lines by default, unless you change their Shape, Segments or AutoRoute properties.

If you want them shown as straight lines only while a node is being moved, you could disable AutoRoute and set SegmentCount = 1, Shape = Polyline from NodeStartModifying event hander (for each link in node.GetAllLinks()), and reset them back to their usual shape from NodeModified.

If you need the links straightened after a node is moved, set them to 1-segment polyline in NodeModified handler.

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



Posts: 17
Joined: Jan 8th, 2013
Re: Straightening Links When a Node is Moved
Reply #2 - Sep 10th, 2013 at 9:50pm
Print Post  
That's exactly what I was looking for. Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint