BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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

auto parameters

Anonymous
Not applicable
I have a problem. I would like to create an object, which has “n” identical units, which are the same macro units with several setups opportunities. I would like to solve this case, with newparameter, like this:
for i=1 to n
	newparameter "nwpar_1", "RealNum", 1, 1
        newparameter "nwpar_1", "RealNum", 1, 1
next i
Can anybody help with this? Because I tried with only the "newparameter" command, but I can't see any new parameters created.
2 REPLIES 2
Laszlo Nagy
Community Admin
Community Admin
From reading the GDL Reference Guide I get the understanding that the NEWPARAMETER command is specific to Backward Migration Scripts of Library Parts.
So it is not possible to create a new parameter for a library part from a GDL script, not with this command or any other command.
You have to create all parameters you want to use in the Library Part Editor Dialog.
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
Anonymous
Not applicable
Thank You!
Learn and get certified!