J
Jonathan Spane
I am currently writing an Add-On in C++, and I am having some confusion with
dynamic connectors.
I have a Visio Drawing in which two rectangle shapes are connected by a
dynamic connector. This shape was created manually through the Visio GUI.
Ex:
------- ------
| A |-------C---->| B |
------- ------
* the C connector starts at A and ends at B.
My add-on grabs all the shapes in the page and for each rectangle shape I am
trying to determine which other rectangles it connects to via the connector.
More importantly since the dynamic connector is the shape of an arrow I
really need to see which shape connects to the end(arrow part) of the
connector.
I am using the FromConnects properties of the rectangle shapes which says
there is connector connected to shape A.
If I do the same logic for shape B it shows me that there is connection
shape C connected to B.
If I do the same logic for the connection shape C it shows that there are
two connections shape A and B but it makes to difference between which one
it starts at and which one ends at.
I have read the following help section:
http://msdn2.microsoft.com/en-us/library/aa201774(office.10).aspx
After reading, the first half confirms what I am seeing. The second half
contradicts what I am seeing, but the second half example deals with shapes
connected programmatically instead through a user using the Visio GUI.
Is there something I am missing?
The task at hand is the following:
How can I tell that shape A is connected to shape B with a one way
connection arrow?
Thanks for any help
JP
dynamic connectors.
I have a Visio Drawing in which two rectangle shapes are connected by a
dynamic connector. This shape was created manually through the Visio GUI.
Ex:
------- ------
| A |-------C---->| B |
------- ------
* the C connector starts at A and ends at B.
My add-on grabs all the shapes in the page and for each rectangle shape I am
trying to determine which other rectangles it connects to via the connector.
More importantly since the dynamic connector is the shape of an arrow I
really need to see which shape connects to the end(arrow part) of the
connector.
I am using the FromConnects properties of the rectangle shapes which says
there is connector connected to shape A.
If I do the same logic for shape B it shows me that there is connection
shape C connected to B.
If I do the same logic for the connection shape C it shows that there are
two connections shape A and B but it makes to difference between which one
it starts at and which one ends at.
I have read the following help section:
http://msdn2.microsoft.com/en-us/library/aa201774(office.10).aspx
After reading, the first half confirms what I am seeing. The second half
contradicts what I am seeing, but the second half example deals with shapes
connected programmatically instead through a user using the Visio GUI.
Is there something I am missing?
The task at hand is the following:
How can I tell that shape A is connected to shape B with a one way
connection arrow?
Thanks for any help
JP