c# - Visio 2010/2013 page re-layout doesn't work if the page has a container shape with at least one child shape -
i'm recursively traversing directed object graph build flow chart using visio 2010 automation (sdk).
i drop shapes on page , create connectors, when layout flowchart visio misplaces bottom of diagram container shapes have @ least 1 child shape.
this problem visio auto page layout exists if page laid out ui (i.e. "design" tab -> "layout" group -> "re-layout page" -> "hierarchy").
to reproduce error, in visio 2010/2013:
- create blank drawing
- add 2 basic shapes, "basic shapes" style sheet example, let's call them b1 , b2 reference.
- place b1 inch above b2.
- select b1.
- add b1 container shape, let's call c1. add b1 c1 select left container "insert" tab -> "diagrams parts" group -> "container" in toolbar.
draw connector c1 b2. connector can added "home" tab -> "tools" group -> "connector" option in toolbar. right click connector , select "format" -> "line" option , add "arrow end" connector.
re-layout page "design tab" -> "layout group" -> "hierarchy" top bottom option.
a) notice how c1 placed @ bottom of diagram.
being directed graph, shouldn't c1 placed @ top of diagram?
do know of workaround in case bug in visio 2010/2013 sdk?
if remove b1 c1 , re-layout page again c1 placed correctly @ top of diagram.
thanks in advance valuable suggestions!
ernesto
Comments
Post a Comment