News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

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.

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 186 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1053KB.
Tokens: post-login.
Cache hits: 13: 0.00116s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]