Search
Arrow Routing

( a feature of FlowChartX Pro edition)

Routed arrows avoid nodes marked as obstacles (Obstacle set to true) by finding the shortest path between their origin and destination that does not cross any other nodes.

Automatic or explicit routing

The Route and RouteAllArrows methods can be invoked to explicitly rearrange arrows in a way they do not cross nodes. In addition, arrows have an AutoRoute property that enables or disables automatic routing of an arrow; that property is initialized from the flowchart's RouteArrows member. The TriggerRerouting member of the RoutingOptions class specifies when arrows should be rerouted automatically.

Tuning the routing algorithm

The RoutingOptions class allows customizing various aspects of the routing algorithm. That algorithm evaluates possible paths aiming to find one that has a minimal cost. The values of LengthCost, TurnCost, CrossingCost and NodeVicinityCost are added to the total cost of a route and have a great influence over the shape of the chosen path. The StartOrientation and EndOrientation properties specify the orientation of the first and last segments of routed arrows.