We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2022-09-27 06:52 PM
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)
Any Thoughts on how I should proceed?
Thanks
2022-09-27 07:56 PM
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
Make sure you set the availability for both types
2022-09-27 08:15 PM
All I can figure is that the Data Type for Beams and Columns must be different???
2022-09-27 08:29 PM
Hey Hey Hey!!!
That worked.
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!!!