Deprecated Global Variables

These globals are still working in ‘s environment for compatibility reasons, but we recommend avoiding them during new object creation.

GLOB_CONTEXT

Due to compatibility issues with new requirements, GLOB_CONTEXT became deprecated in ARCHICAD 19. Instead of this global variable, please use GLOB_VIEW_TYPE combined with GLOB_PREVIEW_MODE, GLOB_FEEDBACK_MODE and GLOB_SEO_TOOL_MODE.

GLOB_CONTEXT context of appearance (view dependent, do not use in parameter script)
2D GDL_CheckIcon 3D GDL_CheckIcon UI GDL_ErrorIcon Parameter GDL_ErrorIcon Property GDL_ErrorIcon Default 2
1 – library part editor, 2 – floor plan, 3 – 3D view, 4 – section/elevation,
5 – settings dialog, 6 – list, 7 – detail drawing, 8 – layout,
22 – editing feedback mode from the floor plan, 23 – editing feedback mode from a 3D view,
24 – editing feedback mode from a section/elevation, 28 – editing feedback mode from a layout,
43 – generating as an operator from a 3D view, 44 – generating as an operator from a section/elevation, 46 – generating as an operator from a list.
See the section called “GDL execution contexts” for more details.

Deprecated Label Global Variables

These globals have been replaced by fix named optional parameters starting from ARCHICAD 22 (see section).
For compatibility reasons, the global variables are still maintained, so legacy object behaviour should not be affected.

Label text handling group of globals:

LABEL_ALWAYS_READABLE label text is always readable
1 if Always Readable is checked, 0 otherwise
LABEL_TEXT_WRAP wrap label text
1 if Wrap Text is checked, 0 otherwise
LABEL_TEXT_ALIGN text alignment
1 – left aligned, 2 – center aligned, 3 – right aligned, 4 – full justified
LABEL_TEXT_LEADING line spacing factor
LABEL_TEXT_WIDTH_FACT width factor
LABEL_TEXT_CHARSPACE_FACT spacing factor
LABEL_FONT_NAME font name
LABEL_TEXT_SIZE text size
LABEL_TEXT_PEN pen of the text
LABEL_TEXT_BG_PEN text box background pen
0 if opaque is off, the background pen otherwise
LABEL_FONT_STYLE font style
0-normal, 1-bold, 2-italic, 4- underline
LABEL_FONT_STYLE2 font style in the settings dialog box
0 – normal, otherwise j1 + 2*j2 + 4*j3 + 32*j6 + 64*j7 + 128*j8, j1 – bold, j2 – italic, j3 – underline, j6 – superscript,
j7 – subscript, j8 – strikethrough

Label pointer/frame handling group of globals:

LABEL_CUSTOM_ARROW use symbol arrow option on/off
0 if the Use symbol arrow checkbox is checked, 1 otherwise
LABEL_ARROW_LINETYPE line type of the line of the arrow
LABEL_ARROW_PEN pen of the arrow
LABEL_FRAME_ON label frame on/off
1 if the label frame is checked, 0 otherwise
LABEL_FRAME_OFFSET frame offset
LABEL_ANCHOR_POS label anchor position
0 – middle, 1 – top, 2 – bottom left, 3 – bottom right

Deprecated Curtain Wall Frame Global Variable – available for listing and labels only

From ARCHICAD 22 User-defined curtain wall frame classes has been introduced instead of the predefined classes.
For compatibility reasons, the CWFRAME_CLASS global variable is still maintained.

CWFRAME_CLASS class of the frame
2 – boundary, 3 – other
Compatibility: up to ARCHICAD 21 the values can be 0 – mullion, 1 – transom, 2 – boundary, 3 – custom.

Old global variable names

Old global variable names can be used; however, the use of the new names is recommended.
Each old global corresponds to a new variable with a long name.

Old name New name
A_ GLOB_SCALE
B_ GLOB_HSTORY_ELEV
C_ WALL_THICKNESS
D_ WALL_HEIGHT
E_ WALL_SECT_PEN
F_ WALL_FILL_PEN
G_ WALL_MAT_A
H_ WALL_MAT_B
I_ WALL_MAT_EDGE
J_ GLOB_ELEVATION
K_ WIDO_SILL
L_ SYMB_VIEW_PEN
M_ SYMB_MAT
N_ GLOB_FRAME_NR
O_ GLOB_FIRST_FRAME
P_ GLOB_LAST_FRAME
Q_ GLOB_HSTORY_HEIGHT
R_ WIDO_ORIG_DIST
S_ GLOB_USER_1
T_ GLOB_USER_2
U_ GLOB_USER_3
V_ GLOB_USER_4
W_ GLOB_USER_5
X_ GLOB_USER_6
Y_ GLOB_USER_7
Z_ GLOB_USER_8
A~ WALL_FILL
B~ WIDO_RIGHT_JAMB
C~ WIDO_THRES_DEPTH
D~ WIDO_HEAD_DEPTH
E~ WIDO_REVEAL_SIDE
F~ WIDO_FRAME_THICKNESS
G~ GLOB_USER_9
H~ WIDO_POSITION
I~ GLOB_USER_10
J~ WALL_RESOL
K~ GLOB_EYEPOS_X
L~ GLOB_EYEPOS_Y
M~ GLOB_EYEPOS_Z
N~ GLOB_TARGPOS_X
O~ GLOB_TARGPOS_Y
P~ GLOB_TARGPOS_Z
Q~ GLOB_CSTORY_ELEV
R~ GLOB_CSTORY_HEIGHT
S~ GLOB_CH_STORY_DIST
T~ GLOB_SCRIPT_TYPE
U~ GLOB_NORTH_DIR
V~ SYMB_MIRRORED
W~ SYMB_ROTANGLE
X~ SYMB_POS_X
Y~ SYMB_POS_Y
Z~ SYMB_POS_Z

Free users’ globals

GLOB_USER_1
GLOB_USER_2
GLOB_USER_3
GLOB_USER_4
GLOB_USER_5
GLOB_USER_6
GLOB_USER_7
GLOB_USER_8
GLOB_USER_9
GLOB_USER_10 free variables 1 to 10 are initialized to number by default
GLOB_USER_11
GLOB_USER_12
GLOB_USER_13
GLOB_USER_14
GLOB_USER_15
GLOB_USER_16
GLOB_USER_17
GLOB_USER_18
GLOB_USER_19
GLOB_USER_20 free variables 11 to 20 are initialized to string by default