4
votes

Is it possible to hide a master shape in your stencil so that a user cannot drag and drop it on their diagram, while still allowing me to use that object in the diagram programmatically?

1

1 Answers

2
votes

You can do this by setting the Master's Hidden Property. This can't be set the the UI but it is easy to set in the VBA Immediate window with a statement like this:

Visio.ActiveDocument.Masters("MyMaster").Hidden = True