Legend counts wrong

Started by vguna, April 02, 2018, 08:03:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vguna

Hi.

I'm using Visio 2016 (32 bit, Windows 10) and trying to get the Legend shape working properly. I created my own stencil file where I copied shapes I needed from different stencils. Then I copied some of the shapes and adapted their look and renamed them. So now I have e.g. "power socket", "power socket 2x", "power socket 3x", "power socket switchable 2x", "power socket switchable 3x" etc.

When I add the Legend shape to my document, I can add the shapes by dragndrop them to the Legend shape. It asks to add it, and I say yes. This works like a charm for all other shapes.
But for the modified "power socket" shapes it somehow screws up. It seems to count the different sockets into two "types" only. The "power socket 2x" and "power socket switchable 2x". So If I add "power socket" it increases the count for "power socket 2x". If I add e.g. "power socket switchable 3x", it increases the count for "power socket switchable 2x".
In the end the Legend shows "power socket 2x" and "power socket switchable 2x" only with summed counts for the other power socket types.

Funny thing is, if I run the "inventory report" addon, it correctly displays all the shapes with counts - but without symbols of course :(.

Any idea what's going on?

UPDATE:

Ok, I found something here:

https://blog.bvisual.net/2017/02/09/more-secrets-of-the-visio-legend-shape/

Now I'm wondering how to change the baseId without having to write code :(. Any ideas?


Paul Herber

As you've found out the legend and the reports work on a different basis for descriminating different shapes.
As for changing the BaseID, I have a utility for doing that at:
http://www.paulherber.co.uk/visio-utilities/
At the Stencil menu -> Create new stencil master BaseIDs

Put all your new shapes into a new stencil and save it. Have only a blank document and this stencil open then use the utility.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/