Reroute problem


Author
Message
Balasaheb Sherkar
Balasaheb Sherkar
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)
Group: Forum Members
Posts: 6, Visits: 1
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();
}
}
Reply
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

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.

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