Home › Forums › Problems and solutions in GDL › Informations from the environment › master_gdl – user global variable usage
- This topic has 4 replies, 3 voices, and was last updated 6 years, 5 months ago by
Robert Nichols.
-
AuthorPosts
-
-
November 18, 2015 at 21:31 #1922
Robert Nichols
ParticipantI’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.
Script:
– 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 usedBut GLOB_USER_1 evaluates to 0, not 5, when accessed in another script.
What’s wrong? -
November 19, 2015 at 03:35 #1923
Barry Kelly
ParticipantI replied in Archicad-talk but I think the problem is that you just need to reload the library to activate the Master_GDL object.
Barry.
Versions 6.5 to 22
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit -
November 19, 2015 at 20:16 #1924
Robert Nichols
ParticipantThanks, 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.
-
November 23, 2015 at 10:34 #1928
Gergely Fehér
KeymasterHi Robert,
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 gdlcenter@graphisoft.com, and please tell us about your operating system and ARCHICAD version and buildnum.
Attachments:
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE
-
-
December 4, 2015 at 16:10 #1976
Robert Nichols
ParticipantGergely:
I have sent you a test file to the email address you provided above.
Thanks,
Robert
-
-
AuthorPosts
- The forum ‘Informations from the environment’ is closed to new topics and replies.