Project data & BIM
About BIM-based management of attributes, schedules, templates, favorites, hotlinks, projects in general, quality assurance, etc.
SOLVED!

Changing the default Element ID

Anonymous
Not applicable
Hi

I would like to know if there is any way to change the default ID of Archicad objects.
For example - right now every wall i build is given a unique ID (SW-881 ect.).
I would like that every time I build a wall its ID will be WAL-001-FLR1 (Object Name - Object Num - Floor Num).

Is there any solution for that happening automatically and not thru the Element ID Manager?

Thanks For the help!
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Laszlo Nagy
Community Admin
Community Admin
While what Karl writes is true, I think the specific thing you are trying to achieve is not possible, because there are 2 variables for each element type: the ID and the Floor ID.
Additionally, in this format:

WAL-001-FLR1

when new instances are created, the last number is incremented, so new instances will get these IDs:

WAL-001-FLR2
WAL-001-FLR3
WAL-001-FLR4
etc.

I suggest that you use Expression-defined Properties to achieve the results you are after.
Use Karl's suggestions, but with the following format:

WAL-001

Then, new instances will have the IDs:

WAL-002
WAL-003
WAL-004
etc.

Then, in the Property Manager, create a new Expression-defined Property of "Script" type, and compose it by concatenating the Element ID, the "FLR" string, and the Home Story Number. Then use that Property in Labels and in Schedules, or even map it to IFC Properties if needed.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27

View solution in original post

2 REPLIES 2
Karl Ottenstein
Moderator
Yes: whatever the ID value is in the Tool Settings for the tool you are using is the default for that tool. Changing an existing element does not change the default. You must select the tool with no elements selected, open the Tool Settings and change the ID. All subsequent elements placed with the tool will use the new ID format.

Setting this default is one of the (many) steps in creating your own personal template.

See:
https://helpcenter.graphisoft.com/user-guide/89155/

And, note in particular:
"If a number is included anywhere in the ID field, drawing successive elements will add one to this number for each new element, provided that the Assign New Element ID to Each New Element checkbox is enabled the Options > Work Environment > More Options dialog box. If there is no number in the ID field, each new element of the given type will have the same ID."
One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.6, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Solution
Laszlo Nagy
Community Admin
Community Admin
While what Karl writes is true, I think the specific thing you are trying to achieve is not possible, because there are 2 variables for each element type: the ID and the Floor ID.
Additionally, in this format:

WAL-001-FLR1

when new instances are created, the last number is incremented, so new instances will get these IDs:

WAL-001-FLR2
WAL-001-FLR3
WAL-001-FLR4
etc.

I suggest that you use Expression-defined Properties to achieve the results you are after.
Use Karl's suggestions, but with the following format:

WAL-001

Then, new instances will have the IDs:

WAL-002
WAL-003
WAL-004
etc.

Then, in the Property Manager, create a new Expression-defined Property of "Script" type, and compose it by concatenating the Element ID, the "FLR" string, and the Home Story Number. Then use that Property in Labels and in Schedules, or even map it to IFC Properties if needed.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27