Crainiate Community

Support and discussion for users of Crainiate component software products
Welcome to Crainiate Community Sign in | Join | Help
in Search

Organizing flow charts

Last post 08-29-2006 12:52 AM by James Westgate. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 08-08-2006 7:12 PM

    Organizing flow charts

    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);.

    • 71.97.120.27
  • 08-09-2006 11:38 AM In reply to

    Re: Organizing flow charts

    1. You can use Line.Pivots.RemoveAt(index) where index is the position of the pivot in the collection
    2 a) ERM Diagram 4 has a number of layout algorithms licensed from graph layout specialists. Its really worth the upgrade to be able to use these.
    2 b) The latest version ERM 3.8.2292 may fix this, you can download it here



    • 81.132.166.237
  • 08-22-2006 10:04 PM In reply to

    Re: Organizing flow charts

    I used the latest version 3.8.2292 to fix the question 2b in my original post. However, it doesn't work. I am wondering if this problem has a workaround.

    • 71.97.120.27
  • 08-23-2006 12:18 PM In reply to

    Re: Organizing flow charts

    After a load you can try a model.Refresh() call to make sure all the elements are visible. If they are still not visible, then there may be a deserialization problem.
    • 81.132.166.31
  • 08-23-2006 4:56 PM In reply to

    Re: Organizing flow charts

    Thanks for your reply. The problem we have is that shapes and lines that are close to the edge of the model are not displayed properly. I mean they are rendered, but they are not visible. I need to click on the model in order to make them visible. So how can I fix this problem? Thanks a lot.

    Btw, this is how we deserialize a model from an xml string.

    this._flowChart.SuspendModel();

    this._flowChart.SuspendLayout();

    this._flowChart.SuspendDraw();

    this._flowChart.Clear();

    this._flowChart.DeSerialize(xmlFragment);

    this._flowChart.ResumeDraw();

    this._flowChart.ResumeLayout();

    this._flowChart.ResumeModel();

    this._flowChart.Refresh();

    • 71.97.120.27
  • 08-29-2006 12:52 AM In reply to

    Re: Organizing flow charts

    If you could send a small sample through to me via email or post some code or a screenshot that would be a great help,

    Thanks
    James
    • 81.132.167.247
Page 1 of 1 (6 items)