Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to control Link connectivity/route (Read 3701 times)
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
How to control Link connectivity/route
Apr 22nd, 2010 at 11:14am
Print Post  
How does Mindfusion determine the path that a connector takes while connecting two shapes. We are trying to draw some diagrams with DiagramLink properties Style=Cascading, AutoRoute=true. The paths that get drawn at times are not optimal as they should be. See the link for image for more details

http://docs.google.com/leaf?id=0B4xAPIW5oeouMjQwNjRkYjYtMWIzYi00Njg4LWFmMGUtNmZi...

Is there any way we can control the diagram link connectivity algorithm to achieve the correct layout.

Thanks,
-KayKay
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to control Link connectivity/route
Reply #1 - Apr 22nd, 2010 at 11:23am
Print Post  
Try setting a larger RoutingOptions.TurnCost if you are using GridRouter, or set larger QuickRouter.TurnCost otherwise.

Stoyan
  
Back to top
 
IP Logged
 
praveenbattula
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 22
Joined: Apr 6th, 2010
Re: How to control Link connectivity/route
Reply #2 - Apr 22nd, 2010 at 2:02pm
Print Post  
How to use RoutingOptions? It's a class and for the diagram this property is read only. I mean only get not set. So, can you please explain a bit?

thanks
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to control Link connectivity/route
Reply #3 - Apr 22nd, 2010 at 2:23pm
Print Post  
Set diagram.RoutingOptions.TurnCost = ...
  
Back to top
 
IP Logged
 
praveenbattula
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 22
Joined: Apr 6th, 2010
Re: How to control Link connectivity/route
Reply #4 - Apr 22nd, 2010 at 3:15pm
Print Post  
Hi Stoyo,
I have tried all the options available and found no change.

Is this right?
diagram.RoutingOptions.TurnCost = RoutingOptions.TurnCost;

thanks
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to control Link connectivity/route
Reply #5 - Apr 22nd, 2010 at 3:18pm
Print Post  
Try diagram.RoutingOptions.TurnCost *= 2; This will affect only GridRouter.

If you are using the default QuickRouter, set (diagram.LinkRouter as QuickRouter).TurnCost = ...
  
Back to top
 
IP Logged
 
praveenbattula
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 22
Joined: Apr 6th, 2010
Re: How to control Link connectivity/route
Reply #6 - Apr 23rd, 2010 at 3:13am
Print Post  
Stoyo,
I appreciate the help. But, some how the changes are not applying in my case. I am trying everything, but no use. The diagram not coming as expected. There are two nodes which are close by, but it is drawing in long path. Actually they are in the same vertical line, it is not connecting directly, it is taking complex route and connecting them. I am not having any idea on how to resolve this.
Are there any other options I can try with?

thanks
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to control Link connectivity/route
Reply #7 - Apr 23rd, 2010 at 6:16am
Print Post  
Please email the diagram xml to support@mindfusion.eu.
  
Back to top
 
IP Logged
 
praveenbattula
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 22
Joined: Apr 6th, 2010
Re: How to control Link connectivity/route
Reply #8 - Apr 23rd, 2010 at 6:57am
Print Post  
Sorry Stoyo,
It was my mistake. After I set LinkRouter of diagram to GridRouter the link connected fine.
Thanks a lot.

-Praveen
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint