I recursively move the directional object diagram to build a block diagram using the Visio 2010 Automation (SDK).
I successfully delete the shapes on the page and create their connectors, but when I put together a Visio flowchart at the bottom of the chart, the container forms have at least one child form.
This problem with the Auto Visio page layout also exists if the page is laid out from the user interface (i.e., the Design tab → Layout) → “Re-Layout Page” → “Hierarchy”).
To easily reproduce the error, in Visio 2010/2013:
- Create a blank drawing
- Add two basic shapes from the Basic Shapes stylesheet, for example, call them B1 and B2 for reference only.
- Place B1 about an inch above B2.
- Choose B1.
- Add B1 to the container shape, call him C1. To add B1 to C1, select the largest container from the Insert tab → Part Diagrams → Container in the toolbar.
Draw a connector from C1 to B2. The connector can be added from the tab "Home" → "Tools" → "Connector" on the toolbar. Right-click the connector and select the option "Format" → "Line" and add the "arrow connector" to the connector.
Reinstall the page on the Design tab → Layout Group → Hierarchy. The bottom of the screen is at the top.
A) , C1 .
, C1 ?
, SDK Visio 2010/2013?
B1 C1 Re-Layout, C1 .
!