cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
thomaslodge
Enthusiast

GDL - IF using B parameter - Incompatible types

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 AC28 currently.
1 Solution

Accepted Solutions
Xandros
Advisor

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 27 GER / Win10
Intel i9-9900K / 64GB RAM / nVidia GeForce RTX 2080 Ti

Go to post

3 Replies 3
Xandros
Advisor

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 27 GER / Win10
Intel i9-9900K / 64GB RAM / nVidia GeForce RTX 2080 Ti
thomaslodge
Enthusiast

Thanks. This worked albeit with a precision error.

AC user since 2006. Using AC28 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!