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.
The Easy Option
Download the HTML files here: http://1drv.ms/1dM6bPX
Or Use this Tool
I added a feature of Visio Power Tools 2010 (download here) to to create an HTML document that contains thumbnails of all the Masters in a Visio Stencil.
Once you've in the Visio Power Tools, click on Power Tools > Create Stencil Catalog.
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.