Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ym (Read 1359 times)
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
ym
Sep 24th, 2012 at 9:01am
Print Post  
In my diagram, I noticed that if the Dynamic property is set to true for links, the rout would be better. The only problem I have is that how to make sure that only one link related to every anchor point.

The first image in the attachment isn't acceptable. but the second one is OK.
  

Capture2_001.PNG (Attachment deleted)
Capture_004.PNG ( 21 KB | 270 Downloads )
Capture_004.PNG
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ym
Reply #1 - Sep 24th, 2012 at 5:09pm
Print Post  
The Dynamic property will only select the nearest anchor point, it can't be limited to one link per point at this time. You could try using the ReassignAnchorPoints method instead, e.g. call it from events such as NodeModified, LinkModified (when origin or destination changes) etc:

Code
Select All
private void diagram_NodeModified(object sender, NodeEventArgs e)
{
	e.Node.ReassignAnchorPoints();
	diagram.RouteAllLinks();
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Homam
Junior Member
**
Offline


I Love MindFusion!

Posts: 67
Joined: Feb 7th, 2012
Re: ym
Reply #2 - Sep 25th, 2012 at 11:09am
Print Post  
It worked, thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint