Visio Collections in Visio 2000

R

Rick Taylor

How can I establish an Object Collection which includes all the objects in a
Visio Drawing or all the objects of a particular visObjType in a drawing or
page?
 
M

Mark Nelson [MS]

You have to work with the hierarchies that Visio defines:

Document contains Pages
Page contains Shapes
Shapes can contain other Shapes

Visio does not expose a single collection of all items.
 
R

Rick Taylor

Thank you Mark.
This means if I want to count (or list) all the shapes in a document (.vsd),
I have to count the shapes per page. Each shape, however, may have
children, which means I have to go down the hierarchal tree to include all
shape group members, which is a recursive process (in general).
Rick
 
M

Mark Nelson [MS]

That is correct. Use the Shape.Type property to determine if a shape is a
group or not. If it is a group, you need to walk through its sub-shapes.

--
Mark Nelson
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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