A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

connectivity in VISIO with VBA



 
 
Thread Tools Display Modes
  #1  
Old September 7th, 2004, 05:34 PM
Tao Lu
external usenet poster
 
Posts: n/a
Default 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  
Old September 7th, 2004, 08:48 PM
Chris Roth [ Visio MVP ]
external usenet poster
 
Posts: n/a
Default

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  
Old September 7th, 2004, 08:48 PM
Chris Roth [ Visio MVP ]
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 08:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.