Is there a way to select x number of shapes and perform the action Position–>Distribute Horizontally or Position–>Distribute Vertically?
You can add horizontal and vertical distances to a collection of shapes. Please refer to this help topic: Auto-space a Collection of Shapes in the Visio Page. The Add and Remove members of the ShapeCollection class allows to select a number of shapes.
the example provided looked good at first but doesn’t show how to initialize the ShapeCollection. I don’t want all the shapes on the page. I want to add the shapes I need to this collection and then manipulate (distribute horizontally) the collection.
If I create a collection like this:
ShapeCollection SrvsCollection = myPage.Shapes;
and then clear that collection it clears all the shapes from the page…
Is this possible?
You are right. We have recently added this feature and now have logged an enhancement ticket ID DIAGRAMNET-51362 in our issue tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.