Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How can I get orthogonal links? (Read 2365 times)
WTW
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: May 20th, 2009
How can I get orthogonal links?
May 28th, 2009 at 2:47pm
Print Post  
Hello,

I am continuing to evaluate MindFusion.Diagram for a very simple application.  I want to allow a user to create a simple diagram of steps in an assembly process.  I have created a test program that allows adding and deleting steps using ShapeNodes and DiagramLinks.

So far, I have been able to create the diagram, but by default the links are not orthogonal.

I tried changing the "Style" property of each link to "LinkStyle.Cascading", but this has created an additional problem.  The link goes from the bottom edge of the "origin" node into the center of the "destination" node, and then extends further to the right hand edge of the destination node.  This creates an "L" shape in the destination node.

When I created the links with the default "LinkStyle" setting, the link would extend only to the top edge of the destination node.

How can I create orthogonal links without creating the "L" shape in the destination node?

Thanks for your help.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How can I get orthogonal links?
Reply #1 - May 28th, 2009 at 2:50pm
Print Post  
Hi,

What happens if you set LinkSegments = 3 or RouteLinks = true, in addition to LinkStyle = Cascading?

Stoyan
  
Back to top
 
IP Logged
 
WTW
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: May 20th, 2009
Re: How can I get orthogonal links?
Reply #2 - May 28th, 2009 at 3:22pm
Print Post  
Hello,

If I set only "RouteLinks = true", the link extends down toward the destination, then to the right of the destination, then down again and then to the left to connect to the right-hand edge of the destination.  It does not extend into the destination node, but it is still not what I am trying to do.

If I set only "LinkSegments = 3", it seems to solve the problem for connecting a node to only 1 node beneath it.  However, if a try to connect a node to several nodes beneath it, the links appear seem to be drawn randomly; some extend into the destination node, some connect to the top edge, some connect to the right or left edges.

If I try both suggestions, it behaves similarly to setting only "LinkSegments = 3", but the links are drawn a little more randomly.

Is there a way I could send you some screenshots of what I am trying to do, and what is currently happening using MindFusion?

Thanks,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How can I get orthogonal links?
Reply #3 - May 28th, 2009 at 3:24pm
Print Post  
Please email them to support@mindfusion.eu.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How can I get orthogonal links?
Reply #4 - May 28th, 2009 at 3:58pm
Print Post  
I think you will get the expected result if you set the AnchorPattern property of nodes to AnchorPattern.TopInBottomOut, and then create cascading links with 3 segments, without auto-routing. Setting LinkCascadeOrientation to Vertical might help too in case the control does not set the correct orientation with the default value (Auto).

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


I love YaBB 1G - SP1!

Posts: 5
Joined: May 20th, 2009
Re: How can I get orthogonal links?
Reply #5 - May 28th, 2009 at 5:58pm
Print Post  
Hello Stoyan,

Your latest suggestions worked for me.  I've created a diagram that looks quite close to what I had planned.

I have another question.  After setting the AnchorPattern property of the nodes to "TopInBottomOut", I notice that when I hover the mouse over the node, a small blue circle appears at the top of the node and a small green square appears at the top of the node.  Is there any way to turn this off?

Thanks,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How can I get orthogonal links?
Reply #6 - May 28th, 2009 at 6:18pm
Print Post  
Hi,

Yes, you can control that through the ShowAnchors property.

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


I love YaBB 1G - SP1!

Posts: 5
Joined: May 20th, 2009
Re: How can I get orthogonal links?
Reply #7 - May 28th, 2009 at 7:06pm
Print Post  
Hello Stoyan,

Thanks very much for your support today.

WTW
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint