cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

GDL
About building parametric objects with GDL.
SOLVED!

Trying to Combine the Length Parameters of a Beam and an Object.

Kalvin
Participant

I'm creating a schedule for floor beams & joists in Archicad 27. I'm trying to sneak instances of a Warren Truss 27 object into my schedule, and most things have worked well except the length Parameters

 

Beams contain the following length Parameters: "3D Length", "Length Right", and "Length Left". 

The truss object length parameter is: "Length (A)" 

 

I want to combine the length parameters into a single column if possible. I thought this would be as simple as creating the following property (expression):

 

IF ( 3D Length > 0 in, 3D Length, Length (A) )

In layman's terms: If 3D Length is greater than 0 inches, return the 3D Length. If not, return the "Length (A)" value instead. 

 

I have tried many variations and workarounds besides this, including just 3D Length + Length (A), but every attempt has returned "---", with the evaluation that "Expression cannot be evaluated for this element." I understand why this is happening, but does anyone know of a workaround? I tried ISUNDEFINED, it didn't work. I am now trying to see if I can add one of the parameters to the other, but I don't yet understand how to do that. 

 

Any help would be appreciated. 

 

Kalvin_0-1723220031810.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

ToperBarrientos_0-1723257444276.png

 

Hi Kalvin.

Try successive expressions (something similar to long  IFs ),
e.g . as shown above.

Apple M1 Pro CPU
RAM 32 GB
1 TB OS: Ventura 13.1

View solution in original post

3 REPLIES 3
Solution

ToperBarrientos_0-1723257444276.png

 

Hi Kalvin.

Try successive expressions (something similar to long  IFs ),
e.g . as shown above.

Apple M1 Pro CPU
RAM 32 GB
1 TB OS: Ventura 13.1

Holy guacamole, thank you man.

 

Now I feel a little dumb, I did not realize that was possible. Hopefully this helps someone else one day!

 

Thanks again! 

🙂 .. still many hidden mystiques in expression-based properties, esp. when combined with GDL in the future.. 

Cheers !

Apple M1 Pro CPU
RAM 32 GB
1 TB OS: Ventura 13.1