Auto Locating shapes in the drawing section

C

CW

I noticed the Visio provided borders and title blocks (Visio Extras)
automatically position themselves (centered) when moved from the Stencil to
the drawing section. I've created a customized shape (border with title
block) but cannot determine how to have the shape auto-locate. Any
suggestions.
 
C

Chris Roth [MVP]

Hi CW,

You've got to go into the ShapeSheet (Window > Show ShapeSheet)

At the top, you can set some Excel-like formulas:

Shape Transform Section:

Width = GUARD(ThePage!PageWidth)
Height = GUARD(ThePage!PageHeight)
PinX = GUARD(Width/2)
PinY = GUARD(Height/2)

These cause the shape to be as big as the page, and centered on the page. Of
course you can change the factors if you want your shape to be smaller, ie:
GUARD(ThePage!PageWidth * 0.75)

--
Hope this helps,

Chris Roth
Visio MVP

More Visio shapes, articles, development info and pure diagramming fun at:
www.wanderkind.com/visio
 

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