License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…
2024-06-05
04:37 PM
- last edited on
2024-06-10
01:20 PM
by
Laszlo Nagy
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.
Solved! Go to Solution.
2024-06-05 04:54 PM
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
[...]
2024-06-05 04:54 PM
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
[...]
2024-06-05 05:29 PM
Thanks. This worked albeit with a precision error.
2024-06-05 10:16 PM
eps=.0001 (master script)
if B-.0043<eps then