Nevron Forum

Reroute problem

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

By Balasaheb Sherkar 1 - Thursday, October 14, 2010

hi,

i have my custom shapes library. using that library shapes i am designing diagrams, but when number of shapes get increases Reroute function not working.

RerouteAutomatically = Never;

i want rerouting manually, that's why above property is set.

sample code

NNodeList nodeList = currentDesignForm.NDrawingView.Selection.Nodes;
foreach (INNode node in nodeList)
{
if (node is NRoutableConnector)
{
(node as NRoutableConnector).Reroute();
currentDesignForm.NDrawingView.SmartRefresh();
}
}
By Nevron Support - Friday, October 15, 2010

Hi,

This is because of the default property of the Document. You need to increase the Document Routing Manager Max Avoided Grid Obstacles (when using HV connector). When using Dynamic Polyline you will need to increase the Max Avoided Mesh Obstacles. For example:

 

nDrawingDocument1.RoutingManager.MaxAvoidedGridObstacles = 200;

nDrawingDocument1.RoutingManager.MaxAvoidedMeshObstacles = 150;

 

When creating custom shapes (by grouping or composing), we would recommend you to use Composing, if you will never need the elements that are used to be separate entities again. Using Composite shapes instead of Groups will also affect the max avoided obstacles routing.

 

Questions or comments, please let us know.