Create a Configurable Visio Shape with Adjustable Pins
Question details
Create a Visio shape whose dimensions and visible pin count can be adjusted.

- Product
- Microsoft Visio
- Device & OS
- not provided
- Scenario
- The user wants to build a reusable shape with configurable dimensions and pins.
- Observed behavior
- The finished shape should resize and show or hide pins according to its configuration.
Use a desktop version of Visio that provides the ShapeSheet editor. Decide on the maximum number of pins and whether they are visual elements or connection points.
Build the Shape with ShapeSheet Formulas and Actions
Use grouped shapes and ShapeSheet formulas to make dimensions and visible pins configurable.
One approach is to draw the body and the maximum number of pins as separate shapes, then group them. A user-defined cell on the group can store the desired pin count.
Hiding a pin's geometry does not necessarily remove a corresponding connection point. If pins must accept connectors, configure and test the connection points separately.
In Visio, open File > Options > Customize Ribbon, select Developer, and click OK.
Open Developer > Drawing Explorer and expand an existing grouped shape to examine its components. Select a shape and use Developer > Show ShapeSheet to inspect its formulas.
Draw the body and the maximum number of visual pins on the page. Select all components and use Home > Group > Group.
Select the group and open Developer > Show ShapeSheet. Add a User-defined Cells section if needed, then create a User.PinCount row with an initial value such as 2.
Open each pin's ShapeSheet and set its Geometry section's NoShow cell to a formula that compares the group's User.PinCount with that pin's number. For example, the third pin can use =Sheet.5!User.PinCount<3; replace Sheet.5 with the actual group sheet name shown in Drawing Explorer. Use position formulas referencing the group's Width and Height to keep pins aligned when it is resized.
In the group's ShapeSheet, add an Actions section and create a row with a Menu label such as "3 pins" and an Action formula such as =SETF(GetRef(User.PinCount),3). Add rows for other counts, then right-click the group to select an action and drag its handles to test resizing.

Use WPS Office for Everyday Office Documents
WPS Office is a free, lightweight alternative with a familiar interface for working with supported Office files. It can help you move everyday document, spreadsheet, and presentation work to WPS, but it does not replace Visio's ShapeSheet editor or create configurable Visio shapes.

Frequently Asked Questions
How do I open the ShapeSheet for a Visio shape?
Enable Developer under File > Options > Customize Ribbon. Select the shape, then choose Developer > Show ShapeSheet.
How can I inspect the parts of a grouped shape?
Open Developer > Drawing Explorer and expand the group to see its component shapes. Open each component's ShapeSheet to inspect its geometry and formulas.
Can I change the pin count from the shape's right-click menu?
Yes. Add rows to the group's ShapeSheet Actions section, give each row a Menu label, and use an Action formula such as =SETF(GetRef(User.PinCount),3) to set the count.
Does hiding a pin also disable its connection point?
Not necessarily. A Geometry section's NoShow cell controls visible geometry; configure and test connection points separately if connectors must attach to the pins.




