Hi George,
Thank you for the reply. Unfortunately, this does not resolve the question.
In Visio 2013, the Object lifeline shape is not prevented from resizing the box using a GUARD formula, so the first suggestion does not apply here.
The second suggestion also does not help, since the approach of editing the shape sheet to add a formula to match the shape width to the text width actually causes more effort than the original problem!
The whole reason I want the shape to resize automatically to match the width of the contained text is to save time when creating UML sequence diagrams. It would take less time to just manually resize the shape every time than it would to manually edit the
shape sheet every time.
To resolve this, I am now attempting to edit the master shape for the Object lifeline to apply a new width formula to all new objects by default:
- Create a copy of the UML Sequence stencil and save it as "My UML Sequence" stencil. It is not possible to edit the default stencil that comes with Visio 2013, so I have to make my own copy.
- Edit the stencil, and right-click the Object lifeline shape. Choose Edit Master : Edit Master Shape.
- Under Masters: Object lifeline: Shapes: Sheet.5:Shapes:Sheet.6 select Show ShapeSheet
- Edit the formula for the Shape Transform/Width property to allow the shape width to grow larger than the default 0.75 in.
- Save the stencil
Unfortunately, this doesn't work either. When I next create a new object with that stencil, its shape sheet still contains the old default properties with a fixed with of 0.75 in. There must be an easier way to fix this default shape properties and have
the change apply to all new objects.
Craig.