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:

  1. create blank drawing
  2. add 2 basic shapes, "basic shapes" style sheet example, let's call them b1 , b2 reference.
  3. place b1 inch above b2.
  4. select b1.
  5. add b1 container shape, let's call c1. add b1 c1 select left container "insert" tab -> "diagrams parts" group -> "container" in toolbar.
  6. 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.

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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -