Visio shapes

F

FR

I'm using the visio type library to get a list of shapes in a document. The
problem I'm running into is that the names for the same shapes on a document
seem to be different. Is there is a way to tell what type a shape is? For
instance, I'd like to iterate thru all the shapes and if they are of type
'Use Case' add them to a list. I know there is an ObjectType property but
that doesn't seem to contain the info I'm looking for.

TIA,

Fred
 
M

Matthias Cavigelli

FR said:
I'm using the visio type library to get a list of shapes in a document. The
problem I'm running into is that the names for the same shapes on a document
seem to be different. Is there is a way to tell what type a shape is? For
instance, I'd like to iterate thru all the shapes and if they are of type
'Use Case' add them to a list. I know there is an ObjectType property but
that doesn't seem to contain the info I'm looking for.

Check for the 'Master' property of the shape and compare it to the
masters you have in the document.

Matthias
 
M

Markus Breugst

Matthias,

If you are using your own shapes, you can also add a user property that
specifies your individual shape type. When iterating through the shape list,
just read this property to get the type.

By the way: The ObjectType is, as you supposed, something different: It
defines the shape's layout behavior during automatic layout.

Best regards,
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