We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

values range crashes ArchiCAD if lower_limit > upper_limit

Sam Karli
Enthusiast
Hi,
I've run into a problem that seems to be a serious bug. In AC18 (tested only in that) I added a
values range [-A/2 + xSomeCalculatedValue1, A/2 - xSomeCalculatedValue2]
statement to a parameter script of a window sash. The xSomeCalculatedValue local variables were some ordinary dimensions.
But, since the default A (width) parameter set among the parameters of the sash macro, the lower limit happened to be higher than the upper value (A being smaller than xSomeCalculatedValue1 + xSomeCalculatedValue2), so the ArchiCAD crashed (didn't respond) . After restarts, since the stuff stayed there, all edit attempts were unsuccessful, so I would have throw the whole macro away for a small bug if I hadn't been able to convert it to XML and commenting the bad values line there and converting back to gdl.
I knew the trick but most don't.

The bug seemed to be a missing checking if lower_limit > upper_limit in the interpreter.

Note that I haven't tested it in newer versions, so the bug might be fixed.
GDL/Python/C++ dev
1 REPLY 1
Laszlo Nagy
Community Admin
Community Admin
I will bring this to the attention of GRAPHISOFT's GDL developers.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27

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!