Help!. regarding Visio SDK layout

I am trying to generate a visio diagram through the visio SDK and would like to know if I can generate a diagram programmatically.

I did read little about the SDK and I was able to create a visio drawing and add shapes and connect shapes programmatically. My biggest question is that how to automatically layout the shapes so that it looks structured.

This is a hight level diagram

- Cluster A consists of two web server boxes
- Cluster B consists of two application server boxes
- Cluster C consists of two database boxes

Cluster A boxes are connected to application server boxes
Cluster B boxes are connected to database boxes

Each server box is represented as a simple rectangle.
Each cluster is represented as a simple rectangle.

Main point here is how to create two shapes and auto align them inside another shape

Thanks



Answer this question

Help!. regarding Visio SDK layout