You are here: HomeSupportArchiCAD

Global GDL Parameters

General Global Variables


Written by László Nagy

GLOB_SCRIPT_TYPE

Old name: T~
Type: numerical (positive integer value)
Possible range: 1 – 5
Returns a number corresponding to the type of the current GDL script the program is in at the moment of generating the value. The following table shows the numerical values returned when used in each script:

Name of Script
Returned Value
Property Script
1
Master Script
1
2D Script
2
3D Script
3
User Interface Script
4
Parameter Script
5

Note: Parameter Script was called ‘Value List Script’ in versions prior to 6.5


GLOB_CONTEXT

Type: numerical (positive integer value)
Possible range: 1 – 6
Returns an number corresponding to the type of Window in which the Library Part or information about the Library Part appears in at the moment of generating the value. Possible values include:

Name of Context
Returned Value
Library Part Editing Dialog (all windows within it)
1
Floor Plan Window
2
3D Window
3
Section/Elevation Windows
4
Library Part Settings Dialog
5
List generated about Library Part
6


GLOB_SCALE

Old name: A_
Type: numerical (positive integer value)
Possible range: 1 – 30000
Returns a number corresponding to the scale of the drawing as set in the current Window (e.g. it returns 100 for M 1:100). The variable returns a valid value in the Floor Plan Window, in the Section/Elevation Windows, in the Library Parts’ 2D Symbol and 2D Full View Windows and in Lists.

Imperial scales available in ArchiCAD are calculated according to the following table:

Imperial scale
Metric scale
GLOB_SCALE (A_)
3” = 1’-0”
M 1:4
4
1 1/2” = 1’-0”
M 1:8
8
1” = 1’-0”
M 1:12
12
3/4” = 1’-0”
M 1:16
16
1/2” = 1’-0”
M 1:24
24
3/8” = 1’-0”
M 1:32
32
1/4” = 1’-0”
M 1:48
48
3/16” = 1’-0”
M 1:64
64
1/8” = 1’-0”
M 1:96
96
1/16” = 1’-0”
M 1:192
192
1” = 10’-0”
M 1:120
120
1” = 20’-0”
M 1:240
240
1” = 30’-0”
M 1:360
360
1” = 40’-0”
M 1:480
480
1” = 50’-0”
M 1:600
600
1” = 60’-0”
M 1:720
720
1” = 80’-0”
M 1:960
960
1” = 160’-0”
M 1:1920
1920


GLOB_NORTH_DIR

Old name: U~
Type: numerical (angle value)
Possible range: 0 – 360.0000 (in degrees)
Returns the Project North direction relative to the horizontal direction of the default project coordinate system (relative to Global Origin). This value can be set in the ‘Sun’ Dialog.

GDL_Globals01051500.png
The field in the Sun Dialog Box corresponding to GLOB_NORTH_DIR

Notes:
  • This Dialog can be accessed by clicking the ‘More Sun...’ button in Image3D Projection Settings...
  • Changing to skewed grid in the Floor Plan Window has no effect on this value.


GLOB_DRAWING_BGD_PEN

Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen from the currently defined ArchiCAD palette that most closely approximates the color of the background of the Window in which the value is generated. The index number of this pen will be returned when the value is generated while in the Floor Plan Window, in any Section/Elevation Window and in a Library Part’s 2D Symbol or 2D Full View Window


GDL_Globals01051501.png
The field in the Grids & Background Dialog corresponding to GLOB_DRAWING_BGD_PEN.

GDL_Globals01051502.png
The field in the 3D Window Settings Dialog corresponding to GLOB_DRAWING_BGD_PEN. The index number of this pen will be returned when the value is generated while in the 3D Window or in a Library Part’s 3D View Window


GLOB_SUN_AZIMUTH & GLOB_SUN_ALTITUDE

Type: numerical (angle value)
Possible range: -360.0000 – 360.0000 (in degrees)
Returns the value of the Sun Azimuth/Sun Altitude as set in the 3D Projection Setting Dialog Box.

GDL_Globals01051503.png
The fields in the 3D Projection Settings Dialog corresponding to GLOB_SUN_AZIMUTH and GLOB_SUN_ALTITUDE

Notes:
- Changing the ‘Sun Azimuth/Sun Altitude’ settings in the Camera/VR Settings Dialog will not change these Global variables unless the values are transferred to the 3D Projection Settings Dialog.
- Since the Library Part’s Sun Azimuth/Sun Altitude settings can be defined separately, these Global variables can show different values in the ArchiCAD Floor Plan/3D/Section/Elevation Windows and in the Library Part Editing Dialog’s 2D Full View/3D View Windows.


GLOB_MODPAR_NAME

Type: string
Possible length: 30 characters
Returns the name of that parameter of the Library Part that was last modified in the Library Part Settings Dialog or in the Library Part Editing Dialog.


Story Information


GLOB_HSTORY_ELEV

Old name: B_
Type: numerical (real value)
Possible range: -100.0000 and up (in meters)
Returns the elevation of the home story of the object, which is the story the object is placed on as set in the Story Settings Dialog. Since there is no story-related information in the 3D Window, there the variable does not return a valid value.


GDL_Globals01051504.png
Illustration for Global variables providing Story information


GDL_Globals01051505.png
The fields in the Story Settings Dialog corresponding to GLOB_CSTORY_ELEV, GLOB_CSTORY_HEIGHT, GLOB_HSTORY_ELEV & GLOB_HSTORY_HEIGHT in case of the above example.

In the above example (stair is placed on story 0 and the current story is 1. story) GLOB_HSTORY_ELEV is 1.50 m, GLOB_CSTORY_ELEV is 4.50 m, both GLOB_HSTORY_HEIGHT and GLOB_CSTORY_HEIGHT are 3.00 m and GLOB_CH_STORY_DIST is ‘1’ since the current story is one story higher than the home story of the Library Part.


GLOB_HSTORY_HEIGHT

Old name: Q_
Type: numerical (positive value)
Possible range: 0 – 9999.9900 (in meters)
Returns the height of the home story of the object, which is the story the object is placed on as set in the Story Settings Dialog. Since there is no story-related information in the 3D Window, there the variable does not return a valid value.
Note: see illustration at GLOB_HSTORY_ELEV.


GLOB_CSTORY_ELEV

Old name: Q~
Type: numerical (real value)
Possible range: -100.0000 and up (in meters)
Returns the elevation of the current story, which is the story currently shown in the Floor Plan Window as set in the Story Settings Dialog. Since there is no story-related information in the 3D Window, there the variable does not return a valid value.
Note: see illustration at GLOB_HSTORY_ELEV.


GLOB_CSTORY_HEIGHT

Old name: R~
Type: numerical (positive value)
Possible range: 0 – 9999.9900 (in meters)
Returns the height of the current story, which is the story currently shown in the Floor Plan Window as set in the Story Settings Dialog. Since there is no story-related information in the 3D Window, there the variable does not return a valid value.
Note: see illustration at GLOB_HSTORY_ELEV.


GLOB_CH_STORY_DIST

Old name: S~
Type: numerical (integer value)
Possible range: positive or negative or zero.
Returns a number giving the relative position of the current story to the home story of the Library Part. The value of the variable is calculated by deducting the story number of the home story from the story number of the current story. Since there is no story-related information in the 3D Window, there the variable does not return a valid value.
Note: see illustration at GLOB_HSTORY_ELEV.



Fly-through information


GLOB_FRAME_NR

Old name: N_
Type: numerical (positive integer value)
Possible range: 1 and up
Returns the current frame number in animations. The variable returns a valid value only for animations. In case of still images the variable returns ‘0’ as a value.
Note: You need to enable the ‘Rebuild Model for Each Frame’ checkbox in the Create Fly-Through Dialog in order for the variable to give the correct value for each frame of the animation.

GDL_Globals01051506.png
+The field in the Create Fly-Through Dialog enabling the operation of the GLOB_FRAME_NR variable


GLOB_FIRST_FRAME & GLOB_LAST_FRAME

Old names: O_ and P_, respectively
Type: numerical (positive integer value)
Possible range: 1 and up
Return the frame numbers of the first frame and the last frame in the fly-through. You can set these values in the Fly-Through Dialog in the two fields of the ‘Frames from – to’ portion of the Dialog. In case you select the ‘All Frames’ option instead, GLOB_FIRST_FRAME will be ‘1’ and GLOB_LAST_FRAME will return the last frame number of the full fly-through. The variable returns a valid value only for animations.

GDL_Globals01051507.png
The fields in the Fly-Through Dialog corresponding to GLOB_FIRST_FRAME and GLOB_LAST_FRAME.

Note: You need to enable the ‘Rebuild Model for Each Frame’ checkbox in the ‘Create Fly-Through’ Dialog in order for the variable to give the correct value for each frame of the animation.


GLOB_EYEPOS_X, GLOB_EYEPOS_Y & GLOB_EYEPOS_Z

Old names: K~, L~ and M~, respectively
Type: numerical (real value)
This trio of global variables returns the X, Y and Z coordinates of the current position of the camera. In case of still images it is the position marked with the selection hotspot of the camera in the Floor Plan Window that is selected to generate a perspective. In case of fly-throughs the program automatically calculates camera positions between placed camera positions based on settings made in the fly-throughs path. The global variables return valid values in case of perspective projections only (in case of both fly-throughs and still images). In the Floor Plan and 3D Windows they return the coordinates of the last selected camera eye position.

GDL_Globals01051508.png
The fields in the Coordinate Box and the Camera/VR Dialog corresponding to GLOB_EYEPOS_X, GLOB_EYEPOS_Y and GLOB_EYEPOS_Z. The location of the Eye position in the Floor Plan Window is also shown.

Note: The coordinates are relative to the Project Origin and changing the User Origin has no effect on them.


GLOB_TARGPOS_X, GLOB_TARGPOS_Y & GLOB_TARGPOS_Z

Old names: N~, O~ and P~, respectively
Type: numerical (real value)
This trio of global variables returns the X, Y and Z coordinates of the current position of the target to where the camera points. In case of still images it is the position marked with the Sun icon in the Floor Plan Window. In case of fly-throughs the program automatically calculates target positions between placed camera target positions based on settings made in the fly-throughs path. The global variables return a valid value in case of perspective projections only (in case of both fly-throughs and still images). In the Floor Plan and 3D Windows they return the coordinates of the last selected camera eye position.

GDL_Globals01051509.png
The X,Y and Z values in the Coordinate Box and the Camera/VR Dialog Box corresponding to GLOB_TARGPOS_X, GLOB_TARGPOS_Y and GLOB_TARGPOS_Z. The location of the Target position in the Floor Plan Window is also shown.

Note: the coordinates are relative to the Project Origin and changing the User Origin has no effect on them.


General element parameters


GLOB_LAYER

Type: string
Possible length: 31 characters
Possible values: layer names as set or modified in the Layer Settings Dialog
Returns the layer name of the element (the name of the layer the element is assigned to).

GDL_Globals01051510.png
The fields and values in the Info Box and the Coordinate Box corresponding to GLOB_ELEVATION, GLOB_ID and GLOB_LAYER


GLOB_ID

Type: string
Possible length: 15 characters
Returns the user ID of the element as set in the element’s Settings Dialog or modified in the Info Box when the element is selected.
Note: see illustration at GLOB_LAYER


GLOB_INTID

Type: numerical (positive integer value)
Possible range: 1 and up
Returns the internal ID of the element. The internal ID is a unique identifier generated by the program at the moment of the creation of the element and cannot be controlled by the user.
Note: no two elements generated by ArchiCAD in the same Project have the same unique ID number.


GLOB_ELEVATION

Old name: J_
Type: numerical (real value)
Returns the base elevation height of the element relative to the Project Origin.

GDL_Globals01051511.png
The field in the Object Settings Dialog corresponding to GLOB_ELEVATION

In case of Doors/Windows the variable returns the sill height of the Window/Door as set in the Window/Door Settings Dialog.

GDL_Globals01051512.png
The fields in the Window/Door Settings Dialog and the Window/Door Dimension Dialog influencing the value returned by GLOB_ELEVATION in case of Doors/Windows

Notes:
- sill height is calculated as height of Window/Door from the bottom of the wall into which it is placed (as set in Window/Door Dialog or Info Box) minus subfloor thickness (as set in the Window/Door Dimension Dialog accessible from the Window/Door Dialog).
- for the subfloor thickness value to have an effect on the returned value, the Dimensioning button has to be checked in the Window/Door Settings Dialog.

GDL_Globals01051513.png
The Dimensioning button in the Window/Door Settings Dialog



General element parameters - available for listing only


GLOB_ELEM_TYPE

Type: numerical (positive integer value)
Possible range: 1 – 12
Returns a number corresponding to the type of the element. The following table shows the numerical values returned for each element type:


Element type
Returned Value
Object
1
Lamp
2
Window
3
Door
4
Wall
5
Column
6
Slab
7
Roof
8
Fill
9
Mesh
10
Zone
11
Beam
12


GDL_Globals01051514.png
The values returned by GLOB_ELEM_TYPE



Object, Lamp, Door, Window parameters


SYMB_LINETYPE

Type: numerical (positive integer value)
Possible range: 1 and up
Returns the index number of the line type of the Object, Lamp, Door or Window used to draw it in the Floor Plan Window as set in their respective Settings Dialogs. The variable is applied as the default line type of the 2D symbol of the Library Part.

GDL_Globals01051515.png
The fields in the Object Settings Dialog corresponding to SYMB_LINETYPE, SYMB_VIEW_PEN, SYMB_FILL, SYMB_SECT_PEN, SYMB_FBGD_PEN and SYMB_FILL_PEN

GDL_Globals01051516.png
The fields in the Window/Door Settings Dialog corresponding to SYMB_LINETYPE, SYMB_VIEW_PEN, SYMB_FILL, SYMB_SECT_PEN, SYMB_FBGD_PEN and SYMB_FILL_PEN


SYMB_FILL

Type: numerical (positive integer value)
Possible range: 1 and up
Returns the index number of the fill type assigned to be shown on the cut surfaces of the Object, Lamp, Door or Window in Section/Elevation Windows as set in their respective Settings Dialogs.
Note: see illustrations at SYMB_LINETYPE


SYMB_FILL_PEN

Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw in the Section/Elevation Windows the fill pattern of the cut surfaces of the Object, Lamp, Door or Window as set in their respective Settings Dialogs.
Note: see illustrations at SYMB_LINETYPE.


SYMB_FBGD_PEN

Type: numerical (integer value)
Possible range: 0 – 255
Returns the index number of the pen used to draw in the Section/Elevation Windows the fill background of the Object, Lamp, Door or Window as set in their respective Settings Dialogs. It can return the value ‘0’ as well, which means the background is transparent.
Note: see illustrations at SYMB_LINETYPE.


SYMB_SECT_PEN

Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw in the Section/Elevation Windows the contours of the cut surfaces of the Object, Lamp, Door or Window as set in their respective Settings Dialogs.
Note: see illustrations at SYMB_LINETYPE.


SYMB_VIEW_PEN

Old name: L_
Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the default pen index number of the Object, Lamp, Door or Window as set in their respective Settings Dialogs. This pen is applied on all edges in the 3D Window and on edges on view (not cut surfaces) in Section/Elevation Windows.
Note: see illustrations at SYMB_LINETYPE


SYMB_MAT

Old name: M_
Type: numerical (positive integer value)
Possible range: 1 and up
Applies to: 3D Window & Photorendering Window
Returns the index number of the default material of the Window/Door, Object or Lamp as set in its Settings Dialog that is applied to its surfaces when generating it in the above Windows.

GDL_Globals01051517.png
The field in the Library Part Settings Dialog corresponding to SYMB_MAT


SYMB_POS_X, SYMB_POS_Y & SYMB_POS_Z

Old names: X~, Y~ and Z~, respectively
Type: numerical (real value)
Possible range: all three values can be positive or zero (for Windows/Door, Objects and Lamps) or negative (for Windows/Doors, in case the Local Origin of the Window/Door is outside the body of the Wall – a possible case).
This trio of variables returns the X, Y and Z coordinates of the position of the Library Part’s Local Origin relative to the Project Origin. This point is not the point or selection dot by which the Library Part is placed in the Project. This is the point within the Library Part with the local coordinates {0,0,0}. This is the location the Library Part is placed to when there are no transformations (such as the ADD2 statement) in the 2D Script of the Library Part.

GDL_Globals01051518.png
The fields in the Coordinate Box corresponding to SYMB_POS_X, SYMB_POS_Y and SYMB_POS_Z

In case of the bed shown above, the Local Origin of the ‘Bed’ Library Part is at the point marked with the red pair of arrows in the Floor Plan Window. By going to the Library Part Editing Dialog and generating a 2D Full View you can always determine where its Local Origin is relative to the 2D View of the Object. Even though the Object was placed in the Floor Plan Window by its left-lower corner at the coordinates {0,0}, the Local Origin of the Library Part is at {0.45,2.00} in the X-Y plane.

In case of Doors/Windows, the variables return the position of the Local Origin of the Window/Door relative to the starting point and the bottom of the Wall in which they are placed. The starting point of any Wall is the starting point of its reference line.
Let’s consider the case below:

GDL_Globals01051519.png
Example of SYMB_POS_X, SYMB_POS_Y and SYMB_POS_Z


The three values generated for this example as parts of the Window Object’s 2D View are (from top to bottom) SYMB_POS_X, SYMB_POS_Y and SYMB_POS_Z. The pair of arrows in the Floor Plan Window shows the Local Origin of the Window Object. The Local Origin is 2.75 meters from the starting point of the enclosing Wall. This is the value of SYMB_POS_X. However, the Y and Z coordinates are swapped because of the special way Doors/Windows are generated in GDL (see Chapter 12.1 General Guidelines in the GDL Reference Manual). For this reason, the SYMB_POS_Y variable returns the height of the Window/Door in the Wall. This value is 0.9 meters in our example. SYMB_POS_Z is calculated by how far above the Window/Door’s Local X-Y plane from the reference side plane of the Wall is. Depending on which side of the Wall the Window/Door is and if it is flipped, SYMB_POS_Z can be either positive or negative. In our above example, flipping the Window - the frame width of which is 0.10 meters - would cause SYMB_POS_Z to return –0.15 meters as shown by the illustration below. Please note how the position of the Local X-Y of the Object changed by flipping it:

GDL_Globals01051520.png
Example of SYMB_POS_X, SYMB_POS_Y and SYMB_POS_Z when the Window is flipped



Object, Lamp parameters


SYMB_ROTANGLE

Old name: W~
Type: numerical (angle value)
Possible range: 0 – 359.9990° (in Settings Dialog a value between -359.9990° – 359.9990° can be entered, which then will be converted to value within the given range)
Returns the rotation angle of the Library Part in the X-Y plane as set in the Library Part Settings Dialog. The rotation is performed around the anchor point of the Object. The anchor point is that selection dot of the Library Part by which it is placed.

GDL_Globals01051521.png
The fields in the Library Part Settings Dialog corresponding to SYMB_ROTANGLE and SYMB_MIRRORED

The variable is valid even in case of Doors/Windows and is either 0° or 180° depending on whether the body of Window/Door extends upwards/downwards and whether it is flipped. Let’s consider the following example:

GDL_Globals01051522.png
Examples for SYMB_ROTANGLE at various Window placements (direction where Window looks at and flipping)

If you open the Window/Door for editing and generate its 2D Full View you will see the following or similar:

GDL_Globals01051523.png
2D Full View of Window

As you can see the body of the Window extends downwards from its Local Origin. If in the Floor Plan Window the Window is generated the same way (its body extending downward as in the Editing Dialog) the returned value is 0°. Whenever its body extends upwards the returned value is 180° (because the original generated 2D view of the Window has to be rotated 180° to be correctly displayed.
In the above example fro SYMB_ROTANGLE, the Window is placed in a Wall 0.30 meters wide and the sill is 0.05 meters deep. The four possible states of the Window/Door are (from top to bottom):
Window is at upper side of Wall, it is not flipped (thus window body extends downward) – SYMB_ROTANGLE is 0°
Window is at lower side of Wall, it is not flipped (thus window body extends upward) – SYMB_ROTANGLE is 180°
Window at lower side of Wall, it is flipped (thus window body extends downward) – SYMB_ROTANGLE is 0°
Window at upper side of Wall, it is flipped (thus window body extends upward) – SYMB_ROTANGLE is 180°


SYMB_MIRRORED

Old names: V~
Type: numerical (integer value)
Possible range: 0 or 1
Returns a number corresponding to the ‘mirrored’ status of the Library Part. The returned value is ‘0’ if the ‘Mirrored’ checkbox in the Library Part Settings Dialog is not checked and it is ‘1’ if it is checked. When done, the mirroring is performed around the current anchor point, which is the point by which the Library Part is placed.
Note: unlike the SYMB_ROTANGLE variable, this variable is not valid for Doors/Window (it always returns 0).

GDL_Globals01051524.png
The checkbox in the Library Part Settings Dialog corresponding to SYMB_MIRRORED



Object, Lamp, Door, Window parameters - available for listing only


SYMB_A_SIZE

Type: numerical (positive value)
Possible range: 0 or up (in meters)
Returns the nominal length of Library Part (usually the dimension parallel with the X-axis) as set in its Settings Dialog. In case of Doors/Windows it returns the width of the Window/Door.

GDL_Globals01051525.png
The fields in the Library Part Settings Dialog corresponding to SYMB_A_SIZE, SYMB_B_SIZE and SYMB_Z_SIZE


SYMB_B_SIZE

Type: numerical (positive value)
Possible range: 0 or up (in meters)
Returns the nominal width of the Library Part (usually the dimension perpendicular to the X-axis) as set in its Settings Dialog. In case of Doors/Windows it returns the height of the Window/Door.

GDL_Globals01051526.png
The fields in the Window/Door Settings Dialog corresponding to SYMB_A_SIZE and SYMB_B_SIZE



Object, Lamp parameters - available for listing only


SYMB_Z_SIZE

Type: numerical (positive value)
Possible range: 0 or up (in meters)
Returns the nominal height of the Library Part (the dimension parallel to the X-Y plane) as set in its Settings Dialog.
If the first user parameter as set in the Object/Lamp Editing Dialog is named ‘zzyzx’ then this will be used as the nominal height for the element. Otherwise the nominal height cannot be set in the Dialog and the variable will return ‘0’. Also, if the Library Part has no 3D part the variable will return ‘0’.

GDL_Globals01051527.png
Example of a lamp where no field appears below the length and width fields for setting nominal height. See illustration at SYMB_A_SIZE where there is field for setting nominal height as a result of zzyzx being the first user parameter

GDL_Globals01051528.png
The result of a simple list where nominal size global variables of the example bed at SYMB_A_SIZE are listed



Window, Door parameters


WIDO_REVEAL_ON

Type: numerical (integer value)
Possible values: 0 or 1
Returns a number corresponding to the current state of the reveal of the Window/Door as set in their Settings Dialog. The returned value is ‘0’ if the reveal is turned OFF and it is ‘1’ if the reveal is turned ON.

GDL_Globals01051529.png
The buttons in the Window/Door Settings Dialog influencing the value of WIDO_REVEAL_ON (top) and the fields corresponding to WIDO_SILL (middle) and WIDO_REVEAL_SIDE (bottom). Of the three buttons below the Preview Window the left and middle ones set WIDO_REVEAL_ON to ‘0’ and the one on the right sets it to ‘1’.


WIDO_SILL

Old name: K_
Type: numerical (real value)
Possible range: any value (in meters - can be even negative)
Returns the sill size of the Window/Door as set in their Settings Dialog. In the case of the Window/Door being in a curved wall the distance is measured in radial direction from the imaginary line connecting the ends of two sides of the Window/Door. Please see illustration below.

GDL_Globals01051530.png
The values corresponding to WIDO_SILL in case of straight and curved walls.

Note: if the Window/Door has a reveal the ‘Reveal depth’ field in the Reveal Setup Subdialog of the Window/Door Settings Dialog is the field corresponding to WIDO_SILL.

GDL_Globals01051531.png
The field in the Reveal Setup Subdialog corresponding to WIDO_SILL.


WIDO_RIGHT_JAMB

Old name: B~
Type: numerical (positive value)
Possible range: 0 to half of nominal width of Window/Door (SYMB_A_SIZE/2) (in meters)
Returns the jamb depth on the left side of the Window/Door as set in the Reveal Setup Subdialog of the Window/Door Settings Dialog. If there is no reveal the returned value is ‘0’.

GDL_Globals01051532.png
The fields in the Reveal Setup Dialog corresponding to WIDO_RIGHT_JAMB and WIDO_LEFT_JAMB


WIDO_LEFT_JAMB

Type: numerical (positive value)
Possible range: 0 to half of nominal width of Window/Door (SYMB_A_SIZE/2) (in meters)
Returns the jamb depth on the right side of the Window/Door as set in the Reveal Setup Subdialog of the Window/Door Settings Dialog. If there is no reveal the returned value is ‘0’.
Note: see illustration at WIDO_RIGHT_JAMB


WIDO_THRES_DEPTH

Old name: C~
Type: numerical (positive value)
Possible range: 0 to half of nominal height of Window/Door (SYMB_B_SIZE/2) (in meters)
Returns the sill/threshold depth of the Window/Door as set in the Reveal Setup Subdialog of the Window/Door Settings Dialog. If there is no reveal the returned value is ‘0’.

GDL_Globals01051533.png
The field in the Reveal Setup Dialog corresponding to (from top to left) WIDO_HEAD_DEPTH and WIDO_THRES_DEPTH


WIDO_HEAD_DEPTH

Old name: D~
Type: numerical (positive value)
Possible range: 0 to half of nominal height of Window/Door (SYMB_B_SIZE/2) (in meters)
Returns the head depth of the Window/Door as set in the Reveal Setup Subdialog of the Window/Door Settings Dialog. If there is no reveal the returned value is ‘0’.
Note: see illustration at WIDO_THRES_DEPTH


WIDO_REVEAL_SIDE

Old name: E~
Type: numerical (integer value)
Possible values: 0 or 1
Returns a number corresponding to the state of the opening side of the Window/Door. It expresses the state of its position relative to the side of the reveal.
In case of a Window the Window is placed in such a way so that it ‘looks’ in the direction of its Reveal. Therefore as a default the variable returns ‘0’ and returns ‘1’ if the Window is flipped. In case of a Door the Door is placed in such a way that it extends to the direction opposite to its reveal side. Therefore the default return value for Doors is ‘1’ and ‘0’ is returned when the Door is flipped.
Note: see illustration at WIDO_REVEAL_ON


WIDO_FRAME_THICKNESS

Old name: F~
Type: numerical (positive value)
Possible range: 0 or up (in meters)
Returns the thickness of the frame of the Window/Door, as set in the Details Dialog accessible from the Library Part Editing Dialog (when the ‘Parameters’ list is active). This is the value the program uses when flipping a Window/Door. The program does the flipping by first mirroring the Window/Door around its local X-axis and then relocating it along the Y-axis with this value. With this it can be achieved that only the opening side of the Window/Door changes but not its location in the Wall. If the Library Part has no 3D part the variable will return ‘0’.

GDL_Globals01051534.png
The steps executed by ArchiCAD when flipping a Window/Door: the example Door is first mirrored then relocated by WIDO_FRAME_THICKNESS

GDL_Globals01051535.png
The fields in the Details Dialog accessible by clicking the ‘Details’ button in the Library Part Editing Dialog. They correspond to WIDO_FRAME_THICKNESS, WIDO_PWALL_INSET and WIDO_ORIENTATION


WIDO_POSITION

Old name: H~
Type: numerical (real value – in case of straight walls; angle value in case of curved walls)
Possible range: -([Window/Door size]/2) and up in case of straight walls; approx. -360.0000° – approx. 360.0000° in case of curved walls) (in meters)
Imagine the axis of the Window/Door. Then imagine the normal vector of its enclosing wall projecting at the starting point of the wall. This global variable returns the shortest distance along the Wall between these two parallel lines. With straight walls this is a distance value and with curved walls it is an angle value.

GDL_Globals01051536.png
The values returned by WIDO_POSITION in case of various Wall shapes and Window/Door positions

Consider the above example. In case of straight walls it is self-explanatory: in most case the returned value is a positive number (if more than half of the Window/Door is outside the Wall body then it is negative). In case of curved walls the method of calculation is the following: there is a way the Window/Door is generated. You can see this by going to the Library Part Editing Dialog and viewing the 2D Full View. In our example the Door opens to the right (see below):

GDL_Globals01051537.png
The default opening direction of the example Door

Since positive angles are measured counter-clockwise, if the starting point of the wall is clockwise from the centerline of the Door the returned angle value is negative and if it is counter-clockwise from the centerline of the Door the returned angle value is positive.
If the Door is placed in such a way that it is mirrored around its centerline the directions for negative and positive values are swapped (because of the mirroring). In such a case, if the starting point of the wall is clockwise from the centerline of the Door the returned angle value is positive and if it is counter-clockwise from the centerline of the Door the returned angle value is negative.

Notes:
  • the Window/Door can actually be placed in such a way that the whole of it is outside the body of the wall but its end is just placed at the end of the wall (see top of left straight wall of example), hence the possibility of negative values.
  • If there is a space fill as part of the Window/Door (because the Window/Door polygon is not rectangular) the origin of the texture and 3D hatch of those space fill bodies are located in the starting point of the enclosing Wall.


WIDO_ORIENTATION

Type: string
Possible length: max. 31 characters
Returns a string corresponding to the orientation of the Window/Door (L – left, R – right or any other custom value). This will work fine if the Window/Door was created according to the local standards concerning orientation.
Note: see last illustration at WIDO_FRAME_THICKNESS.


WIDO_MARKER_TXT

Type: string
Possible length: max. 3 characters
Returns the marker text in a string as set in the Window/Door Dimension Settings Subdialog accessible from the Window/Door Settings Dialog

GDL_Globals01051538.png
The fields in the Dimension Settings Subdialog of the Window/Door Settings Dialog corresponding to (from top to bottom) WIDO_MARKER_TXT, WIDO_SUBFL_THICKNESS, WIDO_PREFIX and WIDO_CUSTOM_MARKER


WIDO_SUBFL_THICKNESS

Type: numerical (positive value)
Possible range: 0 or up (in meters)
Returns the subfloor thickness (sill correction value) as set in the Window/Door Dimension Subdialog of the Window/Door Settings Dialog.
Note: see illustration at WIDO_MARKER_TXT


WIDO_PREFIX

Type: string
Possible length: max. 7 characters
Returns the Window/Door Dimension’s sill height prefix text in a string as set in the Window/Door Dimension Settings Subdialog of the Window/Door Settings Dialog.
Note: see illustration at WIDO_MARKER_TXT


WIDO_CUSTOM_MARKER

Type: numerical (integer value)
Possible values: 0 or 1
Returns a number corresponding to the state of the ‘Use Object’s Settings’ checkbox as set in the Window/Door Dimension Settings Subdialog of the Window/Door Settings Dialog. Returns ‘0’ when the checkbox is not checked and returns ‘1’ when it is checked (the case in which the dimensions automatically generated by ArchiCAD do not appear and custom marker and dimensioning information can be displayed for the Window/Door as written in their 2D Scripts.
Note: see illustration at WIDO_MARKER_TXT


WIDO_ORIG_DIST

Old name: R_
Type: numerical (real value) (in meters)
Returns the distance from the local origin of the Window/Door of the center point of the curved Wall into which the Window/Door was placed. Since the variable applies only to curved walls, when the Window/Door is placed into a straight wall the returned value is 0.

GDL_Globals01051539.png
The values returned by WIDO_ORIG_DIST in cases of various placements of Doors.

As you can see on the above example, the direction of the plus (+) range of the Door’s local origin changes with the opening direction of the Door, which is defined at the time of its placement. Depending on this the variable returns positive or negative values as automatically generated on the example.
The variable returns values with opposite signs in the Floor Plan and the 3D Window. If you look at Chapter 12.1 in the GDL manual you will see that the way a Window/Door is generated in 3D is that it is rotated 90 degrees around its own X-axis. This way a direction that was positive Y on the Floor Plan Window becomes negative Z in the 3D Window and a direction that was negative Y on the Floor Plan Window becomes positive Z in the 3D Window. So if the variable returned 1.6 meters in the Floor Plan Window it will return –1.6 meters in the 3D Window.


WIDO_PWALL_INSET

Type: numerical (real value) (in meters)
Returns the inset of the parapet wall just below the Window/Door, as set in the Details Dialog accessible from the Library Part Editing Dialog (when a Window/Door is opened for editing and the ‘Parameters’ button is activated on the list side of the Dialog).
Note: see last illustration at WIDO_FRAME_THICKNESS.



Lamp parameters - available for listing only


LIGHT_ON

Type: numerical (integer value)
Possible values: 0 or 1
Returns a number corresponding to the state of the Lamp Object as set in its Lamp Settings Dialog. The returned value is ‘0’ if the light is switched OFF and it is ‘1’ if the light is switched ON.

GDL_Globals01051540.png
The fields in the Lamp Settings Dialog corresponding to LIGHT_ON and LIGHT_INTENSITY and the color field giving access to the settings for LIGHT_RED, LIGHT_GREEN and LIGHT_BLUE


LIGHT_RED, LIGHT_GREEN & LIGHT_BLUE

Type: numerical (positive value)
Possible range: 0 to 1.0000
This trio of variables returns the red, green and blue components of the color of the light, as set in the Light Settings Dialog accessible by double clicking on the color field in the Lamp Settings Dialog. The returned values are 1.0000 if the highest possible value was entered in the field (255 on Windows, 65535 on the Mac) and they are 0 when the lowest possible value (0 on both platforms) was entered. All other values are proportionally calculated.

GDL_Globals01051541.png
The fields in the Set Light Color Dialog corresponding to LIGHT_RED, LIGHT_GREEN and LIGHT_BLUE

Example: if on Windows, ‘153’ is set in the field for the Red component then the value returned by LIGHT_RED will be 0.6000 (153/255=0.6).


LIGHT_INTENSITY

Type: numerical (integer value)
Possible range: 0 to 100
Returns a number corresponding to the intensity of the light of the Lamp Object as set in the Lamp Settings Dialog.
Note: see illustration at LIGHT_ON
The following illustration shows a result of listing all the above five Lamp Object-related global variables.

GDL_Globals01051542.png
The list of Lamp-related global variables


Label parameters


LABEL_POSITION

Type: numerical (real value)
Possible range: any value (in meters)
Returns a array of numbers with a dimension of 3 rows by 2 columns containing {X; Y} coordinate information about the label arrow’s definition points. The index values of the array range from [1][1] to [3][2].

GDL_Globals01051543.png
The 3 definition points of the Label arrow

The three coordinate pairs return the following information:

LABEL_POSITION[1][1] & LABEL_POSITION[1][2] : they return the X and Y coordinates of the beginning of the Label pointer’s leader (marked with P1 on above illustration).
LABEL_POSITION[2][1] & LABEL_POSITION[2][2] : they return the X and Y coordinates of the relative vector going from the beginning of the Label pointer’s leader (P1) to the break point of the leader (P2). The values are calculated by deducting the respective X, Y coordinates of P1 from P2.
LABEL_POSITION[3][1] & LABEL_POSITION[3][2] : they return the X and Y coordinates of the relative vector going from the break point of the Label pointer’s leader (P2) to the end (tip) of the leader (P3). The values are calculated by deducting the respective X, Y coordinates of P2 from P3.

In the above illustration, P1 is in the point {6,2}, P2 is at {1,2} and P3 is at {0,0}. From this, the array will return the following values:
LABEL_POSITION[1][1], LABEL_POSITION[1][2] : {6,2}
LABEL_POSITION[2][1], LABEL_POSITION[2][2] : {-5,0}
LABEL_POSITION[3][1], LABEL_POSITION[3][2] : {-1,-2}


LABEL_CUSTOM_ARROW

Type: numerical (positive value)
Possible values: 0 or 1
Returns a number corresponding to the state of the arrow of the Label automatically generated by ArchiCAD as set in the Label Settings Dialog. The returned value is ‘0’ when the default ArchiCAD arrow is used and it is ‘1’ when the default arrow is not drawn (custom arrow can be generated by Label script).

GDL_Globals01051544.png
The checkbox in the Label Settings Dialog corresponding to LABEL_CUSTOM_ARROW


LABEL_ARROW_PEN

Type: numerical (positive integer value)
Possible range: 1 to 255
Returns the index number of the pen used for the leader of the Label’s default pointer (arrow) as set in the Label Settings Dialog.

GDL_Globals01051545.png
The fields in the Label Settings Dialog corresponding to LABEL_ARROWHEAD_PEN, LABEL_ARROW_PEN and LABEL_ANCHOR_POS


LABEL_ARROWHEAD_PEN

Type: numerical (positive integer value)
Possible range: 1 to 255
Returns the index number of the pen used for the arrowhead of the Label’s default pointer (arrow) as set in the Label Settings Dialog.
Note: see illustration at LABEL_ARROW_PEN


LABEL_FONT_NAME

Type: string
Returns in a string he name of the font used for the Label’s own texts (but not texts generated by Label scripts) as set in the Label Settings Dialog.

GDL_Globals01051546.png
The fields in the Label Settings Dialog corresponding to LABEL_FONT_NAME, LABEL_FONT_STYLE, LABEL_TEXT_SIZE, LABEL_TEXT_PEN and LABEL_FRAME_ON


LABEL_TEXT_SIZE

Type: numerical (positive value)
Possible range: 0.1000 mm or up
Returns the size of the Label’s own texts (but not texts generated by Label scripts) in millimeters as set in the Label Settings Dialog.
Note: see illustration at LABEL_FONT_NAME


LABEL_TEXT_PEN

Type: numerical (positive integer value)
Possible range: 1 to 255
Returns the index number of the pen used for the Label’s texts as set in the Label Settings Dialog.
Note: see illustration at LABEL_FONT_NAME


LABEL_FONT_STYLE

Type: numerical (integer value)
Possible range: 0 to 7
Returns a number corresponding to the state of the style of the Label’s own texts (but not texts generated by Label scripts) as set in the Label Settings Dialog. The following table shows the value returned by this variable with each combination of the ‘Bold’, ‘Italic’ and ‘Underline’ checkboxes checked:

‘Bold’ checked
‘Italic’ checked
‘Underline’ checked
LABEL_FONT_STYLE
NO
NO
NO
0
YES
NO
NO
1
NO
YES
NO
2
YES
YES
NO
3
NO
NO
YES
4
YES
NO
YES
5
NO
YES
YES
6
YES
YES
YES
7

Notes:
- when none of the checkboxes is checked, the font’s style is Normal.
- see illustration at LABEL_FONT_NAME


LABEL_FRAME_ON

Type: numerical (integer value)
Possible range: 0 or 1
Returns a number corresponding to the state of the frame drawn around the Label’s text or the custom Label as set in the Label Settings Dialog. The returned value is ‘0’ if the frame is not drawn and it is ‘1’ if the frame is drawn.
Note: see illustration at LABEL_FONT_NAME


LABEL_ANCHOR_POS

Type: numerical (integer value)
Possible values: 0, 1 or 2
Returns a number corresponding to the position of the Label’s pointer relative to the Label’s text or the custom Label as set in the Label Settings Dialog. The returned value is ‘1’ if the pointer attached to the Label’s text at the top, it is ‘0’ if it is attached at the middle and it is ‘2’ if it is attached at the bottom.
Note: see illustration at LABEL_ARROW_PEN



Wall parameters - available for Doors/Windows


WALL_RESOL

Old name: J~
Type: numerical (positive integer value)
Possible range: 3 and up
Returns the resolution of the wall body in 3D in which the Window/Door is placed. Since at least 3 sides are needed for any 3D body the minimum value is 3.
Note: the variable is effective in 3D only. Any number created while in the Floor Plan or Section/Elevation Windows is not applicable.


WALL_THICKNESS

Old name: C_
Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the thickness of the Wall into which the Window/Door is placed.

GDL_Globals01051547.png
The fields in the Wall Settings Dialog corresponding to WALL_LINETYPE, WALL_SECT_PEN, WALL_FILL/WALL_COMPS_NAME, WALL_FILL_PEN, WALL_FBGD_PEN, WALL_HEIGHT, WALL_POSITION[3] and WALL_THICKNESS

In case of inclined walls the variable returns the thickness of the wall at the centerline of the Window/Door measured perpendicularly to the reference line of the wall as shown in the below example.

GDL_Globals01051548.png
WALL_THICKNESS in case of inclined walls

The mathematical formula for calculating WALL_THICKNESS is the following:

If the starting width of the wall is W1 (40 cm in example), its ending width is W2 (20 cm in example), the length of the wall is L (2.00 m in example) and the distance of the center of the Window/Door from the beginning of the wall is L1 (50 cm in example), it is calculated the following way:

GDL_Globals01051549.png

WALL_THICKNESS = 35 cm


WALL_INCL

Type: numerical (angle value)
Possible range: -90.0000 – +90.0000 (arc tangent value)
Returns the angle between the sides of the inclined wall into which the Window/Door is placed. The formula for calculating WALL_INCL (using the previous example and variables):

GDL_Globals01051550.png

WALL_INCL = -5.71059°

The value will be positive when the end width of the inclined wall is larger then its starting width. Naturally, for straight walls the returned value is 0.


WALL_HEIGHT

Old name: D_
Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the height of the Wall into which the Window/Door is placed as set in the Wall Settings Dialog.
Note: see illustration at WALL_THICKNESS


WALL_MAT_A

Old name: G_
Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the reference side of the Wall into which the Window/Door is placed.

GDL_Globals01051551.png
The fields in the Wall Settings Dialog corresponding to WALL_MAT_A, WALL_MAT_EDGE and WALL_MAT_B


WALL_MAT_B

Old name: H_
Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the side of the Wall opposite to its reference side into which the Window/Door is placed.
Note: see illustration at WALL_MAT_A


WALL_MAT_EDGE

Old name: I_
Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the edges of the Wall into which the Window/Door is placed.
Note: see illustration at WALL_MAT_A


WALL_LINETYPE

Type: numerical (positive integer value)
Possible range: 1 and up
Returns the index number of the line type of the Wall into which the Door-Window is placed as set in the Wall Settings Dialog. The contours of the Wall will be drawn using this line type in the Floor Plan Window and in the Section/Elevation Windows.
Note: see illustration at WALL_THICKNESS


WALL_FILL

Old name: A~
Type: numerical (positive integer value)
Possible range: 1 and up
Returns the index number of the fill type assigned to be shown in the Floor Plan Window the Wall into which the Window/Door is placed as set in the Wall Settings Dialog. This same fill is used to draw the fill pattern of the cut surface of this Wall in the Section/Elevation Windows.
Please note that this variable returns a valid number both when the Wall has a single fill as its structure and when it has a composite structure. The numbering of both fills and composite structures starts at 1 (as you can check in OptionsAttribute Manager...). For help, you can check the state of the WALL_COMPS_NAME variable to see which case is present. When the Wall has a single fill structure the WALL_COMPS_NAME variable returns an empty (zero-length) string. For more information, see WALL_COMPS_NAME.
Note: see illustration at WALL_THICKNESS


WALL_FILL_PEN

Old name: F_
Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw in the Floor Plan Window the fill pattern and in the Section/Elevation Windows the fill pattern of the cut surfaces of the Wall into which the Window/Door is placed as set in the Wall Settings Dialog.
Note: see illustration at WALL_THICKNESS


WALL_COMPS_NAME

Type: string
Possible length: 31 characters
Returns in a string the full name of the composite structure used in the Floor Plan Window and in the Section/Elevation Windows of the Wall into which the Window/Door is placed as set in the Wall Settings Dialog. In case a single fill is used for the Wall the variable returns an empty (zero-length) string.
Note: see illustration at WALL_THICKNESS


WALL_SKINS_NUMBER

Type: numerical (integer value)
Possible range: 0 – 8
Returns the number of skins the composite wall is made of. The number varies between 1 and 8 if a composite fill is the fill of the wall into which the Window/Door is placed. When the wall’s fill is a single fill the variable returns 0.
Note: see example at WALL_SKINS_PARAMS


WALL_SKINS_PARAMS

Returns an array that gives the parameters of all skins of the Wall into which the Window/Door is placed. The array always has 6 columns and 1 to 8 rows. The range of index values is [1][1] to [6][x] where x equals WALL_SKINS_NUMBER. The following table shows the variables returned by the different rows in ascending order and also their types and possible ranges or values:

Row
Variable returned
Type
Possible range/values
Row 1:
index of the fill type of the skin
Numerical (positive integer value)
1 and up
Row 2:
Thickness of the skin in meters
Numerical (positive value)
0.0001 meters and up
Row 3:
index of the pen of the outline of the skin
Numerical (positive integer value)
1 – 255
Row 4:
index of the pen of the fill pattern of the skin
Numerical (positive integer value)
1 – 255
Row 5:
index of the background pen of fill pattern of the skin
Numerical (integer value)
0 – 255
Row 6:
core status of the skin
numerical (integer value)
0, 1 or 3

GDL_Globals01051552.png
The values in the Composite Structures Dialog corresponding to or influencing WALL_SKINS_PARAMS[6][x], WALL_SKINS_PARAMS[1][x], WALL_SKINS_PARAMS[3][x], WALL_SKINS_PARAMS[4][x], WALL_SKINS_PARAMS[5][x] and WALL_SKINS_PARAMS[2][x].

In case of Row 6 the values are generated the following way: if a skin is not part of the core of the composite structure the returned value is 0. If the skin is part of the core the returned value is 1 and if it is the first skin from the bottom that is part of the core, 3 is the returned value. IN the above example this is skin ‘concrete block’. In case there is only one skin in the structure that forms the core its returned value is always 3.

Notes:
  • the row indexes start from bottom to top of the structure defined in the Composite Structures Dialog so the skin at the bottom will be returned in WALL_SKINS_PARAMS[1][x], the next up in WALL_SKINS_PARAMS[2][x] and so on.

  • there are two checkboxes in the Wall Settings Dialog that can define whether the composite uses its own defined outline/fill/background pens or the ones defined in the Wall Settings Dialog. So the state of these checkboxes will influence some of the values returned by the WALL_SKINS_PARAMS array.

GDL_Globals01051553.png
The two checkboxes in the Wall Settings Dialog influencing the values returned by WALL_SKINS_PARAMS[3][x], WALL_SKINS_PARAMS[4][x] and WALL_SKINS_PARAMS[5][x]

The example above returns the below values:

GDL_Globals01051554.png
The values returned by WALL_SKINS_NUMBER and the WALL_SKINS_PARAMS array in case of the above example


WALL_SECT_PEN

Old name: E_
Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw the outlines in the Floor Plan Window and the contours of cut surfaces in the Section/Elevation Views of the Wall into which the Window/Door is placed as set in the Wall Settings Dialog.
Note: see illustration at WALL_THICKNESS


WALL_VIEW _PEN

Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw in the Section/Elevation Windows the visible edges (not cut surfaces) of the Wall into which the Window/Door is placed as set in the Wall Settings Dialog. This pen is used to draw all edges of the Wall in the 3D Window and all visible edges (not the edges of cut bodies) in Section/Elevation Windows.

GDL_Globals01051555.png
The field in the Wall Settings Dialog corresponding to WALL_VIEW_PEN


WALL_FBGD_PEN

Type: numerical (integer value)
Possible range: 0 – 255
Returns the index number of the pen used to draw in the Floor Plan Window the fill background of the Wall into which the Window/Door is placed as set in the Wall Settings Dialog. It can return the value ‘0’ as well, which means the background is transparent.
Note: see illustration at WALL_THICKNESS


WALL_DIRECTION

Type: numerical (angle value)
Possible range: 0° – 359.9999°
Returns the angle along which the Wall into which the Window/Door is placed lies. The variable basically returns the angle of the reference line of the Wall relative to horizontal.

GDL_Globals01051556.png
The value of WALL_DIRECTION in case of different Wall placements

In the case when the Window/Door is placed into a curved Wall the returned value gives the angle of the arc chord connecting the two ends of the width of the Window/Door relative to horizontal.

GDL_Globals01051557.png
The way WALL_DIRECTION is calculated in case a Window/Door is placed in a curved Wall

Since the reference line of a curved wall always curves counter-clockwise, the chord’s direction will be generated based on this and thus in any case you can determine what the value will be (in the above example this is why the returned value is 105.781° and not 285.781° - which would be the opposite direction of the chord).


WALL_POSITION

Type: numerical (real value)
Possible range: any value (in meters)
Returns the starting point coordinates of the Wall into which the Window/Door is placed. The variable is a two-member array (WALL_POSITION[1] and WALL_POSITION[2]). They return the x and y coordinates of the starting point of the Wall relative to the Project’s Global Origin.

GDL Global Name
Returned value of Wall starting point
WALL_POSITION[1]
X coordinate
WALL_POSITION[2]
Y coordinate

You can determine the following way which corner of the Wall is its starting point: if you rotated the given Wall so that its reference line is horizontal and the direction of the reference line is pointing to the right (in case of curved Walls: if you rotated the curved Wall so its tangent in the starting point of its reference line is horizontal and the direction of this tangent is pointing to the right) then the lower left corner is the corner the coordinates of which this variable returns.

GDL_Globals01051558.png
The corners the [x, y] coordinates of which are returned by WALL_POSTION in case of different Walls



Wall parameters - available for listing only


GDL_Globals01051559.png
The 15 Global variables available for Walls at listing


WALL_LENGTH_A

Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the length of the Wall on the side of its reference line.


WALL_LENGTH_B

Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the length of the Wall on the side opposite to its reference line side.


WALL_SURFACE_A

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the surface area of the Wall on the side of its reference line. This includes the appropriate surfaces of Window/Door reveals as well. To get WALL_SURFACE_A the surface area of any Window/Door opening or hole is deducted from the whole surface area if its area is larger than the limit defined in the List Setup Schemes Dialog.

GDL_Globals01051560.png
The field in the Setup List Schemes Dialog influencing at least how large a Window/Door opening or an empty hole must be so that its surface area and volume are deducted from its enclosing Wall.

For example, if you define 0.5 square meters to be the limit then the surface of a 0.6x0.6 square meters hole will not be deducted from the wall’s surface while a 0.9x1.5 Window will.
Also, in case any column that protrudes from the wall or its outer surface aligns with the outer surface of the wall, that portion of the wall ‘occupied’ by the column will be deducted from the surface of the wall.


WALL_SURFACE_B

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the surface area of the Wall on the side opposite to its reference line side. This includes the appropriate surfaces of Window/Door reveals as well. To get WALL_SURFACE_B the same deductions are done as in the case of WALL_SURFACE_A.
Note: see illustrations at WALL_SURFACE_A


WALL_EDGE_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the total surface area of all edges in a Wall. Every side in a Wall body that is not WALL_SURFACE_A and WALL_SURFACE_B counts under WALL_EDGE_SURF. This includes all outside edges (top, bottom and side) of Wall and all edges of Window/Door openings (this includes the appropriate surfaces of Window/Door reveals as well) and holes within the Wall (as in the case of WALL_SURFACE_A an opening/hole counts as one if it is larger than the defined limit). The surface area of reveals also count under this variable. This means that if a hole e.g. is smaller than the limit, it counts as if it was part of the wall’s body in which case it doesn’t count as a hole and so it doesn’t count as to have edges either which would contribute to WALL_EDGE_SURF.

GDL_Globals01051561.png
All surfaces in a Wall counting as part of WALL_EDGE_SURF (colored with red)

If a column’s body is in the Wall the column will ‘bite’ out from the wall’s body. All wall surfaces that are created this way count under WALL_EDGE_SURF.
In the above illustration you can see which edges count for WALL_EDGE_SURF. In this picture the actual Doors/Windows and columns were removed for clarity.


WALL_VOLUME

Type: numerical (positive value)
Possible range: 0 and up (in cubic meters)
Returns the total volume of the Wall. As in the case of the previous 3 variables the hole limit set in the List Setup Dialog effects the returned result. The volume of any Window/Door opening or hole that is larger than the defined limit will be deducted from the volume to give the final result. Otherwise they count as being part of the wall’s volume. Also, that portion of any column being inside the wall’s body will be deducted to get the final value of WALL_VOLUME.


WALL_DOORS_NR

Type: numerical (integer value)
Possible range: 0 and up
Returns the total number of Doors placed in the Wall.


WALL_WINDS_NR

Type: numerical (integer value)
Possible range: 0 and up
Returns the total number of Windows placed in the Wall.


WALL_HOLES_NR

Type: numerical (integer value)
Possible range: 0 and up
Returns the total number of empty holes placed in the Wall.


WALL_DOORS_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the total surface area of all Doors placed in the Wall. The hole size limit setting defined in the List Setup Dialog applies here, too, so only those individual Doors exceeding the defined limit in area will count. This means that even though you may have several Doors in a Wall if the limit is set to a sufficiently high value (e.g. 2 square meters) no one Door will exceed this limit and subsequently the variable will return zero as a result.


WALL_WINDS_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the total surface area of all Doors placed in the Wall. The same hole limit applies as in the case of Doors so the final result will be returned accordingly.
Note: see also WALL_DOORS_SURF


WALL_HOLES_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the total surface area of all empty holes placed in the Wall. The same hole limit applies as in the case of Doors/Windows and the final result is returned accordingly.
Note: see also WALL_DOORS_SURF


WALL_DOORS_WID

Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the total width of all Doors placed in the Wall. If the size of the Door is smaller than the hole size limit defined in the List Setup Schemes Dialog the variable will return zero as a result as for listing purposes these Doors are non-existent as Doors and are part of the Wall in such a case.


WALL_WINDS_WID

Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the total width of all Windows placed in the Wall. The same hole size limit rule applies here just as in case of WALL_DOORS_WID.


WALL_COLUMNS_NR

Type: numerical (integer value)
Possible range: 0 and up
Returns the total number of columns placed in the Wall.


Example:

GDL_Globals01051559.png
The 15 Wall Global variables

In the above illustration we have the following dimensions and values:
Wall: 7.50 m long, 3.60 m high and 0.45 m thick
Doors: two 90/270 Doors 30 cm apart
Windows: two 90/150 Windows with a 120-cm parapet, 30 cm apart
Holes: two 60/60 holes at 120 cm and 210 cm parapet heights
Columns: two 30/30 columns between two Door and two Window, 15 cm deep in Wall.
In the List Setup Schemes Dialog the hole limit is set to 0.10 square meters (so all opening/holes will be deducted from Wall surfaces/volume).
With these data the above 15 Global Variables return the following values:

GDL_Globals01051562.png
The values returned by the Wall global variables in the above example.

As you can see, WALL_SURFACE_B is less than WALL_SURFACE_A because the two columns on the side opposite to the reference line side reduce the surface area. All holes are deducted from the Wall volume, hence the value of WALL_VOLUME. WALL_EDGE_SURF is quite large because of the large areas created by openings/ holes and column cut-ins. Other values are quite self-explanatory.
Just as a comparison here are the results when the hole size limit is set to 1.50 square meters (in this case Windows and holes will not count in width, surface and volume variables).

GDL_Globals01051563.png
The returned values in case of the larger hole size limit



Column parameters - available for listing only

COLU_CORE

Variable containing Column core/veneer properties. It serves compatibility purposes: it is only effective in the property script of .CPS (Column Properties) files and is used by ArchiCAD when generating lists containing Columns.


COLU_HEIGHT

Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the height of the Column as set in the Column Settings Dialog.

GDL_Globals01051564.png
The fields in the Column Settings Dialog corresponding to COLU_LINETYPE, COLU_SECT_PEN, COLU_CORE_FILL, COLU_CORE_FILL_PEN, COLU_CORE_FBGD_PEN, COLU_VENEER_FILL, COLU_VENEER_FILL_PEN, COLU_VENEER_FBGD_PEN, COLU_HEIGHT and COLU_VENEER_WIDTH


COLU_VENEER_WIDTH

Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the thickness of the veneer of the Column as set in the Column Settings Dialog.
Note: see illustration at COLU_HEIGHT


COLU_MAT

Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the sides of the Column as set in the Column Settings Dialog.

GDL_Globals01051565.png
The fields in Column Setting Dialog corresponding to (from top to bottom) COLU_MAT and COLU_VIEW_PEN

Notes:
- Wall wrapping will replace column material with the materials of the connecting walls. However, COLU_MAT will still return the original material set in the Settings Dialog.


COLU_LINETYPE

Type: numerical (positive integer value)
Possible range: 1 and up
Returns the index number of the line type of the Column as set in the Column Settings Dialog. This is the line type with which the contours of the Column will be drawn in the Floor Plan Window. The same line type is used in the Section/Elevation Windows to draw the contours of the cut surfaces of the Column.
Note: see illustration at COLU_HEIGHT


COLU_CORE_FILL

Type: numerical (positive integer value)
Possible range: 1 and up
Returns the index number of the fill type assigned to core part of the Column as set in the Column Settings Dialog. It will be used in the Floor Plan Window to draw the fill pattern of the Column core and in the Section/Elevation Windows to draw the fill pattern of the cut surfaces of the Column core.
Note: see illustration at COLU_HEIGHT


COLU_VENEER_FILL

Type: numerical (positive integer value)
Possible range: 1 and up
Returns the index number of the fill type assigned to veneer part of the Column as set in the Column Settings Dialog. It will be used in the Floor Plan Window to draw the fill pattern of the Column veneer and in the Section/Elevation Windows to draw the fill pattern of the cut surfaces of the Column veneer.
Note: see illustration at COLU_HEIGHT


COLU_SECT_PEN

Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw the contours of both the core and the veneer in the Floor Plan Window and the contours of cut surfaces in the Section/Elevation Views of both the core and the veneer of the Column as set in the Column Settings Dialog.
Note: see illustration at COLU_HEIGHT


COLU_VIEW_PEN

Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw the contours of the Column as set in the Column Settings Dialog. This pen is used to draw all edges of the Column in the 3D Window and all visible edges (not cut surfaces) in Section/Elevation Windows.
Note: see illustration at COLU_MAT


COLU_CORE_FILL_PEN

Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw in the Floor Plan Window the fill pattern of the core of the Column and in the Section/Elevation Windows the fill pattern of the cut surfaces of the core of the Column as set in the Column Settings Dialog.
Note: see illustration at COLU_HEIGHT


COLU_CORE_FBGD_PEN

Type: numerical (integer value)
Possible range: 0 – 255
Returns the index number of the pen used to draw in the Floor Plan Window the fill background of the core of the Column and in the Section/Elevation Windows the fill background of the cut surfaces of the core of the Column as set in the Column Settings Dialog. It can return the value ‘0’ as well, which means the background is transparent.
Note: see illustration at COLU_HEIGHT


COLU_VENEER_FILL_PEN

Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw in the Floor Plan Window the fill pattern of the veneer of the Column and in the Section/Elevation Windows the fill pattern of the cut surfaces of the veneer of the Column as set in the Column Settings Dialog.
Note: see illustration at COLU_HEIGHT


COLU_VENEER_FBGD_PEN

Type: numerical (integer value)
Possible range: 0 – 255
Returns the index number of the pen used to draw in the Floor Plan Window the fill background of the veneer of the Column and in the Section/Elevation Windows the fill background of the cut surfaces of the veneer of the Column as set in the Column Settings Dialog. It can return the value ‘0’ as well, which means the background is transparent.
Note: see illustration at COLU_HEIGHT


COLU_CORE_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the surface area of the core of the Column on its sides. The top and bottom surfaces of the core are not included in this value. In case of a round
Column the value returned is the surface around the Column core.


COLU_CORE_VOL

Type: numerical (positive value)
Possible range: 0 and up (in cubic meters)
Returns the volume of the core of the Column.


COLU_VENEER_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the surface area of the veneer of the Column on its sides. The top and bottom surfaces of the core are not included in this value. In case of a round Column the value returned is the surface around the Column veneer.


COLU_VENEER_VOL

Type: numerical (positive value)
Possible range: 0 and up (in cubic meters)
Returns the volume of the veneer of the Column (the volume of the whole Column [core and veneer] minus the volume of the core).

Example:
In case of the example shown in illustrations at COLU_HEIGHT and COLU_MAT the returned values are the following when listed.

GDL_Globals01051566.png
The values returned by the Column variables in case of a 30/30 rectangular Column with 10-cm veneer

GDL_Globals01051567.png
The values returned by the Column variables in case of a 30 cm diameter round Column with 10 cm veneer



Beam parameters - available for listing only


BEAM_THICKNESS

Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the thickness (or width) of the Beam as set in the Beam Settings Dialog.

GDL_Globals01051568.png
The fields in the Beam Settings Dialog corresponding to BEAM_OUTLINE_LINETYPE, BEAM_AXES_LINETYPE, BEAM_FILL, BEAM_FILL_PEN, BEAM_FBGD_PEN, BEAM_SECT_PEN, BEAM_HEIGHT, BEAM_THICKNESS and BEAM_REFLINE_OFFSET


BEAM_HEIGHT

Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the height or the beam as set in the Beam Settings Dialog.
Note: see illustration at BEAM_THICKNESS


BEAM_REFLINE_OFFSET

Type: numerical (real value)
Possible range: any number – positive, negative or zero (in meters)
Returns the offset distance of the reference line of the Beam from its axis (centerline) as set in the Beam Settings Dialog. If the reference line of the Beam is on the right side of its axis the variable returns a positive value and if it is on the left side the returned value is negative. The reference line can be outside of the beam’s body so it can take on a value higher than the half of the beam width.
Note: see illustration at BEAM_THICKNESS


BEAM_PRIORITY

Type: numerical (positive integer value)
Possible range: 1, 3, 5, 7, 9, 11, 13 and15
Returns an odd integer showing the priority index number assigned to the Beam as set in the Beam Settings Dialog. The program decides based on this number which construction element has priority in display in 3D in case of Wall/Column and Beam intersections.

GDL_Globals01051569.png
The fields in the Beam Settings Dialog corresponding to BEAM_MAT_LEFT, BEAM_MAT_TOP, BEAM_MAT_RIGHT, BEAM_MAT_BOTTOM, BEAM_MAT_END and BEAM_PRIORITY


BEAM_MAT_RIGHT

Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the right side of the Beam as set in the Beam Settings Dialog. This is the side that is on the right of the Beam when looking in the direction of the Beam’s reference line.
Note: see illustration at BEAM_PRIORITY


BEAM_MAT_LEFT

Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the left side of the Beam as set in the Beam Settings Dialog. This is the side that is on the left of the Beam when looking in the direction of the Beam’s reference line.
Note: see illustration at BEAM_PRIORITY


BEAM_MAT_TOP

Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the top side of the Beam as set in the Beam Settings Dialog.
Note: see illustration at BEAM_PRIORITY


BEAM_MAT_BOTTOM

Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the bottom side of the Beam as set in the Beam Settings Dialog.
Note: see illustration at BEAM_PRIORITY


BEAM_MAT_END

Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the ends of the Beam as set in the Beam Settings Dialog. This is also the material that will be used in the inner surfaces of any holes placed into the Beam.
Note: see illustration at BEAM_PRIORITY


BEAM_OUTLINE_LINETYPE

Type: numerical (integer value)
Possible range: 1 and up
Returns the index number of the line type of the Floor Plan outlines of the Beam as set in the Beam Settings Dialog.
Note: see illustration at BEAM_THICKNESS


BEAM_AXES_LINETYPE

Type: numerical (integer value)
Possible range: 1 and up
Returns the index number of the line type of the axis of Beam on their Floor Plan as set in the Beam Settings Dialog.
Note: see illustration at BEAM_THICKNESS


BEAM_FILL

Type: numerical (positive integer value)
Possible range: 1 and up
Returns the index number of the fill type assigned to the section of the Beam as set in the Beam Settings Dialog. It will show in Section/Elevation Windows.
Note: see illustration at BEAM_THICKNESS


BEAM_FILL_PEN

Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw in the Section/Elevation Window the fill pattern of the Beam as set in the Beam Settings Dialog.
Note: see illustration at BEAM_THICKNESS


BEAM_SECT_PEN

Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw in the Section/Elevation Window the contours of cut surfaces of the Beam as set in the Beam Settings Dialog.
Note: see illustration at BEAM_THICKNESS


BEAM_FBGD_PEN

Type: numerical (integer value)
Possible range: 0 – 255
Returns the index number of the pen used to draw in the Section/Elevation Window the fill background of the section of the Beam as set in the Beam Settings Dialog. This variable can also return ‘0’ as a value, which means it is a transparent background fill.
Note: see illustration at BEAM_THICKNESS


BEAM_DIRECTION

Type: numerical (angle value)
Possible range: 0° – 359.9999°
Returns the direction of the angle of the reference line of the Beam relative to the horizontal direction.

GDL_Globals01051570.png
The value returned by BEAM_DIRECTION in various cases of Beam placement

BEAM_POSITION

Type: numerical (real value)
Possible range: any value (in meters)
Returns the starting point coordinates of the reference line of the Beam. The variable is a two-member array (BEAM_POSITION[1] and BEAM_POSITION[2]). They return the x and y coordinates of the starting point of the reference line of the Beam relative to the Project’s Global Origin, respectively. Since the reference line can be anywhere you may encounter a case where the Beam is actually quite far from the points returned by this pair of variables.

GDL_Globals01051571.png
The position returned by the BEAM_POSITION array in case of various Beam placements


BEAM_LENGTH_RIGHT

Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the length of the Beam on the right side of the reference line. This is the side that is on the right of the Beam when looking in the direction of the Beam’s reference line.

GDL_Globals01051572.png
The measurements and surfaces returned by BEAM_LENGTH_RIGHT, BEAM_LENGTH_LEFT, BEAM_RIGHT_SURF, BEAM_LEFT_SURF, BEAM_TOP_SURF, BEAM_BOTTOM_SURF, BEAM_EDGE_SURF and BEAM_VOLUME


BEAM_LENGTH_LEFT

Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the length of the Beam on its left side. This is the side that is on the left of the Beam when looking in the direction of the Beam’s reference line.
Note: see illustration at BEAM_LENGTH_RIGHT


BEAM_RIGHT_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the surface area of the Beam on its right side. This is the side that is on the right of the Beam when looking in the direction of the Beam’s reference line. The surface areas of the holes will be deducted from the total surface to obtain this value.
Note: see illustration at BEAM_LENGTH_RIGHT


BEAM_LEFT_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the surface area of the Beam on its left side. This is the side that is on the left of the Beam when looking in the direction of the Beam’s reference line. The surface areas of the holes will be deducted from the total surface to obtain this value.
Note: see illustration at BEAM_LENGTH_RIGHT


BEAM_TOP_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the surface area of the Beam on its top surface.
Note: see illustration at BEAM_LENGTH_RIGHT


BEAM_BOTTOM_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the surface area of the Beam on its bottom surface.
Note: see illustration at BEAM_LENGTH_RIGHT


BEAM_END_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the surface area of the Beam on one of its end surfaces.
Note: see illustration at BEAM_LENGTH_RIGHT


BEAM_VOLUME

Type: numerical (positive value)
Possible range: 0 and up (in cubic meters)
Returns the volume of the Beam. The volume of the holes will be deducted from the total volume of the Beam to obtain this value.
Note: see illustration at BEAM_LENGTH_RIGHT


BEAM_HOLES_NR

Type: numerical (integer value)
Possible range: 0 and up
Returns the total number of holes placed into the Beam.

GDL_Globals01051573.png
The measurements and surfaces returned by BEAM_HOLES_NR, BEAM_HOLES_SURF, BEAM_HOLE_EDGE_SURF and BEAM_HOLES_VOLUME


BEAM_HOLES_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the total surface area of all the holes placed into the Beam. This is the amount deducted from the total side surface areas to obtain BEAM_RIGHT_SURF and BEAM_LEFT_SURF.
Note: see illustration at BEAM_HOLES_NR


BEAM_HOLE_EDGE_SURF

Type: numerical (positive value)
Possible range: 0 and up (in square meters)
Returns the total surface area of all inside surfaces of the holes placed into the Beam.
Note: see illustration at BEAM_HOLES_NR


BEAM_HOLES_VOLUME

Type: numerical (positive value)
Possible range: 0 and up (in cubic meters)
Returns the total volume of all of the holes placed into the Beam.
Note: see illustration at BEAM_HOLES_NR


GDL_Globals01051574.png
The values returned by the 30 Beam variables in the case of the example at BEAM_THICKNESS and BEAM_PRIORITY



Slab parameters - available for listing only


SLAB_THICKNESS

Type: numerical (positive value)
Possible range: 0 and up (in meters)
Returns the thickness of the Slab as set in the Slab Settings Dialog.

GDL_Globals01051575.png
The fields in the Slab Settings Dialog corresponding to SLAB_LINETYPE, SLAB_VIEW_PEN, SLAB_FILL/SLAB_COMPS_NAME, SLAB_FILL_PEN, SLAB_FILLBGD_PEN, SLAB_SECT_PEN and SLAB_THICKNESS


SLAB_MAT_TOP

Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the top side of the Slab as set in the Slab Settings Dialog.

GDL_Globals01051576.png
The fields in Slab Settings Dialog corresponding to SLAB_MAT_TOP, SLAB_MAT_EDGE and SLAB_MAT_BOTT


SLAB_MAT_EDGE

Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the edges of the Slab as set in the Slab Settings Dialog.
Note: see illustration at SLAB_MAT_TOP


SLAB_MAT_BOTT

Type: numerical (integer value)
Possible range: 0 and up
Returns the index number of the material assigned to the bottom side of the Slab as set in the Slab Settings Dialog.
Note: see illustration at SLAB_MAT_TOP


SLAB_LINETYPE

Type: numerical (integer value)
Possible range: 1 and up
Returns the index number of the line type of the Floor Plan outlines of the Slab as set in the Slab Settings Dialog.
Note: see illustration at SLAB_THICKNESS


SLAB_FILL

Type: numerical (integer value)
Possible range: 1 and up, -1 and down
Returns the index number of the fill type assigned to the section of the Slab as set in the Slab Settings Dialog. This fill is used to draw the fill pattern of the cut surfaces of the Slab in the Section/Elevation Windows. The variable returns a negative value if there is a composite fill assigned to the Slab. In such a case it returns with a negative sign the index number of the composite structure assigned to the section of the Slab.
Note: see illustration at SLAB_THICKNESS


SLAB_FILL_PEN

Type: numerical (positive integer value)
Possible range: 1 – 255
Returns the index number of the pen used to draw the fill pattern of the cut surfaces of the Slab in the Section/Elevation Windows as set in the Slab Settings Dialog.
Note: see illustration at SLAB_THICKNESS


SLAB_FBGD_PEN

Type: numerical (integer value)
Possible range: 0 – 255
Returns the index number of the pen used to draw the fill background of the cut surfaces of the Slab in the Section/Elevation Windows as set in the Slab Settings Dialog. It can return the value ‘0’ as well which means the background is transparent.
Note: see illustration at SLAB_THICKNESS


SLAB_COMPS_NAME

Type: string
Possible length: 31 characters
Returns the full name of the composite structure in a string used in the Section/Elevation Windows for the Slab as set in the Slab Settings Dialog. In case a single fill is used for the Slab the variable returns an empty (zero-length) string.
Note: see illustration at SLAB_THICKNESS


SLAB_SKINS_NUMBER

Type: numerical (integer value)
Possible range: 0 – 8
Returns the number of skins the composite structure assigned to the Slab is made of. The number varies between 1 and 8 if a composite fill is selected for the Slab. When the Slab’s fill is a single fill the variable returns 0.


SLAB_SKINS_PARAMS

Returns an array that gives the parameters of all skins of the Slab. The array always has 6 columns and 1 to 8 rows. The range of index values is [1][1] to [6][x] where x equals SLAB_SKINS_NUMBER. The following table shows the variables returned by the different rows in ascending order and also their types and possible ranges or values :

Row
Variable returned
Type
Possible range/values
Row 1:
Index of the fill type of the skin
Numerical (positive integer value)
1 and up
Row 2:
Thickness of the skin in meters
Numerical (positive value)
0.0001 meters and up
Row 3:
Index of the pen of the outline of the skin
Numerical (positive integer value)
1 – 255
Row 4:
Index of the pen of the fill pattern of the skin
Numerical (positive integer value)
1 – 255
Row 5:
Index of the background pen of fill pattern of the skin
Numerical (integer value)