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

Help!. regarding Visio SDK layout
Alexandre M
Visio is not currently supported in VSTO. You can get answers to your questons by posting them in the Visio newsgroup. Here is the link:
http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.visio.developer&lang=en&cr=US
Thanks!
Mike Hernandez
Community Program Manager
VSTO Team