License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
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!