Hello,
i tried setting the novincinitycost tp 127 and size to 20 (and several other values) but it did not alter the problem im afraid
I am using autorouting, the flowchart has the settings below, do you have an other thing i could try ?
private void CreateNewFlowChart()
{
fc = new MindFusion.FlowChartX.FlowChart();
fc.AutoSizeDoc = MindFusion.FlowChartX.AutoSize.RightAndDown;
fc.BackBrush = new MindFusion.FlowChartX.SolidBrush("#FF808080");
fc.InplaceEditFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
fc.Name = "SIGA ER-Diagram";
fc.BackColor = Color.White;
fc.AntiAlias = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
fc.ArrowCascadeOrientation = MindFusion.FlowChartX.Orientation.Auto;
}
private void RouteConnections()
{
fc.RoutingOptions.TriggerRerouting = RerouteArrows.WhenIntersectNode;
fc.RoutingOptions.CrossingCost = 20;
fc.RoutingOptions.Anchoring = Anchoring.Reassign;
fc.RoutingOptions.EndOrientation = MindFusion.FlowChartX.Orientation.Auto;
fc.RoutingOptions.LengthCost = 10;
fc.RoutingOptions.TurnCost = 50;
fc.RoutingOptions.NodeVicinityCost = 127;
fc.RoutingOptions.NodeVicinitySize = 20;
fc.RouteAllArrows(); //execute
fc.FitDocToObjects(10);//fit the document size
fc.ZoomToFit(); //zoom to fit diagram to page
}
The arrows are created with the following code:
private void AddConnection(Box box1, Box box2)
{
Arrow link = fc.CreateArrow(box1, box2);
link.Style = ArrowStyle.Cascading;
link.ArrowHead = ArrowHead.Reversed;
link.ShadowColor = Color.White;
link.AutoRoute = true;
link.DrawCrossings = false;
link.Selected = false;
link.Dynamic = true;
}
I am emailing you the new fc file with the new options you proposed.
Thanks in advance
-Simon