Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Poor routing performance of links (Read 2312 times)
lutz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 18
Joined: Aug 26th, 2009
Poor routing performance of links
Jun 1st, 2010 at 1:59pm
Print Post  
Hi,

we have a collection of links which we like to route.
Currently we call link.Route() which takes for 80 links up to 5 minutes to be done.

What is the most efficient approach to route those links?

Regards
Lutz
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Poor routing performance of links
Reply #1 - Jun 1st, 2010 at 2:28pm
Print Post  
Call new QuickRouter(diagram).RouteLinks(linkCollection);

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


I love YaBB 1G - SP1!

Posts: 18
Joined: Aug 26th, 2009
Re: Poor routing performance of links
Reply #2 - Jun 1st, 2010 at 3:16pm
Print Post  
Hi Stoyan,

this is much, much faster - but the origin and destination Anchorpoints are not kept.

Any idea?

Lutz

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Poor routing performance of links
Reply #3 - Jun 1st, 2010 at 3:56pm
Print Post  
Hi Lutz,

Were you using the RoutingOptions.Anchoring property set to Reassign? GridRouter would assign links to anchor points in such case, but QuickRouter ignores that value and should always preserve the current end points of the links. If that's the problem, you could call ReassignAnchorPoints() on the links before running QuickRouter.

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


I love YaBB 1G - SP1!

Posts: 18
Joined: Aug 26th, 2009
Re: Poor routing performance of links
Reply #4 - Jun 1st, 2010 at 4:44pm
Print Post  
Hi Stoyan,

this works fine now.

Thank you very much
Lutz
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint