Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrow arcs (crossings) doesnt show up? (Read 2096 times)
simondk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Nov 15th, 2006
Arrow arcs (crossings) doesnt show up?
Jul 4th, 2007 at 10:58am
Print Post  
Hello,
im having trouble getting the arcs for arrow crossings to show up, is this because im not using a layout algorithm maybe (seems strange since the autoroute function works) ?

Creating the flowchart
Code
Select All
private void CreateNewFlowChart()
        {
            fc = new FlowChart();
            fc.AutoSizeDoc = AutoSize.RightAndDown;
            //fc.BackBrush =
            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 = System.Drawing.Color.White;
            fc.AntiAlias = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            fc.ArrowCascadeOrientation = MindFusion.Diagramming.WinForms.Orientation.Auto;

            fc.ShowAnchors = ShowAnchors.Always;
        }
 



Creating each connectiong
Code
Select All
private void AddConnection(Box box1, Box box2)
        {
            Arrow link = fc.CreateArrow(box1, box2);
            link.Style = ArrowStyle.Cascading;
            link.ArrowHead = ArrowHead.Reversed;
            link.ShadowColor = System.Drawing.Color.White;
            link.AutoRoute = true;
            link.DrawCrossings = true; //org false

            link.Selected = false;
            link.Dynamic = true;
        }
 




Routing connections
Code
Select All
private void RouteConnections()
        {
            fc.RoutingOptions.TriggerRerouting = RerouteArrows.WhenIntersectNode;
            fc.RoutingOptions.CrossingCost = 100; //org 40
            fc.RoutingOptions.Anchoring = Anchoring.Reassign;
            fc.RoutingOptions.EndOrientation = MindFusion.Diagramming.WinForms.Orientation.Auto;
            fc.RoutingOptions.LengthCost = 1;
            fc.RoutingOptions.TurnCost = 20; //org 50

            fc.RoutingOptions.NodeVicinityCost = 150;
            fc.RoutingOptions.NodeVicinitySize = 30F;
            fc.RoutingOptions.GridSize = 20F; //org 2F

            fc.ArrowCrossings = ArrowCrossings.Arcs; //org, removed

            fc.RouteAllArrows(); //execute
            fc.FitDocToObjects(2);//fit the document size
            fc.ZoomToFit(); //zoom to fit diagram to page
        }
 




Thanks
-Simon
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow arcs (crossings) doesnt show up?
Reply #1 - Jul 4th, 2007 at 11:26am
Print Post  
Hi,

What Arrow.Style are you using? Crossing point arcs are never drawn for Bezier arrows.

Stoyan
  
Back to top
 
IP Logged
 
simondk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Nov 15th, 2006
Re: Arrow arcs (crossings) doesnt show up?
Reply #2 - Jul 4th, 2007 at 11:37am
Print Post  
I was using cascading, and have now switched to bezier, but still the same problem. and is there any way to make the bezier arrow lines straight ?

thanks
-Simon
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow arcs (crossings) doesnt show up?
Reply #3 - Jul 4th, 2007 at 1:12pm
Print Post  
Crossings are never drawn for Bezier arrows, you shouldn't switch to them. Check the value of the CrossingsRadius property - if it equals to 0, or is very small for the current MeasureUnit, the crossings won't be drawn.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint