GDL Reference Guide - Graphisoft

Transcription

GDL Reference Guide

GRAPHISOFT Visit the GRAPHISOFT website at https://www.graphisoft.com for local distributor and product availability information.GDL Reference GuideCopyright 2019 by GRAPHISOFT, all rights reserved. Reproduction, paraphrasing or translation without express prior written permissionis strictly prohibited.TrademarksARCHICAD is a registered trademark and PlotMaker, Virtual Building and GDL are trademarks of GRAPHISOFT. All other trademarksare the property of their respective holders.

IntroductionIntroductionThis manual is a complete reference to the GRAPHISOFT's proprietary scripting language, GDL (Geometric Description Language). The manual is recommendedfor those users who wish to expand on the possibilities presented by the construction tools and object libraries in GRAPHISOFT software. It gives a detailed descriptionof GDL, including syntax definitions, commands, variables, etc.GDL Reference Guideiii

GDL Reference GuideTable of ContentsGeneral Overview . 1Starting Out . 1Scripting . 13D Generation . 8GDL Syntax . 11Rules of GDL Syntax . 11Statements . 11Line . 11Label . 11Characters . 11Strings . 12Identifiers . 12Variables . 12Parameters . 13Simple Types . 13Derived Types . 13Structured Types . 14Conventions used in this book . 14Coordinate Transformations . 162D Transformations . 16ADD2 . 16MUL2 . 16ROT2 . 173D Transformations . 17ADDX . 17ADDY . 17ADDZ . 17ADD . 17MULX . 18MULY . 18GDL Reference Guideiv

GDL Reference GuideMULZ .MUL .ROTX .ROTY .ROTZ .ROT .XFORM .Managing the Transformation Stack .DEL .DEL TOP .NTR .3D Shapes .Basic Shapes .BLOCK .BRICK .CYLIND .SPHERE .ELLIPS .CONE .PRISM .PRISM .CPRISM .CPRISM {2} .CPRISM {3} .CPRISM {4} .BPRISM .FPRISM .HPRISM .SPRISM .SPRISM {2} .SPRISM {3} .SPRISM {4} .SLAB 43435373839404142GDL Reference Guidev

GDL Reference GuideSLAB .CSLAB .CWALL .BWALL .XWALL .XWALL {2} .XWALL {3} .BEAM .CROOF .CROOF {2} .CROOF {3} .CROOF {4} .MESH .ARMC .ARME .ELBOW .Planar Shapes in 3D .HOTSPOT .HOTLINE .HOTARC .LIN .RECT .POLY .POLY .PLANE .PLANE .CIRCLE .ARC .Shapes Generated from Polylines .EXTRUDE .PYRAMID .REVOLVE .REVOLVE{2} .GDL Reference 667686868696971747681vi

GDL Reference GuideREVOLVE{3} . 82REVOLVE{4} . 84REVOLVE{5} . 84RULED . 84RULED{2} . 84RULEDSEGMENTED . 88RULEDSEGMENTED{2} . 89SWEEP . 90TUBE . 93TUBE{2} . 97TUBEA . 99COONS . 102COONS{2} . 105MASS . 105MASS{2} . 108POLYROOF . 109POLYROOF{2} . 114POLYROOF{3} . 114POLYROOF{4} . 117EXTRUDEDSHELL . 117EXTRUDEDSHELL{2} . 118EXTRUDEDSHELL{3} . 120REVOLVEDSHELL . 120REVOLVEDSHELL{2} . 121REVOLVEDSHELL{3} . 123REVOLVEDSHELLANGULAR . 123REVOLVEDSHELLANGULAR{2} . 124REVOLVEDSHELLANGULAR{3} . 124RULEDSHELL . 125RULEDSHELL{2} . 127RULEDSHELL{3} . 130Elements for Visualization . 130LIGHT . 130GDL Reference Guidevii

GDL Reference GuidePICTURE .3D Text Elements .TEXT .RICHTEXT .Primitive Elements .VERT .VERT{2} .TEVE .VECT .EDGE .PGON .PGON{2} .PGON{3} .PIPG .COOR .COOR{2} .COOR{3} .BODY .BASE .NURBS Primitive Elements .NURBS Face trimming .NURBS Geometry Commands .NURBSCURVE2D .NURBSCURVE3D .NURBSSURFACE .NURBS Topology Commands .NURBSVERT .NURBSEDGE .NURBSTRIM .NURBSTRIMSINGULAR .NURBSFACE .NURBSFACE{2} .NURBSLUMP .GDL Reference 7157viii

GDL Reference GuideNURBSBODY .Point Clouds .POINTCLOUD .Cutting in 3D .CUTPLANE .CUTPLANE{2} .CUTPLANE{3} .CUTPOLY .CUTPOLYA .CUTSHAPE .CUTFORM .CUTFORM{2} .Solid Geometry Commands .GROUP - ENDGROUP .ADDGROUP .SUBGROUP .ISECTGROUP .ISECTLINES .PLACEGROUP .KILLGROUP .SWEEPGROUP .CREATEGROUPWITHMATERIAL .

This manual is a complete reference to the GRAPHISOFT's proprietary scripting language, GDL (Geometric Description Language). The manual is recommended for those users who wish to expand on the possibilities presented by the construction tools and object libraries in GRAPHISOFT software. It gives a detailed description