Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Penalizing automatic routing for drawing links over existing links (Read 2419 times)
Kim Lillås
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 26
Joined: Aug 18th, 2016
Penalizing automatic routing for drawing links over existing links
Sep 21st, 2016 at 7:40am
Print Post  
Hi,

I have an issue with the automatic routing of links when I move parts of a diagram down under the rest of the diagram. The rerouting seems to like putting the links on top of old links, which is not so good.

Is there any way to penalize the automatic routing to avoid re-routing links over existing links?

It perhaps does not matter, but the diagram in my example is divided into different ContainerNodes. I assume the routing logic is the same for that scenario.

Greetings,
Kim
  

temp.png ( 34 KB | 79 Downloads )
temp.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Penalizing automatic routing for drawing links over existing links
Reply #1 - Sep 21st, 2016 at 7:50am
Print Post  
Are those gray points nodes, and is their Obstacle property enabled?
  
Back to top
 
IP Logged
 
Kim Lillås
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 26
Joined: Aug 18th, 2016
Re: Penalizing automatic routing for drawing links over existing links
Reply #2 - Sep 21st, 2016 at 8:00am
Print Post  
Hello!

Yep, the grey point are nodes. You were correct, I had the Obstacle property set to false. Setting it to true makes it better as can be seen in the picture.

Is there any further setting I could tweak to force a longer distance between the links when routing is performed? As you can see, the new link is very close to the existing ones, which might not be ideal.
  

temp_001.png ( 7 KB | 68 Downloads )
temp_001.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Penalizing automatic routing for drawing links over existing links
Reply #3 - Sep 21st, 2016 at 8:23am
Print Post  
Hi,

It seems the small nodes make the quick-router's map tiles small too, and the link ends up very close to the nodes. We'll try to improve this. For now, try setting Diagram.Router = new GridRouter(), and then you will be able to control the distances using Diagram.RoutingOptions properties.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Kim Lillås
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 26
Joined: Aug 18th, 2016
Re: Penalizing automatic routing for drawing links over existing links
Reply #4 - Sep 21st, 2016 at 9:02am
Print Post  
Hello,

Ok, thanks for the feedback. I will take a look at that!

Greetings,
Kim
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint