Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) link start points changed (Read 6053 times)
pwdparis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Jan 18th, 2010
link start points changed
Apr 21st, 2011 at 9:09pm
Print Post  
When I move a diagram node that has multiple links on it, the start points for the various links often change. Our diagram node is in the shape of a diamond, with the links extending from the right-most point of the diamond and the bottom tip of the diamond. (Our anchor pattern is set to LeftInRightOut for this node, and the links have AutoRoute set to true.) We programmatically place these links at these specific points when the diagram node is created.

All help appreciated, as always.

Thanks,

Mark
Goolara, LLC
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: link start points changed
Reply #1 - Apr 22nd, 2011 at 7:55am
Print Post  
Try setting diagram.RoutingOptions.Anchoring = Keep.

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


I love YaBB 1G - SP1!

Posts: 15
Joined: Jan 18th, 2010
Re: link start points changed
Reply #2 - May 27th, 2011 at 7:06pm
Print Post  
I checked and indeed we have the RoutingOptions.Anchoring set to Keep. Is there anything else that could be causing this behavior?

Thanks,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: link start points changed
Reply #3 - May 30th, 2011 at 6:23am
Print Post  
Check if the link's Dynamic property is enabled; it causes links to reposition their end segments when a node is moved.

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


I love YaBB 1G - SP1!

Posts: 15
Joined: Jan 18th, 2010
Re: link start points changed
Reply #4 - May 31st, 2011 at 4:28pm
Print Post  
We don't set the link's Dynamic property ~ I'm assuming the default is false? Also, our issue is with the origin segment links; the end segments don't appear to change, only the beginning ones.

Thanks,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: link start points changed
Reply #5 - May 31st, 2011 at 4:49pm
Print Post  
Try copying link and routing settings from the "Anchors" sample project; I can't reproduce changing start points there. Or send a test project that shows the problem to support@mindfusion.eu and we'll check it.
  
Back to top
 
IP Logged
 
pwdparis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Jan 18th, 2010
Re: link start points changed
Reply #6 - Jun 2nd, 2011 at 6:27pm
Print Post  
Stoyo,

Thanks for your help. Changed my approach to use an anchor pattern with defined anchor points, and that seemed to fix my issue (which I suspect had more to do with my none-too-hot math/geometry skills than anything else).   Roll Eyes

Thanks,

Mark
  
Back to top
 
IP Logged
 
snype
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jul 7th, 2011
Re: link start points changed
Reply #7 - Jul 11th, 2011 at 7:13pm
Print Post  
I am facing the similar kind of problems. Link starting point getting changed. Can you please explain which approach did you follow to get rid of that issue?
  
Back to top
 
IP Logged
 
pwdparis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 15
Joined: Jan 18th, 2010
Re: link start points changed
Reply #8 - Jul 12th, 2011 at 1:09pm
Print Post  
snype ~

Did you check out the smple "Anchors" project? That gave me a basic starting point.

//NB anchor points are relative to the origin as percentage, not the diagram as a whole

MindFusion.Diagramming.Silverlight.AnchorPattern anchpatt = new MindFusion.Diagramming.Silverlight.AnchorPattern();

anchpatt.Points.Add(new MindFusion.Diagramming.Silverlight.AnchorPoint(100, 50, false, true));

anchpatt.Points.Add(new MindFusion.Diagramming.Silverlight.AnchorPoint(50, 100, false, true));

anchpatt.Points.Add(new MindFusion.Diagramming.Silverlight.AnchorPoint(50, 0, true, false));

[DiagramNode].AnchorPattern = anchpatt;

The links seem to do a better job of staying where they're supposed to when the anchor pattern is used as opposed to setting start points and end points.

Mark
  
Back to top
 
IP Logged
 
snype
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Jul 7th, 2011
Re: link start points changed
Reply #9 - Jul 12th, 2011 at 6:44pm
Print Post  
I do have sample Anchor project but that's in WPF.
Do you have any such sample project in Silverlight?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: link start points changed
Reply #10 - Jul 12th, 2011 at 7:05pm
Print Post  
It should be somewhere under the \program files\mindfusion\diagramming for silverlight\vs2010\samples folder.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint