Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic RouteLinks and AnchorPoint (Read 3789 times)
Hai
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 63
Joined: Jan 7th, 2009
RouteLinks and AnchorPoint
Mar 5th, 2009 at 4:38pm
Print Post  
Hi Stoyan
1.
I've tried to use the RouteLinks option but the result is very poor as you can see here http://www.oron-software.com/pic1.png

It seems like your Algorithm is acting weird ???

2.
And a question about the Anchors...
Is there a way to set an AnchorPoint to match only destination of a link and another one act as an Origin of a new link ?
This is important if the nodes are small and the direction is important.
I want one entry point for all the "incomming" links and one origin point for all the "outgoing" links

many thanks

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: RouteLinks and AnchorPoint
Reply #1 - Mar 5th, 2009 at 4:45pm
Print Post  
Hi Hai,

1. Try this with a smaller RoutingOptions.GridSize, or otherwise the routing algorithm might consider these nodes to overlap at their closest corners.

2. The AnchorPoint constructor takes allowIncoming and allowOutgoing arguments.

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


I love YaBB 1G - SP1!

Posts: 63
Joined: Jan 7th, 2009
Re: RouteLinks and AnchorPoint
Reply #2 - Mar 5th, 2009 at 4:56pm
Print Post  
I'll look into it, it sounds like what I need.
But what is "RoutingOptions.GridSize"

Where do I define it and what value should I give it ?
Should I give it the diagram size ? the size of the surrounding scrollviewer visible area ?
Can you please give me a sample code or snippet for that ?

Ill check the Anchors thing...

many Thx

Hai


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: RouteLinks and AnchorPoint
Reply #3 - Mar 6th, 2009 at 1:14pm
Print Post  
Hi Hai,

RoutingOptions is a compound property of Diagram. You can use it like this:

diagram.RoutingOptions.GridSize = 4;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint