Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram.AllowUnanchoredLinks problem (Read 1483 times)
TimWard
YaBB Newbies
*
Offline



Posts: 17
Location: UK
Joined: Mar 27th, 2009
Diagram.AllowUnanchoredLinks problem
Apr 2nd, 2009 at 8:41am
Print Post  
Hi I wanted my links to connect to the nearest border, rather than get tied to an anchor which using Diagram.AllowUnanchoredLinks works most the time.

However sometimes (usually after a layout) some links either get connected to the middle of the node or sometimes float to the side and look unconnected.

Is there anyway to force these to update?

I found the ConnectionPoint class and thought the SaveEndRelative method may have been the one but I cant actually find how this is referenced by the links/nodes.

Regards
Tim

  

Senior Developer | C3 Ltd | www.c3.co.uk
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram.AllowUnanchoredLinks problem
Reply #1 - Apr 2nd, 2009 at 9:49am
Print Post  
Try the DiagramLink.ReassignAnchorPoints method. If the link's Origin/Destination nodes do not define any AnchorPattern, the method should place the link ends somewhere at the node borders.

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



Posts: 17
Location: UK
Joined: Mar 27th, 2009
Re: Diagram.AllowUnanchoredLinks problem
Reply #2 - Apr 2nd, 2009 at 10:27am
Print Post  
Cheers Stoyan

That helped alot, also found DiagramNode.ReassignUnanchoredLinks

Both work, but not quite the same, so now I have options rather than a messy problem

Thanks
Tim
  

Senior Developer | C3 Ltd | www.c3.co.uk
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint