rerouting connector


Author
Message
Chang Shin
Chang Shin
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
Group: Forum Members
Posts: 2, Visits: 17

I am trying to reroute the connectors over nodes. I have a few shapes and need to connect

some of shapes, but don't want to cross the shape. I thought rerouting connector would do

the trick, but lines still go over the shapes in middle. see my sample code. I must have missed

something.

thanks

 

NRoutableConnector curve = new NRoutableConnector(RoutableConnectorType.DynamicPolyline);

m_Document.ActiveLayer.AddChild(curve);

curve.FromShape = relatesPO;

curve.ToShape = relatedPO;


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

You can call the Reroute method of a routable connector to reroute it at any time. Another solution is to set the RerouteAutomatically property to Always.



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search