detecting shape overlap

Started by nart, August 03, 2009, 06:20:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nart

I seem to remember reading somewhere here or in an article that there was a way to detect if a shape is overlapping or intersecting another shape, but I can't find this info now.  Can anyone point me in the right direction?

Thanks.

Paul Herber

Get the shape's coordinates and then use the page.SpatialSearch method. This takes the coordinates of your shape, the spatial relation type and the tolerances in X and Y coordinates. Note that all dimensions are in inches. The returned object is a selection of all shapes within the area specified (or an empty selection if there are no such shapes).

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

nart

Ok thanks!  I'll give that a look.