Constrain object placement

T

Tomislav

Hello

is there any way to constrain object placement in Visio drawing for
example: in the middle of workspace in space 18cm x 18cm ?

This is for the purpose of preventing overlapping headers and footers
with dropped shapes - customer does not want header or footer to be
affected ( overlapped ).

Thanks,

Tomislav
 
C

Chris Roth [MVP]

Dobra Vecer Tomislav,

You can do this with some ShapeSheet formulas and the BOUNDS function.

For instance, I've created two formulas for the location of the shape. These
formulas constrain the shape so that it is always on the page:

PinX = BOUND(4 in, 0, 0, LocPinX, ThePage!PageWidth-Width+LocPinX)
PinY = BOUND(4 in, 0, 0, LocPinY, ThePage!PageHeight-Height+LocPinY)

The "4in" arguments are just the current location of the shape. If the shape
is resized or moved, the formulas still work, because they calculate the
difference between the shape's pin and it's edges.

Also, if the shape is rotated or flipped, these formulas won't be correct.

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/
 

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