[UPDATE ON 2012-08-08] I decided to incorporate this tool into my Visio Power Tools Add-In. You canj download it here: http://visioautomation.codeplex.com/. The instructions below are still more-or-less correct, it's just that you'll be installing something called "Visio Power Tools" instead of "DemoStencilCatalog"
Summary: I wrote a tool that creates an HTML document shows the thumbnail preview images for all masters in a set of stencils.
This question: “How do I browse all shapes in Visio (2010)“ on the SuperUser site inspired me. A couple of times recently I wanted to have a document available that showed me all the shapes in a stencil instead of having to manually load each stencil in Visio. I little bit of research and I came up with the demo tool called “Stencil Catalog”.
STEP 1 DOWNLOAD AND INSTALL
First, get the DemoStencilCatalog.ZIP file here.
Extract the contents of ZIP file are run the Setup.EXE
STEP 2 RUN THE TOOL
The tool is a Visio Add-In, so you'll need to launch Visio 2010 first. One you start the Visio Application, click on the Add-Ins tab on the ribbon.
The add in created a new group called StencilCatalog. Click on the Create Catalog button.
The Create Catalog dialog will launch. The overall process is simple. Enter a folder that contains some VSS files. Then enter the name of the folder where you would like the output HTML created. Then click Create catalog.
In this example I've placed some VSS files in a folder called d:\stencils
and I've created an empty folder called d:\output
So enter those to locations in the dialog and press Create Catalog.
As it processes the stencils, log messages will be written to the dialog.
And when it is done, you'll see the catalog created in the output folder.
Open Catalog.htm to see what it created.
For each master, you'll see the name, the icon as shown in the stencil window, and the preview of the shape.
- Can this tool be made to NOT require Visio 2010? No. The only way this can work is via some Visio APIs that it has to call.
- Why is this tool an Add-In instead of standalone tool? The APIs the tool uses require it to be hosted as an Add-In. The APIs don't work if the tool is a separate EXE.
- Where are all the Visio 2010 stencils located? Ususally here: C:\Program Files (x86)\Microsoft Office\Office14\Visio Content\1033
- Can I get the source code? Yes, of course. It's checked into the source code repository here: http://visioautomation.codeplex.com/
- Can this tool work in Visio 2007? The tool requires Visio 2010, but the fundamental code could easily made to work on Visio 2007. I'll leave that as an exercise for the reader.