The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Everything about GDL - Doors/Windows/Objects/Stairs etc. (Example: I created an object that prints an error message in 3D all the time, please help!)

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, gkmethy, Gergely Feher

User avatar
By Bruce
#288602
Can someone enlighten me on the trick to create a circular hole in a circular PRISM? The usual -1 status code doesn't seem to work.

E.g., by my reading of the GDL reference guide (page 27 for AC21) the code should be:
Code: Select allPRISM_ 5, height, 0, 0, 913, radius_outer, 360, 4000, 0, 0, -1, radius_inner, 360, 4000, radius_inner, 360, -1
OR
Code: Select allPRISM_ 6, height, 0, 0, 913, radius_outer, 360, 4000, 0, 0, -1, 0, 0, 913, radius_inner, 360, 4000, 0, 0, -1
But both of these return a compiling error.
#288603
Try this.
I think the problem is you are needing to use the circle centre with the -1 mask which dosen't work with a full 360 degree circle.

Break it up into semi circles.
Code: Select all PRISM_ 14, height, radius_outer, 0.0, 15+64, 0, 0.0, 900, 0, 180, 4000, -radius_outer, 0.0, 15+64, 0, 0.0, 900, 0, 180, 4000, radius_outer, 0.0, -1, radius_inner, 0.0, 15+64, 0, 0.0, 900, 0, 180, 4000, -radius_inner, 0.0, 15+64, 0, 0.0, 900, 0, 180, 4000, radius_inner, 0.0, -1
Barry.