Obtain shape name automatically

S

Sach

Hi,

I have a list of shapes on a diagram, all of these shapes have a set of
custom properties. Device name is a field in the custom properties, i would
like to run a script that lists the device name for all the shapes in a
diagram, and saves this to a file. Any ideas???
 
A

AlEdlund

Does it have to be vba? Visio does have a report function that can work with
shape data (custom properties). Vinally the visio sdk has routines on how to
read custom properties, all you have to do is wrap it in a loop. For the
stuff that I don't do day-to-day I go over to the technet scripting forum
(technet.microsoft.com). You might check this out
http://www.microsoft.com/technet/scriptcenter/scripts/misc/text/mstxvb01.mspx
since vbscript is very close to vba in syntax and operation.

al
 
Top