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

Project data & BIM
About BIM-based management of attributes, schedules, templates, favorites, hotlinks, projects in general, quality assurance, etc.

Conditional Statement [Element Type] Criteria for Property Expressions

LibbyH
Participant

Hi all,

 

Question for the community regarding expressions in the property manager.

 

(1) I'm trying to define two criteria (using IFS and AND) to create an output for our finish schedule. If an element is classified in a certain branch AND it's a certain element type, it should output another property we created "FFE FINISH | SURFACE - SLAB [TOP]", see attached for the two methods I've tried and still not successful. 

 

Variations I've also tried:

- Changing "7" to "Slab" - I saw on GDL that the slab element type is given the index 7. I tried inputting without quotation marks, and archicad says that is the wrong data type for the argument, it must be a string. 

- I've tried outputting a built-in slab property rather than our custom property - still doesn't work.

 


Screenshot 2024-11-21 at 11.36.19 AM.pngScreenshot 2024-11-21 at 11.38.43 AM.png
2 REPLIES 2
Ricardo Lopez
Expert

Hi @LibbyH 

 

I think it is not possible to change one Element Type to be another one because that is the Archicad tool with which it was originally made.

Maybe you could try to change its Classification instead and use that criteria for your schedules.

 

Regards.

M. Arch. Ricardo López
BIM Consultant | Project Solutions and Services | Panama
AC17-28 SPA+INT | Windows 11 | MSI CreatorPro M16 HX C14VJG, 64GB, Nvidia Quadro RTX 2000 Ada Generation
vlahtinen
Enthusiast

You should just use "Slab" instead of "7" in the expression. GDL constants don't apply here.

 

For me the following expression works fine:

vlahtinen_0-1732477683926.png

In the expression "Finish" is a custom property that's available for elements classified as "Slab".

 

The result for an element, which is modeled using the slab tool and is classified as "Slab", is the value of the property "Finish". If the evaluated element is not slab or is not classified as "Slab", the result is either undefined or "---" (the expression cannot be evaluated since the referred Finish property is not available).

 

Make sure that both properties are available for the classification to which the elements are assigned.

 

If this wasn't helpful, please elaborate, how it doesn't work? What does the expression return and how it's different from what you want it to be?