Getting a shape's connectors

J

jarlen

I have a macro that creates a range of shapes from an excel sheet, and
inter-connects them using the autoconnect command.
After all the connections have been made I need a way to access all of the
connectors related to a shape, is there anyway to do this? The shape.connect
and shape.connects doesn't seem to give me anything, or maybe I'm just using
them the wrong way. Any hints?
 
J

jarlen

That makes it a bit clearer, I thought the connects collection were just a
bigger collection containing fromConnects and some more.
Also I expected a connection to be the actual shape (line) connection two
larger shapes, but it's actually the connection between the shape itself, and
the line pointing to a new shape. Thanks :)
 
J

John... Visio MVP

Yes there is a bit of gymnastics to do. Though it looks line Shape A is
conected to Shape B. Shape A is connected to connector shape C, which is the
connected to Shape B. You can get Shape C from A's FromConnects collection
and then use Shape C's Connects collection to get Shape B. Remember Shape A
will also be in C's Connect collection.

John... Visio MVP
 

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