Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Defining Extrusion Geometry in GDL code

jakubc7
Advocate
I am trying to create an object which is an extrusion of a profile (too complex to define manually with user input code).
Is there a way to implement 2D geometry (from polyline or fill) and use within a 3D GLD code of PRISM_ (or something more suitable).
I tried making a wall and/or column with a complex profile and "dragging" it into 3D code but that spits out very complex code which is unmanageable. I was hoping I could drag the fill or poly code coordinates and use them to define my _PRISM geometry?
I attempted this (using code from 2D poly or fill) in the past but never had success. Does anyone know a good way of achieving this?
ArchiCAD 10 - 25 | Windows 10
ARCHIcreate | Perth, Western Australia
archicad solutions | content creation | training | software implementation
2 REPLIES 2
Lingwisyer
Guru
You can reference Complex Profiles in GDL and extrude those. There is a thread from when this was introduced and it contains a link to the example object.



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win10 | R5 2600 | 16GB | GTX1660 
Barry Kelly
Moderator
jakubc7 wrote:
I attempted this (using code from 2D poly or fill) in the past but never had success. Does anyone know a good way of achieving this?
You can use the x & y co-ordinates from a POLY2, but you may have to watch the masking value or status code when you use them with a 3D shape.

For example in 2D
poly2_       6,      7, 
                   0,            0,      1, 
                   1,            0,      1, 
                   1,            1,      1, 
                 0.5,            1,    900, 
                   0,          180,   4001, 
                   0,            0,      1

but in 3D
prism_       6,      1.0, 
                   0,            0,      15, 
                   1,            0,      15, 
                   1,            1,      15-2, 
                 0.5,            1,    900, 
                   0,          180,   4015-2, 
                   0,            0,      -1

Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11