If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
connectivity in VISIO with VBA
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! |
#2
|
|||
|
|||
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 "Tao Lu" wrote in message ... 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! |
#3
|
|||
|
|||
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 "Tao Lu" wrote in message ... 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! |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Opening Visio 2002 documents in Visio 2003 gives error "unexpected end of file" | LightningBit.News | Visio | 0 | August 27th, 2004 09:09 PM |
Visio 2002 hangs up | Glenn | Visio | 0 | July 14th, 2004 03:36 AM |
Printing larg format from Visio flowcharts | peter_F | Visio | 1 | June 1st, 2004 03:43 PM |
Embed linked Visio Obj into Word, rotate 90 degrees | Ganeth | Visio | 0 | May 31st, 2004 07:36 AM |
Compare Visio Technical 5 and Visio Professional | Evelyn | Visio | 2 | May 27th, 2004 07:25 PM |