Visio Automation To Lookup Shapes

J

John Shiangoli

Hi All,
Please may I have your advice on the following?
I'm putting together a script to create a Visio Drawing Automatically based
on a discovered network topology. From my network topology data I know what
is connected and the type of nodes that are connected for example servers,
laptops, workstations, switches, routers etc.
Without prior knowledge of the visio stencils and their shapes i need to be
able to locate the best visio shape for a given node type. Acheiving a close
match between the visio shape name and the node type.
Programatically you 1st need to open the stencil (OpenEx) before you can
retrieve the shape (get_itemU). Hence the challenge here is is which stencil
do i use?
To acheive this I thought that the best way would be to create a database
table that has column `visio stencil` and `visio shape`. However how do i
populate such a table from a visio installation?

Any advice on the best way to acheive this would be greatly appreciated

Regards
John
 
A

AlEdlund

John,
The shape association is straight forward (assuming you're at v2007 Pro).
There are examples on the the MS Office site for Visio data drawings.
al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top