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.

Listing ID

Anonymous
Not applicable
Is it possible to get a part to return the value that is typed into the listing ID? Maybe using the REQUEST function? For example if a drafter types in "3046" in the listing id I can have that number return to another variable of my choosing in the parameter script? Thanks.

Barry Halloran
3 REPLIES 3
David Maudlin
Rockstar
Barry wrote:
Is it possible to get a part to return the value that is typed into the listing ID? Maybe using the REQUEST function? For example if a drafter types in "3046" in the listing id I can have that number return to another variable of my choosing in the parameter script? Thanks.


Barry:

Yes. From the GDL Reference Guide:

REQUEST ("ID_of_main", "", id_string)
For library parts placed on the floor plan, returns the identifier set in the tool’s settings dialog box in the id_string variable (otherwise empty string).

This should work. I have used the object's ID to display in the plan and elevation windows using the 2D and 3D scripts; I have not tried it in a parameter script. Hope this helps.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
I am still struggling with this listing ID. I have not been able to find a script that would work. I found a general element parameter "GLOB_ID" which is supposed to be "ID as set in the settings dialog box" but I can't get a script to return anything. I have tried IF and THEN statements and I get no response. Thanks.

Barry Halloran
Anonymous
Not applicable
Barry,

i regulary use an free object of the FC CADLink site which use this request —REQUEST ("ID_of_main", "", id_string) — and works fine :FCCL2Compteur.

This script "print" the ID in the symbol 2D.

  • compteur=""
    Request ("ID_of_Main","",compteur)

    define style "style_compteur" helvetica,c,5,0
    set style "style_compteur"
    text2 0,0,compteur