cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

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

GDL
About building parametric objects with GDL.
SOLVED!

GDL - IF using B parameter - Incompatible types

thomaslodge
Booster

Hi all,

 

I'm trying to create a GDL object for British gypsum studs but am running into a problem when using IF command to determine another parameter.

 

So an acoustic stud has a width ( A ) of 42 mm for a stud depth ( B ) of 43mm but a width of 44mm when any other depth of stud is used. I've tried the code below but get an Incompatible types error when I run a check.

 

How can I get this to work? I also need to do a similar action for gauge which has the added issue of needing to be editable for some stud depths. 

 

GDL Incompatible types.jpg

AC user since 2006. Using AC26 currently.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Xandros
Expert

Hi

you need to remove the quotation marks in line 51. You just need those in combination with VALUES

It should look like this:

 

if B = 0.043 then

[...]

ArchiCAD 26 GER / Win10
Intel i9-9900K / 64GB RAM / nVidia GeForce RTX 2080 Ti

View solution in original post

3 REPLIES 3
Solution
Xandros
Expert

Hi

you need to remove the quotation marks in line 51. You just need those in combination with VALUES

It should look like this:

 

if B = 0.043 then

[...]

ArchiCAD 26 GER / Win10
Intel i9-9900K / 64GB RAM / nVidia GeForce RTX 2080 Ti

Thanks. This worked albeit with a precision error.

AC user since 2006. Using AC26 currently.

eps=.0001 (master script)

if B-.0043<eps then

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!