1
votes

I do a lot of work with office floor plans. I want to create a quick macro for selecting the next adjacent room to the room I have selected.

The logic seems simple.

1 - store the X pin in a variable and add one-half the width of shape to get the X coordinate of the right boundary.

2 - add small fraction to ensure that the new (x, y) (with unchanged y) is contained in the adjacent room

3 - use the SpatialSearch property to get the shape containing the new point

This works fine with rectangles but not with architectural shapes like rooms. Are the spatial relationships properties blind to architectural shapes.