Keeping count of shapes

Started by jarogers, August 18, 2009, 10:52:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jarogers

Hello,

I am trying to figure a way to keep count of shapes in a Visio file.

Im having troubles creating auto incrementing numbers and storing them in a user or properties field.

Desired effect:
Assign a unique ID to shapes based on a value selected from a fixed list in properties, and have the count continue on other pages...?

Anyone have any ideas?

Thanksl
Jason

JuneTheSecond

#1
Hi,

Would you tell us more about what you were trying  and how you were creating auto incrementing numbers?
Best Regards,

Junichi Yoda
http://june.minibird.jp/

jarogers

Hello,

I havent really successfully created autoinc numbers....
i have just used the shapeid, as it is unique. but doesnt really work for my application.
i would like to prepend a prefix to the sequential number such as PR or PL depending on if the user selects PR or PL from a fixed list on that shape... so
all PR class shapes should count PR000 PR001 PR002 ect.
all PL class shapes should count PL000 PL001 PL002 ect.

Thanks
JR

Visio Guy

Hi Jason,

Have you played with the "number shapes" function?  Go to Tools > Add-ons > Visio Extras > Number Shapes.... There are a bunch of options that might help you to do what you need, but I haven't played with it for awhile.

If not, let us know - you might need a bit of VBA code to do what you need.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Visio Guy

This article offers a download that includes some VBA code that does some shape-numbering. Perhaps it will help if the add-in doesn't:

Automatically Number & Connect Shapes - With Code!
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010