Auto Number Instances of Master Upon Creation

Started by donpaul321, October 26, 2017, 05:23:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

donpaul321

Hello,

I can't figure out how to create a master capable of auto generating id numbers upon instantiation. I will try to demonstrate what I mean below.

If I drag and drop multiple instances of the master shape on to the drawing board, I want the top id number (or designator) to increment by 1(see pic below).


I would like to have a a "Designator" field as part of the shape's data to store the id number in (see pic below)


The following help links don't quite get me the results I need:
http://www.visguy.com/2009/07/13/automatically-number-connect-shapes-with-code/
http://visguy.com/vgforum/index.php?topic=5808.msg23274#msg23274

Any help would be appreciated!

-donpaul321

wapperdude

#1
The auto-number add-in only keeps tracks of total number of shapes, not shapes by specific master.  Plus, there's the issue of gaps when a previously counted shape is deleted.

Anyway, check this post.  Last entry has 2 additional links.  Also, try searching forum for numbering shapes, or SLT.  http://visguy.com/vgforum/index.php?topic=7800.msg33299#msg33299

A related topic that might be helpful or provide insight/ideas:  http://visguy.com/vgforum/index.php?topic=8029.msg34801#msg34801

Wapperdude
Visio 2019 Pro

donpaul321

Thanks Wapperdude! I'll do some more digging around.