2023-11-28 04:49 PM - last edited on 2024-09-26 01:44 PM by Doreena Deng
I really struggle with multiple conditions in GDL.
The IFS command seems to be the simplest and does what I want but the AC27 GDL editor doesn't like it.
I'm building a parametric manhole object, and need to set the size based on the depth and number of branches.
The parameters are these:
This would seem to do what I want according to the user guide (https://helpcenter.graphisoft.com/user-guide/88992/)
Missing CALL keyword (not recommended)
at line 56 in the Master script of file BG_Manhole_Rect_v0.1.gsm
Obviously I'm doing something wrong, I'm just not sure what. Any ideas?
2023-11-28 04:56 PM
Hey Jim, you're conflating GDL with Expressions here. So no wonder it does not work. What do you actually want to do?
GDL does not support IFS.
2023-11-28 04:56 PM
2023-11-28 05:06 PM
Thanks!
Thanks makes sense - pity...
It's all documented in the original post - I think.
I'm going to have to turn that into horrible nested statements. I hate the GDL implementation of conditional branching ...grr...
On a more positive note, I'm going to use your LocatorLX script as a template for the 2D labels, most of the scripting is done, so that will save a lot of time.
I should then have some nice parametric manhole objects I can drop into a model use as connection points for drain runs, and schedule.