cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The 2025 Technology Preview Program is now live. Join today!

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

GDL Pgon code issue

RhinoX
Booster

Hi everyone, I’m still learning GDL and wrote a simple script to create two triangular polygons using the pgon command. For some reason, it keeps throwing an error and I can’t figure out why. Any help would be much appreciated. Thanks!

 

RhinoX_0-1756910643793.pngRhinoX_1-1756910668223.png

vert 0.00, 0.00, 0.00 ! 01
vert 1.00, 0.00, 0.00 ! 02
vert 1.00, 1.00, 0.00 ! 03
vert 0.00, 1.00, 0.00 ! 04

edge 1, 2, 1, 0, 0 ! 01
edge 2, 3, 1, 0, 0 ! 02
edge 3, 1, 1, 2, 0 ! 03
 
edge 3, 4, 1, 0, 0 ! 04
edge 4, 1, 1, 0, 0 ! 05

vect 0, 0, 1
vect 0, 0, 1
 
pgon 3, 1, 0, 1, 2, 3
pgon 3, 2, 0, 4, 5, -3

RhinoX_2-1756910845678.png

 

Operating system used: Mac Intel-based

1 REPLY 1
Lingwisyer
Guru

I have not tried using pgons, but does it work without the the vert 4 points?

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

Setup info provided by author