We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

Door parameters

Anonymous
Not applicable
I would like to place the door ID twice on my door schedule. Therefore, I would like to create a parameter called 'door_no' and in my parameter script be able to make my door_no parameter = the door id. When I write in the parameter script "parameters door_no=ID". It does not recognize the ID. Is there specific programming language to recognize the ID? Thanks.
6 REPLIES 6
Karl Ottenstein
Moderator
You need to refer to the GDL Reference Manual... and should be warned, that you would have to change the script for every door in your project, saving it out with a new name, perhaps in your embedded library... and that if a library update is posted, you would have to repeat your work on the updated library to get the bug fixes or new features.

So... I recommend that you only pursue this is it is absolutely necessary / no other way to achieve what you need. (For example - do you need the ID twice because your schedule is so wide? How about making two schedules and layout them out side by side.)

The user ID field that you see in the Info Box / settings dialog is known within GDL as GLOB_ID. Page 266, GDL Ref Manual (via Help menu), or:
http://helpcenter.graphisoft.com/guides/gdl-reference-guide/miscellaneous/
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Thank you very much. I have to add parameters to all my doors anyway in order to get double doors to show up as (2) 3'-0"x7'-0". So it's no big deal. Thanks again.
Anonymous
Not applicable
Thanks for the help but I'm still having problems calling up the GLOB_ID in my parameters script. I think it is the syntax that is the problem. I set the parameter door_no as a text parameter. I tried "parameters door_no=GLOB_ID" and also "parameters door_no=str(GLOB_ID) but neither of these worked. Can you help me with the proper syntax? Thanks
Karl Ottenstein
Moderator
It's been a while for me since I got dirty with GDL... but I think the Parameter script is only run during user interaction:

http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/10/LibDevGuid...

Hopefully one of the GDL gurus here will suggest something.
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Thanks but I figured it out. "parameters door_no=(GLOB_ID)". This did the trick.
Karl Ottenstein
Moderator
Glad you got it. Would never have guessed the need for the parentheses.
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB