Global Variables

The global variables make it possible to store special values of the model.
This allows you to access geometric information about the environment of the GDL macro.
For example, you can access the wall parameters when defining a window which has to fit into the wall.
Global variables are not stacked during macro calls.
For doors, windows, labels and property library parts there is one more possibility to communicate with ARCHICAD through fix named, optional parameters. These parameters, if present on the library part’s parameter list, are set by ARCHICAD.See the list of fix named parameters and more details in the section called “Fix named optional parameters”.

Script compatibility

View or project dependent global variables should not be used in parameter scripts (or master scripts run as parameter script)
to avoid the parameter script run occasions and the resulting parameter values becoming context dependent, inconsistent within the planfile.Compatibility up to ARCHICAD 19: Such globals accidentally used in parameter script generate GDL warnings.Compatibility starting from ARCHICAD 20: Such globals used in parameter script generate GDL warnings, and will contain a static default value (type-matching).Compatibility starting from ARCHICAD 22: View dependent global variables should not be used in property scripts (or master scripts run as property script). Such instances will cause warnings in scripts. However, project dependant variables are enabled in property script most cases.
For compatibility details, check out the global variable descriptions. Script type restrictions apply where indicated.

Legend: works without restriction works (with additional warning) contains a dummy default only (with additional warning)