cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Document & Visualize forum

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-25
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
Advisor

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 10 - Visual Studio 2019; ArchiCAD 26

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-25
AMD Ryzen 9 5900X 12-Core Processor
3701 Mhz, 12 Core(s), 24 Logical Processor(s)
(RAM) 128 GB
NVIDIA RTX A2000

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-25
AMD Ryzen 9 5900X 12-Core Processor
3701 Mhz, 12 Core(s), 24 Logical Processor(s)
(RAM) 128 GB
NVIDIA RTX A2000

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!