GDL - IF using B parameter - Incompatible types
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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
[...]
Intel i9-9900K / 64GB RAM / nVidia GeForce RTX 2080 Ti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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
[...]
Intel i9-9900K / 64GB RAM / nVidia GeForce RTX 2080 Ti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-06-05 05:29 PM
Thanks. This worked albeit with a precision error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-06-05 10:16 PM
eps=.0001 (master script)
if B-.0043<eps then