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-11-22 12:56 PM - last edited on 2024-11-22 01:58 PM by Barry Kelly
I wanted to simplify the handy object and use an array of pens instead of separate pen parameters. Unfortunately, such an array allows you to manually enter a pen 0, but does not accept a pen -1.
😕😕😕
2024-11-24 06:18 PM
I guess this is a limitation of GDL. When the Pen parameter is a single parameter, the 0 and -1 values are available, but when you make it an Array Parameter, they are no longer available. I guess there must be some technical reason behind this. I wonder if @Peter Baksa can shed some light on this for us.
2024-11-26 07:12 PM
Funnily enough you can use "values "pen2x2" range[-1,255]" to make -1 and 0 available – but they will be at the beginning of the list! (so the whole pens are shuffled.... not a good workaround imho).
Other workaround is to program a GUI. With ui_infield{3} it works fine (-1 and 0 are available).
I'd say it is a bug that should get fixed.
2024-11-26 09:02 PM - edited 2024-11-26 09:03 PM
I came across this "bug" because I simply didn't want to do GUI;
I think GS will fix it someday, after all it's just an INTEGER