Why does my tree change layout after the first level?

Comments

2 comments

  • Official comment
    VisualScript

    When you add a ShapeConnector to your top shape, you specify the style of the arrangement for rest of the tree.

    myShapeConnector=myShape.AddShapeConnector(VS.ShapeConnectorTypes,OrgChart);

    From the way your diagram appears, it looks like you are using the "OrgChart" ShapeConnectorType. Org charts follow a pattern that minimizes the space occupied by the chart by switching to a vertical arrangement at the second level.

    To get the arrangement you want, you'll need to use the "Hierarchy" ShapeConnectorType.

    myShapeConnector=myShape.AddShapeConnector(VS.ShapeConnectorTypes,Hierarchy);

    This repeats the top level arrangement for all levels.

    Comment actions Permalink
  • Sam J. Armstrong

    Thanks. That worked!

    0
    Comment actions Permalink

Please sign in to leave a comment.