Thread: Using Selection
View Single Post
  #12  
Old January 16th, 2009, 01:32 AM posted to microsoft.public.visio.general
John... Visio MVP
external usenet poster
 
Posts: 900
Default Using Selection

"Paul Herber" wrote in message
ell.net...
On Thu, 15 Jan 2009 10:31:07 -0800 (PST), Sachin
wrote:

the connects belong to a shape


Exactly.

The connections belong to a shape, the shape belongs to a selection. I
need to get the connections of a selection, so to do so I used the
bridge


No such thing as a bridge.
Look at the code John has posted
1. create a reference to the selection
2. this selection contains selection.count shapes
3. loop though these shapes using for each
4. with each shape get the connects


--
Regards, Paul Herber, Sandrila Ltd.
DFD/SSADM for Visio http://www.visio-dfd.sandrila.co.uk/



You need to check FromConnects as well.
BoxA -- Dynamic Connector -- Box B
will only show entries in the Dynamic Connector Collection. One to Box A and
One to Box B
The FromConnects of BoxA and BoxB will show the reverse of those two
connections.

John... Visio MVP