Write code for GDL object - table on ArchiCAD using
- User
Write code for GDL object - table on ArchiCAD using
- Assistant
The first step in writing code for a GDL object - table in ArchiCAD is to determine the properties of the table that you want to create. These properties may include the length, width, height, and material of the table.
Once you have determined the properties of the table, you can start writing the code for the GDL object. Here is a sample code for a simple table that is 1000 mm long, 500 mm wide, and 750 mm high:
! Parameters LENGTH = 1000 WIDTH = 500 HEIGHT = 750
! Material MATERIAL 1 SURFACE "Wooden"
! Table geometry RECT2 LENGTH, WIDTH
! Table legs PRISM LENGTH / 100, HEIGHT MOVE LENGTH / 2, 0, -HEIGHT PRISM LENGTH / 100, HEIGHT
! Assign materials MATERIAL 1
! End of the GDL object
The above code defines the parameters for the table, including its length, width, and height. It then defines the material of the table as wooden and creates the geometry for the table and its legs.
Once the GDL object is defined, it can be saved as a .gsm file and imported into ArchiCAD. The object can then be placed and manipulated like any other ArchiCAD object.