I have two questions below. Thanks a lot.
1. How can I manually remove a pivot from a line?
2. I currently use the following code snippet to organize the shapes and lines in a Model object. I find that for cases with less 10 shapes, it organized them well. But for those with more than 10 shapes, I see some shapes get penetrated by a line.
a. I am wondering if I can improve my code to fix the problem. Or I should consider an upgrade.
b. I also notice that sometimes when a Model deserializes an xml string, some shapes in the recovered flow chart is hidden. I need to click on the Model once in order to make them visible. How can I avoid this problem?
Crainiate.ERM.Layouts.Layout layout =
new Layout();
layout.NodesFromShapes(
FlowChart1.Shapes);
layout.ChildNodesFromLines(
FlowChart1.Lines);
layout.LayoutFlow(150, 150, OrientationEnum.Horizontal);
layout.ApplyLayout();
layout.RouteLines(
FlowChart1.Lines, FlowChart1.Shapes, 200);.