Nevron Forum

rerouting connector

https://www.nevron.com/Forum/Topic4257.aspx

By Chang Shin - Monday, October 4, 2010

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;

By Nevron Support - Tuesday, October 5, 2010

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.