connectivity in VISIO with VBA

T

Tao Lu

Hi,
I am using VISIO 2003 with embedded VBA macro to do some modeling work.
I wonder how I can tell if two shapes are connected by matching the
connection points in the VBA macro. (The connection points could be found in
the spreadsheet of the shape)

For example, two rectagles could be connected (1 boundary line overlap and
same length).

connection point 1
*
|~~~~~~~|~~~~~~~|
| 1 | 2 |
|_______|_______|
*
connection point 2


Thanks!
 
C

Chris Roth [ Visio MVP ]

Are you talking about connected shapes via connector lines, or shapes that
are touching/overlapping?

If connectors, check out Shape.FromConnects for starters (there's a bit more
to learn here...)

If overlapping/touching, then check out Shape.SpatialNeighbors and .HitTest

--

Hope this helps,

Chris Roth
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