![]() |
Visio 2002 Developer's Survival Pack Tools and Samples |
Chapter 10: Composite Shapes | |
![]() ![]() |
Example of composite shapes, where the basic structure is maintained solely by the ShapeSheet, and editing of the structure (insertion of new subcomponents for example) is performed by Addon code, in this case VBA code in a stencil.
Filename | Description | Installation |
CompositeShapeDemo.vsd | Sample drawing. | |
GWComposite.vss | Stencil that holds main shapes and sub-component shapes. Also contains VBA code called from drawing to perform structural edits on the composite shapes. Hence stencil must be installed for the composite shape's right-click menu items to operate. | Create a new subdirectory under Visio\..\Solutions and copy copy stencil file into it. |
Experiment with shapes on drawing to see how various edits work. Selecting overall composite shape provides right-click menu with commands to Append Item and Shaow/Hide Items. Selecting (sub-selecting) individual Items provides right-click menu with commands to insert new items, separator bar, or change order of items. To edit text of item, select it and hit F2 (as usual in Visio).
Article Created: 2001-06-01 Last edit: Last edit: 01-06-30 Graham Wideman
Go to: DiagramAntics.com