I’m trying to use Master_GDL script for the first time. My goal is to set a value for a user global variable in the master script, and have subsequent scripts run during 3d window generation and use the value.
My first effort is not working, and I suspect I’m missing something obvious.
– created with ArchiCAD gdl editor
– object name is “MASTER_GLD”
– object subtype set to “LIBRARY MASTER”
– variable is set in master script (only script space available)
– “GLOB_USER_1=5” is code used
But GLOB_USER_1 evaluates to 0, not 5, when accessed in another script.
Thanks, Barry. I finally worked through this problem. Turns out a reload isn’t enough! The most reliable, and quickest, way I found to get updated master_gdl user-global values to update was to open Library Manager, duplicate the existing master_gdl script, the delete the old one. After that 3d windows would reflect the new values right away. I had tried reloading first, and that wouldn’t do it, even with a manual rebuild-from-model action.
Did you try it with “Reload Libraries and Apply all the Changes”? If you tried with this, and it did not help, then could you send us a test file to let us check it? You can send it via mail to email@example.com, and please tell us about your operating system and ARCHICAD version and buildnum.