License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Documentation
About Archicad's documenting tools, views, model filtering, layouts, publishing, etc.

Property Expresion Problem

gdford
Advisor

I have created a custom property for a Length value.
I want it to have either the value for the height of a column or the value for the length of a beam.

I test for If Element Type = "Beam" or "Column"

If I set the expression for if just Beam testing or just Column testing is works fine.

IFS ( Element Type = "Column", Maximum height of the Column)  --- this works fine

IFS( Element Type = "Beam", Length left)   ---- this works fine

But when I combine the expressions I get nothing

IFS ( Element Type = "Column", Maximum Height of the Column, Element Type = "Beam", Length Left)

 

gdford_0-1664296962934.png

Any Thoughts on how I should proceed?

Thanks

Gary Ford
Self Employed - Modeling, Estimating, Construction
Archicad 12-26
AMD Ryzen 9 5900X 12-Core Processor
3701 Mhz, 12 Core(s), 24 Logical Processor(s)
(RAM) 128 GB
NVIDIA RTX A2000
3 REPLIES 3
poco2013
Mentor

Expressions do not work that way.Upon initial evaluate of your statement, Archicad checks if all the variables are valid for the element being evaluated. If any are invalid for that element the whole expression is marked invalid.

Since your two parameters are valid only for their particular type, one or the other will always be invalid.,thus the whole expression.

In this case, you do not even need a if statement. Just make two sequences using the ADD button. Each with just the parameter name. Archicad will then pick the correct one

sequence.PNG

Make sure you set the availability for both types

Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
gdford
Advisor

All I can figure is that the Data Type for Beams and Columns must be different???

Gary Ford
Self Employed - Modeling, Estimating, Construction
Archicad 12-26
AMD Ryzen 9 5900X 12-Core Processor
3701 Mhz, 12 Core(s), 24 Logical Processor(s)
(RAM) 128 GB
NVIDIA RTX A2000

Hey Hey Hey!!!

That worked.

gdford_0-1664303242015.png

I think I new that 4 or 5 years ago - forgot about the ADD button.

If I could remember half of what I learn it would be sweet!!

Thank you so much Gerry!!!

Gary Ford
Self Employed - Modeling, Estimating, Construction
Archicad 12-26
AMD Ryzen 9 5900X 12-Core Processor
3701 Mhz, 12 Core(s), 24 Logical Processor(s)
(RAM) 128 GB
NVIDIA RTX A2000