We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-10-10 09:36 PM
Hi!
Is there any way to use global variables in the parameter script?
2024-10-11 02:38 AM
Some you can and some you can't.
In the GDL manual you will be told which ones can't.
https://gdl.graphisoft.com/reference-guide/global-variables
Barry.
2024-10-11 11:55 AM
Thanks Barry. But the variable I want to use does not work in the parameter script. My question is actually I wonder if there is a way to use variables that do not work in the parameter script. The script I want to write is "parameters ac_toplevel= zzyzx + GLOB_HSTORY_ELEV"
2024-10-11 12:19 PM
Hi,
you can write your example in the master script
2024-10-11 12:30 PM
GLOB_HSTORY_ELEV will return "0" in the parameter script (and the mater script).
Only in the 2D or 3D script will it have a value.
So you can use in in 2D or 3D but you can not set another parameter based on its value.
Also don't just type...
parameters ac_toplevel= zzyzx + GLOB_HSTORY_ELEV
You should type ...
ac_toplevel= zzyzx + GLOB_HSTORY_ELEV
parameters ac_toplevel= ac_toplevel
This set the parameter value used in the scripts and also set the parameter value in the parameter list.
But even this won't work in this instance because GLOB_HSTORY_ELEV will always be 0 in the parameter script.
Barry.