How to determine direction of arrows?

S

smgalleg

I am working with PERT diagrams where activity shapes are connected with
arrows. When I examine the connects collection I get two entries for each
arrow with no indication of the arrow's direction. For instance,

Connector from 55 to 40
Connector from 55 to 48

For connector with ID 55 where the arrow goes from shape 40 to shape 48 in
the drawing. I would have expected there to be a single connector in the
connects collection going from 40 to 48.

What am I missing?

Thanks!
 
J

J Kallay

This subject is a prime candidate for a Visio developer FAQ. The Connect
object represents the glue between two shapes, not a connector. A connector
shape has two instances of glue: from its begin endpoint to the first
connected shape and from its end endpoint to the second connected shape. To
determine which direction the arrow is going, check the cell the Connect
object is associated with, using the FromCell property. The Connect object
with a "beginX" FromCell will have a ToSheet property telling you which
shape is glued to the begin side of the connector.
 
S

smgalleg

Excellent! Thank heaps JK!
--
G


J Kallay said:
This subject is a prime candidate for a Visio developer FAQ. The Connect
object represents the glue between two shapes, not a connector. A connector
shape has two instances of glue: from its begin endpoint to the first
connected shape and from its end endpoint to the second connected shape. To
determine which direction the arrow is going, check the cell the Connect
object is associated with, using the FromCell property. The Connect object
with a "beginX" FromCell will have a ToSheet property telling you which
shape is glued to the begin side of the connector.
 

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