Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Sequential Automated Numbering

Anonymous
Not applicable
I want to add a script to the "Drawing Block Title-NCS" part that will increase the number by one each time I click to place the part. Any ideas? Thanks.

Barry
16 REPLIES 16
Anonymous
Not applicable
Barry wrote:
I want to add a script to the "Drawing Block Title-NCS" part that will increase the number by one each time I click to place the part. Any ideas? Thanks.

Barry
In this case GLOB_ID function can help you!
Anonymous
Not applicable
I don't see how the glob_id would help here. The lettering/numbering is done by a parameter in the part. I want to be able to select the part and drop it multiple times and at the same time the part increases the number by one. Thanks.

Barry Halloran
Anonymous
Not applicable
Barry wrote:
I don't see how the glob_id would help here. The lettering/numbering is done by a parameter in the part. I want to be able to select the part and drop it multiple times and at the same time the part increases the number by one. Thanks.

Barry Halloran
Barry,
Actually Z.Bauer was pointing you in the right direction. If your part displays its number by reading it from the glob_id (global variable) and if you have archicad set to auto increase id numbers by 1, then you can do exactly what you need.

Dan K
Anonymous
Not applicable
Dan,

Thanks for the reply. I understand what Z.Bauer was saying but the part recives it's ID from a different parameter than the glob_id. What command do I use to create the auto increase? Thanks.

Barry
Frank Beister
Moderator
Because objects can't store any changed values of their parameters outside of the settings dialog (into the plan/project e.g. by using PARAMETERS), it is not easy to do it with anything else than the increasing GLOB_ID.

But there are ways. Objects can't communicate between their instances, either. One working way would be "TEXT I/O"-Addon. Every object writes in a file its internal (!) (not GLOB_-) ID, beside your counting-number, which is unique for itself. The number to display will be increased after the last found in the file and will be saved into the file or will be read out of the file, if it's yet stored inside. But you have to move the datafile along with your PLN. In AC9 there's a statement you can add to an object, which declares files as part of the plan. In case of archiving these are added to the PLA. This is essential to keep the numbers 'alive'.

Someone here did a communication between placed objects by using GLOB_USER_xx, but I don't see a way to do it here.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Anonymous
Not applicable
Barry wrote:
Dan,

Thanks for the reply. I understand what Z.Bauer was saying but the part recives it's ID from a different parameter than the glob_id. What command do I use to create the auto increase? Thanks.

Barry
Barry,
In your Preferences/Miscellaneous... make sure you have the "Auto ID Increase" box checked. In the Drawing Block Title-NCS object make sure the "Set Drawing ID in Info Box" is set to "ON"...go to the Listing and Labeling fly out and set the "ID:" to whatever number you wish to start with (you can even set this ID to a number and a letter if you wish). Now as you place the object, the ID will increase by one each time you place it.

HTH,
Dan K
Anonymous
Not applicable
Check "Auto ID Increase" status as Den suggest and look at my 3 screeshots. I think all will be clear without comments.
Anonymous
Not applicable
#2
Anonymous
Not applicable
#3