I’m trying to draw a flow-diagram and so far everything looks good. But when 2 lines cross I want one of them to jump over the other one with an arc. I’ve tried everything, but nothing works. Am I doing it wrong or is it a bug?
This is the code of the thing I have tried. I there are more lines in de diagram that cross eachother, bus this are only the properties I have tried.
Dim diagram As New Aspose.Diagram.Diagram(“D:\Test.vss”)
Dim line As New Aspose.Diagram.Shape
Dim styleSheet As New Aspose.Diagram.StyleSheet
With styleSheet
.Layout.ConLineJumpStyle.Value = Aspose.Diagram.ConLineJumpStyleValue.Arc
.Layout.ConLineJumpDirY.Value = Aspose.Diagram.ConLineJumpDirYValue.Left
.Layout.ConLineJumpDirX.Value = Aspose.Diagram.ConLineJumpDirXValue.Down
.Layout.ConLineRouteExt.Value = Aspose.Diagram.ConLineRouteExtValue.Curved
End With
line.LineStyle = styleSheet
line.Layout.ConLineJumpStyle.Value = Aspose.Diagram.ConLineJumpStyleValue.Arc
line.Layout.ConLineJumpDirY.Value = Aspose.Diagram.ConLineJumpDirYValue.Left
line.Layout.ConLineJumpDirX.Value = Aspose.Diagram.ConLineJumpDirXValue.Down
line.Layout.ConLineRouteExt.Value = Aspose.Diagram.ConLineRouteExtValue.Curved
Dim lineID As Long = diagram.AddShape(line, “Dynamic connector”, 0)
I attached all my code, but I could not upload the Test.vss-file
Hi Michel
Thank you for the quick reaction.
I have attached the project so I hope you cane reproduce my findings.
I have experimented a bit more and I found more things that do not work. If you look in my code you can see where I have tryied to draw some arrows who are drawn incorrectly or not at all.
Arrow 4 and 5 are initialy drawn on top of eachother, so I have added some code to move them away from eachother. Is there a way to do this automatically?
And do not forget the initial question, how do the line-jumps work?
Hi Michel,
That is great, but can you give an indication of when this is fixed? I also asked another question: Arrow 4 and 5 are initialy drawn on top of eachother, so I have added some code to move them away from eachother. Is there a way to do this automatically? I mean that the Diagram does not draw those two arrows on top of eachother?
Eventually I want to export the Diagram to PNG or PDF, so I hope dat you will fix these bugs for all the saving-formats?
Hi Michel,