how to tell if shape in visio is a document shape?

M

mpknemo

Hello!

I got stuck on this one..

I need to generate a report on document-shapes whithout hyperlinks in a
visio document.

problem breakdown:

- Loop through all shapes on all pages in a visio 2003 document.(about
100 pages)
- Check if shape is a document-shape
- If it is, check if document-shape has a hyperlink set.
-if no hyperlink is set, log pagename and shape text in logfile.

First and last steps are no problem. but how do I make the check if a
shape is a document-shape?

Thanks!

BR/ Markus
 
J

JuneTheSecond

You might check if the name of master of a shape,
if objShape.Master.NameU is "Document".
 
M

mpknemo

many thanks!
works perfectly as long as you remember to first check if
objShape.Master actually returns an object.

BR/ Markus
 

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