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

Object Parameter in Label

Anonymous
Not applicable
Is it possible display a specific parameter of an object in a label, the same way an equipment label automatically displays the object ID? I would want to display one of the "parameters for listing" inside a furniture object.

Thanks,

LabelWithAttribute.png
3 REPLIES 3
Ben Cohen
Advocate
Yes, takes a bit of coding but here it is.

REQUEST ("ASSOCLP_PARVALUE", expr, name_or_index, type, flags, dim1, dim2, p_values)

Page 292 of the GDL reference guide.
Ben Cohen
Mac and PC
Archicad (Latest Version) aus
www.4DLibrary.com.au
Anonymous
Not applicable
This is a little bit beyond my skill set. But I will work on it. I would really like to see an example of how it is being used...
Anonymous
Not applicable
I got it working (frankly I was suprized). After I found some examples on the forum I was able to piece somthing together. The GDL guide really needs more examples to be helpful. Otherwise it should be called the GDL guide for experts that do GDL all the time.

Label object master script:
FurnAttribute=REQUEST ("ASSOCLP_PARVALUE", "furn_attrib",index, type, flags, dim1, dim2, para_string) 
Label object, text parameter added as text (not sure if necessary):
para_string
Label object 2D script:
text2 x1,-y2, para_string
Host objects, text parameter added:
furn_attrib