Shape's "incoming" connx - where are they?

M

Mac

Hello,
if I draw a connector from shape A and glue it to shape B; then when I
examine shape A's object I can easily find that connector in its FromConnects
collection. however, I cannot find the connector anywhere in shape's B
object. Is this not possible?? Please somebody clarify this with me: i am not
sure which connectors lead 'from' an object and which lead 'into' it, but
nonetheless I want to be able to grab that object and iterate through all
connectors that are guled to it regardless of their origination. How do I do
this?
 
A

AlEdlund

There are examples on how to do this in the visio sdk, you might start with
the'page connections' example. The navigator example has a an unspecified
design issue in that it only searches in one direction (i.e. all paths are
assumed to have been drawn hierarchially)
al
 
J

John... Visio MVP

Mac said:
Hello,
if I draw a connector from shape A and glue it to shape B; then when I
examine shape A's object I can easily find that connector in its
FromConnects
collection. however, I cannot find the connector anywhere in shape's B
object. Is this not possible?? Please somebody clarify this with me: i am
not
sure which connectors lead 'from' an object and which lead 'into' it, but
nonetheless I want to be able to grab that object and iterate through all
connectors that are guled to it regardless of their origination. How do I
do
this?


All connections on a page are listed on the pagesheet, but each shape has to
collections that are subsets of this collection. One shows who the shape is
connected to and the other shows who connects to this shape.

When you connect computer shape A to computer shape B you have to remember
that the connection line is part of the equation. So computer A is connected
to line 1 and line 1 is connected to computer 2. So in computer A you will
not see a reference to computer B, but you will see a reference to Line 1.
You will then have to examine Line 1 for a reference to computer B.

Take a look at chapter 19 if DVS. It is available online at
http://msdn.microsoft.com/en-us/library/aa201779(office.10).aspx

John... Visio MVP
 
J

John... Visio MVP

I tend to avoid the Page connection collection and prefer to look at the two
sub collections that are associated with the shape. I then use the
subcollections on the 1-d line that is connected to it (or from it) to get
to the 2-d shape that "appears" to be directly connected to the original
shape.

John...
 

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