Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to force link to connect to anchor point (Read 1363 times)
egreen
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Aug 21st, 2008
How to force link to connect to anchor point
Aug 21st, 2008 at 5:32pm
Print Post  
Hi,

I have a ShapeNode with an assigned anchor pattern. When I connect links programatically, they connect fine to the anchor points, however as a user when I move a link's origin/dest. and place it on any node, it does not connect to any of the anchor points (proof of this is that the anchor point index returned is "-1" when I query which anchor point it connected to). Is there any way to force the behavior to be such that links will connect only to the anchor point?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to force link to connect to anchor point
Reply #1 - Aug 21st, 2008 at 6:04pm
Print Post  
Hi,

Set Diagram.SnapToAnchor = OnCreateOrModify.

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


I love YaBB 1G - SP1!

Posts: 11
Joined: Aug 21st, 2008
Re: How to force link to connect to anchor point
Reply #2 - Aug 21st, 2008 at 6:13pm
Print Post  
used diagram1.SnapToAnchor = SnapToAnchor.OnCreateOrModify

Works like a charm. Thanks a lot.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint