We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-03-09 11:00 PM - last edited on 2024-09-24 10:22 AM by Doreena Deng
Hello,
I am having a problem with several commands when I use them in Master and then Check in Parameters Script.
lc = REQUEST ("Configuration_number", "", stConfigurationNumber) will print this error:
if I use n = REQUEST ("CALC_AREA_UNIT", "", area_req), will print this error:
IF GLOB_CONTEXT <> 1 , will print this error:
and then:
The object I am programming will run well in User Interface mode, but Parameters won't update. I believe it may be because of this problems.
Why are these problems? Are they not regular GDL commands, they can't be used in Master script?
How to avoid these "problems"?
Thank you.
2024-03-10 02:27 PM
The GDL Reference Guide says:
Request Parameter Script Compatibility
The use of most requests in parameter scripts (or master scripts run as parameter script) can result in unstable returned values, therefore should be avoided.
Compatibility up to Archicad 19: The use of most requests in parameter scripts (or master scripts run as parameter script) could result in unreliable returned values. Compatibility starting from Archicad 20: the following applies in parameter script cases:
the request expression will always have 0 as success return value
the requested values will contain a type-matching default only (empty string or 0)
Using restricted requests in the parameter script will also generate GDL warnings starting from Archicad 19.
To check the parameter script compatibility, refer to the tables below.: Legend:
grafic 1 |
works without restriction |
grafic 2 |
works (with additional warning) |
grafic 3 |
does not work: expression returns 0, while containing dummy type- matching defaults in returned variables (empty string or 0) - with additional warning |
2024-03-10 05:25 PM - edited 2024-03-10 05:27 PM
Hello Joachim, Thank you for your reply.
I have tested them and I confirm the results are not stable. In any interaction and depending on the code I get several reads and not all have the same result.
The difficulty is stabilizing the actual result.
So, what is the use of these requests? Debugging situations?
I believe I have seen this kind of requests in Graphisfot objects but they don't seem to produce the same errors. Maybe I am wrong...maybe they where other requests.
2024-03-10 08:37 PM
Please look for this topic in the forum (there are also some orthers) about your issues:
You are able to use the REQUESTs in the Scripts which are marked in the Reference with a green checker.