- •Contents
- •General Overview
- •Starting Out
- •Scripting
- •Library Part Structure
- •Analyze, Deconstruct and Simplify
- •Elaboration
- •Entry Level
- •Intermediate Level
- •Advanced Level
- •Expert Level
- •3D Generation
- •The 3D Space
- •Coordinate Transformations
- •The GDL Interpreter
- •The GDL Script Analysis
- •GDL Syntax
- •Statements
- •Line
- •Label
- •Characters
- •Strings
- •Identifiers
- •Variables
- •Parameters
- •Simple Types
- •Derived Types
- •Coordinate Transformations
- •2D Transformations
- •3D Transformations
- •Managing the Transformation Stack
- •3D Shapes
- •Basic Shapes
- •BLOCK
- •BRICK
- •CYLIND
- •SPHERE
- •ELLIPS
- •CONE
- •PRISM
- •PRISM_
- •CPRISM_
- •BPRISM_
- •FPRISM_
- •HPRISM_
- •SPRISM_
- •SLAB
- •SLAB_
- •CSLAB_
- •CWALL_
- •BWALL_
- •XWALL_
- •XWALL_{2}
- •BEAM
- •CROOF_
- •MESH
- •ARMC
- •ARME
- •ELBOW
- •Planar Shapes in 3D
- •HOTSPOT
- •RECT
- •POLY
- •POLY_
- •PLANE
- •PLANE_
- •CIRCLE
- •Shapes Generated from Polylines
- •EXTRUDE
- •PYRAMID
- •REVOLVE
- •RULED
- •RULED{2}
- •SWEEP
- •TUBE
- •TUBEA
- •COONS
- •MASS
- •Elements for Visualization
- •LIGHT
- •PICTURE
- •3D Text Elements
- •TEXT
- •RICHTEXT
- •Primitive Elements
- •VERT
- •TEVE
- •VECT
- •EDGE
- •PGON
- •PIPG
- •COOR
- •BODY
- •BASE
- •Cutting in 3D
- •CUTPLANE
- •CUTPOLY
- •CUTPOLYA
- •CUTSHAPE
- •CUTFORM
- •Solid Geometry Commands
- •GROUP
- •ENDGROUP
- •ADDGROUP
- •SUBGROUP
- •ISECTGROUP
- •ISECTLINES
- •PLACEGROUP
- •KILLGROUP
- •SWEEPGROUP
- •Binary 3D
- •2D Shapes
- •Drawing Elements
- •HOTSPOT2
- •LINE2
- •RECT2
- •POLY2
- •POLY2_
- •POLY2_A
- •POLY2_B
- •POLY2_B{2}
- •POLY2_B{3}
- •CIRCLE2
- •SPLINE2
- •SPLINE2A
- •PICTURE2
- •PICTURE2{2}
- •Text Element
- •TEXT2
- •RICHTEXT2
- •Binary 2D
- •FRAGMENT2
- •FRAGMENT2
- •3D Projections in 2D
- •PROJECT2
- •PROJECT2{2}
- •PROJECT2{3}
- •Drawings in the List
- •DRAWING2
- •DRAWING3
- •DRAWING3{2}
- •DRAWING3{3}
- •Graphical Editing
- •Hotspot-based Editing Commands
- •HOTSPOT
- •HOTLINE2
- •HOTARC2
- •Status Codes
- •Status Code Syntax
- •Additional Status Codes
- •Previous part of the polyline: current position and tangent is defined
- •Segment by absolute endpoint
- •Segment by relative endpoint
- •Segment by length and direction
- •Tangential segment by length
- •Set start point
- •Close polyline
- •Set tangent
- •Set centerpoint
- •Tangential arc to endpoint
- •Tangential arc by radius and angle
- •Arc using centerpoint and point on the final radius
- •Arc using centerpoint and angle
- •Full circle using centerpoint and radius
- •Attributes
- •Directives
- •Directives for 3D and 2D Scripts
- •RADIUS
- •RESOL
- •TOLER
- •LINE_PROPERTY
- •[SET] STYLE
- •SET STYLE 0
- •Directives Used in 3D Scripts Only
- •MODEL
- •[SET] MATERIAL
- •SECT_FILL
- •SHADOW
- •Directives Used in 2D Scripts Only
- •DRAWINDEX
- •[SET] FILL
- •[SET] LINE_TYPE
- •Inline Attribute Definition
- •Materials
- •DEFINE MATERIAL
- •DEFINE MATERIAL BASED_ON
- •DEFINE TEXTURE
- •Fills
- •DEFINE FILL
- •DEFINE FILLA
- •DEFINE SYMBOL_FILL
- •DEFINE SOLID_FILL
- •DEFINE EMPTY_FILL
- •Line Types
- •DEFINE LINE_TYPE
- •DEFINE SYMBOL_LINE
- •Styles
- •DEFINE STYLE
- •DEFINE STYLE {2}
- •Paragraph
- •Textblock
- •Additional Data
- •External file dependence
- •Non-Geometric Scripts
- •The Properties Script
- •DATABASE_SET
- •DESCRIPTOR
- •REF DESCRIPTOR
- •COMPONENT
- •REF COMPONENT
- •BINARYPROP
- •SURFACE3D ( )
- •VOLUME3D ( )
- •POSITION
- •DRAWING
- •The Parameter Script
- •VALUES
- •PARAMETERS
- •LOCK
- •HIDEPARAMETER
- •The User Interface Script
- •UI_DIALOG
- •UI_PAGE
- •UI_CURRENT_PAGE
- •UI_BUTTON
- •UI_SEPARATOR
- •UI_GROUPBOX
- •UI_PICT
- •UI_STYLE
- •UI_OUTFIELD
- •UI_INFIELD
- •UI_INFIELD {2}
- •UI_INFIELD{3}
- •UI_TOOLTIP
- •Expressions and Functions
- •Expressions
- •VARDIM1(expr)
- •VARDIM2(expr)
- •Operators
- •Arithmetical Operators
- •Relational Operators
- •Boolean Operators
- •Functions
- •Arithmetical Functions
- •CEIL
- •ROUND_INT
- •Circular Functions
- •Transcendental Functions
- •Boolean Functions
- •Statistical Functions
- •Bit functions
- •BITTEST
- •BITSET
- •Special Functions
- •String Functions
- •SPLIT
- •STRLEN
- •STRSTR
- •STRSUB
- •Control Statements
- •Flow Control Statements
- •NEXT
- •GOTO
- •GOSUB
- •RETURN
- •END / EXIT
- •Parameter Buffer Manipulation
- •Macro Objects
- •The Output Statement
- •File Operations
- •OPEN
- •INPUT
- •VARTYPE
- •OUTPUT
- •CLOSE
- •Miscellaneous
- •Global Variables
- •General environment information
- •Story information
- •Fly-through information
- •General element parameters
- •Object, Lamp, Door, Window parameters
- •Object, Lamp parameters
- •Object, Lamp, Door, Window parameters - available for listing and labels only
- •Object, Lamp parameters - available for listing and labels only
- •Window, Door and Wall End parameters
- •Window, Door parameters - available for listing and labels only
- •Lamp parameters - available for listing and labels only
- •Label parameters
- •Wall parameters - available for Doors/Windows
- •Wall parameters - available for listing and labels only
- •Column parameters - available for listing and labels only
- •Beam parameters - available for listing and labels only
- •Slab parameters - available for listing and labels only
- •Roof parameters - available for listing and labels only
- •Fill parameters - available for listing and labels only
- •Mesh parameters - available for listing and labels only
- •Free users’ globals
- •Requests
- •REQUEST
- •Doors and Windows
- •General Guidelines
- •Creation of Door/Window Library Parts
- •3D related challanges
- •Rectangular Doors/Windows in Straight Walls
- •Non-Rectangular Doors/Windows in Straight Walls
- •WALLHOLE
- •WALLNICHE
- •Rectangular Doors/Windows in Curved Walls
- •Non-Rectangular Doors/Windows in Curved Walls
- •2D Related Challanges
- •Cutting custom wall opening
- •WALLHOLE2
- •WALLBLOCK2
- •WALLLINE2
- •WALLARC2
- •GDL Created from the Floor Plan
- •Keywords
- •Common Keywords
- •Reserved Keywords
- •3D Use Only
- •2D Use Only
- •Non-Geometric Scripts
- •Property Script
- •Parameter Script
- •Interface Script
- •Alphabetical List of Current GDL Keywords
- •Parameter Naming Convention
- •GDL Data I/O Add-On
- •Description of Database
- •Opening a Database
- •Reading Values from Database
- •Writing Values into Database
- •Closing Database
- •GDL DateTime Add-On
- •Opening Channel
- •Reading Information
- •Closing Channel
- •GDL File Manager I/O Add-On
- •Specifying Folder
- •Getting File/Folder Name
- •Finishing Folder Scanning
- •GDL Text I/O Add-On
- •Opening File
- •Reading Values
- •Writing Values
- •Closing File
- •Property GDL Add-On
- •OPEN
- •CLOSE
- •INPUT
- •OUTPUT
- •GDL XML Extension
- •Opening XML Document
- •Reading XML Document
- •Modifying XML Document
- •Index
- •Numerics
Status Codes
Set centerpoint
x0, y0, 900,
(x0,y0)
900
Tangential arc to endpoint
x, y, 1000+s, where 0 < s < 100
(x,y)
1000
ArchiCAD 11 GDL Reference Guide |
145 |
Status Codes
Tangential arc by radius and angle
r, a, 2000+s, where 0 < s < 100
r
a
2000
Arc using centerpoint and point on the final radius
x, y, 3000+s, where 0 < s < 100
3000
x,y
146 |
ArchiCAD 11 GDL Reference Guide |
Status Codes
Arc using centerpoint and angle
0, a, 4000+s, where 0 < s < 100
4000 a
Full circle using centerpoint and radius
r, 360, 4000+s, where 0 < s < 100
r
4000
In this case the s status refers to the whole circle.
All angle values are in degrees. Omitted coordinates marked by 0 (for codes 300, 700, 4000) can have any value.
ArchiCAD 11 GDL Reference Guide |
147 |
Status Codes
Examples:
EXTRUDE 21, 0, 0, 3, 1+2+4+16+32,
0, |
0, 0, |
|
7, |
0, 0, |
|
7, |
3, 1, |
! tangential arc to endpoint |
6, |
3, 1000, |
|
5, |
3, 1001, |
! tangential arc to endpoint |
1, |
90, 2000, |
! tangential arc by radius and angle |
2, |
3, 1001, |
! tangential arc to endpoint |
1, |
3, 900, |
! set centerpoint |
1, |
2, 3000, |
! arc using startpoint, centerpoint and point on final radius |
1, |
2.5, 900, |
! set centerpoint |
0, |
-180, 4001, |
! arc using start point, centerpoint and angle |
1, |
5, 1000, |
!tangential arc to endpoint |
-1, |
0, 100, |
! segment by (dx, dy) |
2, |
225, 200, |
! segment by (len, angle) |
-1, |
0, 800, |
! set tangent |
-1, |
0, 1000, |
! tangential arc to endpoint |
0, |
0, -1, |
! end of contour |
1, |
1, 900, |
! set centerpoint |
0.5, 360, 4000, |
! full circle by centerpoint and radius |
|
3.5, 1.5, 900, |
! set centerpoint |
|
1, 360, 4001 |
! full circle by centerpoint and radius |
148 |
ArchiCAD 11 GDL Reference Guide |
Status Codes
EXTRUDE |
2+5+10+10+2, 0, 0, 3, 1+2+4+16+32, |
||
0, |
0, |
900, |
|
3, |
360, |
4001, |
|
2.5, -1, |
0, |
||
2.5, |
1, |
0, |
|
1.5, |
1, |
1, |
|
1.5, -1, |
1001, |
||
2.5, -1, |
-1, |
||
0, |
2.5, |
600, |
|
0, |
-1, 800, |
||
1, |
1.5, |
1001, |
|
-1, 0, 800, |
|||
0, |
0.5, |
1001, |
|
0, |
1, |
800, |
|
-1, 1.5, |
1001, |
||
1, |
0, |
800, |
|
0, |
2.5, |
1001, |
|
0, |
2.5, |
700, |
|
-1.5, |
0, |
900, |
|
-2.5, |
0, |
600, |
|
-2.5, |
1, |
3000, |
|
-2.5, |
1, |
0, |
|
-1.5, |
1, |
0, |
|
-1.5, |
-1, 1001, |
||
-2.5, |
-1, 0, |
||
SQR(2)-1, 45, 200, |
|||
-2.5, |
0, |
3000, |
|
-2.5, |
0, |
700, |
|
0, |
-1.5, |
900, |
|
1, |
360, |
4000 |
ArchiCAD 11 GDL Reference Guide |
149 |
Status Codes
EXTRUDE 3, 1, 1, 3, 1+2+4+16+32,
0, |
0, 900, |
|
3, |
360, |
4001, |
2, |
360, |
4000 |
ROTY -90
REVOLVE 9, 180, 16+32,
7, |
1, 0, |
|
|
6, |
1, 0, |
0, |
|
5.5, 2, |
|
||
5, |
1, 0, |
|
|
4, |
1, 0, |
|
! set centerpoint |
3, 1, 900, |
0, 180, 4001, ! arc using startpoint, centerpoint and angle 2, 1, 0, 1, 1, 0
150 |
ArchiCAD 11 GDL Reference Guide |