Others

Create a Configurable Visio Shape with Adjustable Pins

Adam DavisAdam Davis Nov 20, 2026 868 views

Question details

Create a Visio shape whose dimensions and visible pin count can be adjusted.

Create a Configurable Visio Shape with Adjustable Pins
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.
Before you start

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.

Solution 1Recommended

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.

1
Enable the Developer tab

In Visio, open File > Options > Customize Ribbon, select Developer, and click OK.

2
Inspect a similar shape

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.

3
Create and group the components

Draw the body and the maximum number of visual pins on the page. Select all components and use Home > Group > Group.

4
Add a pin-count cell

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.

5
Control pin visibility and position

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.

6
Add a custom action and test

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.

Build the Shape with ShapeSheet Formulas and Actions
Check group references: Sheet names and pin placement formulas depend on the drawing. Use the actual group reference and test each pin after resizing.
Free Microsoft Office alternative

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.

Use drawing shapes in supported documents and presentations.Work with Microsoft Office formats including DOCX, XLSX, and PPTX.Get started with a familiar, easy-to-use interface.Open supported Office files in a lightweight suite.
microsoft office alternative - wps office

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.