cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Starting August 6, 2024, TLS 1.2 will be the minimum required protocol version for Graphisoft products and services that require an online connection. Learn more…
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

if/then

Anonymous
Not applicable
Hi all,

Is there a way to have a variable step(add) by 1 each time it is copiied?

ie.
d=1
if symbol (copied) then d=d+1

Thanks in advance. Doug
4 REPLIES 4
Karl Ottenstein
Moderator
The object ID can be auto-incremented, and that result can be read by the object.

Karl
One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.8, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Thanks Karl,

I know that auto increase can be set in WE but that increases all ID's does it not? I just want it to increase for this one object. Obiously I've never done this before but I'm assuming that it can be done in script? If not could you let me know? I'll be headed home shortly and will give it a shot then.

Thanks again, Doug
Karl Ottenstein
Moderator
As I recall, the ID is read-only in a GDL script.

Karl
One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.8, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Sorry, auto id increase is in preferences, miscellaneous.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!