Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Container as an obstacle issue (Read 1727 times)
Jan Lyson
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 26
Joined: Dec 4th, 2019
Container as an obstacle issue
Dec 4th, 2019 at 3:14pm
Print Post  
Hello,
I have a problem with setting a container as an obstacle. When I do it nothing seems to be different, links are still routed through it (see attached image). Am I missing something?

Thanks
  

Obstacle.png ( 12 KB | 129 Downloads )
Obstacle.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Container as an obstacle issue
Reply #1 - Dec 5th, 2019 at 7:04am
Print Post  
Hi,

The default QuickRouter never treats containers as obstacles at this time. You could set Diagram.LinkRouter to a GridRouter instance; that one has some dedicated handling for containers, setting them as obstacles for external links while still allowing routing of internal links. If your containers won't contain any links, or internal links won't need to be routed, you could probably add some locked background nodes to them to serve as the obstacle for QuickRouter too.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Jan Lyson
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 26
Joined: Dec 4th, 2019
Re: Container as an obstacle issue
Reply #2 - Dec 5th, 2019 at 8:18am
Print Post  
Hi,
thank you, I tried it and it really treats containers as obstacles, but it also causes that links are not routed orthogonally sometimes. GridRouter doesn't have any property for this.

Thanks

  

Obstacle2.png ( 18 KB | 128 Downloads )
Obstacle2.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Container as an obstacle issue
Reply #3 - Dec 5th, 2019 at 8:26am
Print Post  
Hi,

For orthogonality try setting links' Shape to Cascading, or RoutingOptions.SmartPolylineEnds to false.

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


I Love MindFusion!

Posts: 26
Joined: Dec 4th, 2019
Re: Container as an obstacle issue
Reply #4 - Dec 5th, 2019 at 2:26pm
Print Post  
Hi,
thanks a lot, setting link's Shape property to Cascading helped.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint