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

Wall Label - IFC Properties

Anonymous
Not applicable
Hello all.

I am creating a custom wall label in ArchiCAD 18. Can I extract information from walls IFC properties (ex. fire rating) and show them in my label?
13 REPLIES 13
DGSketcher
Legend
Are you on PC?

I have created a new label in a clean v18 drawing pasted and edited to the master script etc as per your notes.

I then created a wall and added your label. It initially appears without a value.

Opening the label object shows the parameters populated with the first items from the the T and C section. Only when the label parameters have been clicked (implying a change) will the label display a value. As previous, changing a value in the wall object will not update the label.
Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)
DGSketcher
Legend
If I ignore the parameter extraction and address the required value directly for example...
n = APPLICATION_QUERY ("ParentCustomParameters", "GetParameter(IFC.Attributes.Description)", value)
and use it in the 2D script window with Text2 it will update on parent change, but the parameter array extraction will not work in the 2D window.
Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)
sinceV6
Advocate
Hi.

Yes, I'm on PC.

Sorry. I can't reproduce what you are saying. It works for me.

The only thing I can come close to is to the part where the label appears without a value, but only if default label for walls is a text label and then this new label is selected. As you say, only after opening the label, parameters and values are populated (initially with the ID). This does not happen if you select that label as default for walls (even though it doesn't displays values in the label settings, as it doesn't have a parent object yet). When the label is default for walls, it appears with the value of the selected parameter as per default settings; but note that all available parameters will only appear after it has been associated with an object as parameters and values depend on parent object.

Once placed, I can select any parameter to display its value and, once done, changing the property in the TandC tab of the object (wall, column, etc) updates as it should. I assume you are only changing the displayed value.

What values are you changing that do not update? Maybe some screenshots would help; and maybe someone else would like to chime in with more tests.

Best regards.
DGSketcher
Legend
I think I have this working now. Obviously there is something different between the GDL coding on PC and Mac.

If I retain the database collection in the master script then the parameters update as expected.

On the Mac the only way I can get the selected output value on the drawing to update automatically is to place the...
n = APPLICATION_QUERY ("ParentCustomParameters", "GetParameter(" + params + ")", parValue)
in the 2D script window with appropriate Text2 statements. The 2D window can read the parameters created by the Master script as you might expect.

I will go and see if I can make this do what I was hoping for...

If anybody else has any insight please feel free to share!
Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)