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

I need help GDL coding a wine barrel library part

Anonymous
Not applicable
I am doing a project for a winery and wanted to create a wine barrel library part for the model. I have added material and 3-D rotation attributes to the object however I am having difficulty in coding the 2-D script so that it updates itself to the current rotation of the object. If anyone has a macro that automatically calculates the plan representation of an object I would really appreciate it. I am attaching the object as well as some pictures of the model and winery.
2 REPLIES 2
Anonymous
Not applicable
Why don't you make the barrel with Profiler or Archiforma?
Much easier than scripting!
David Maudlin
Rockstar
Chris:

This command is already available in GDL, in the 2D Script you use the PROJECT2 projection_code, angle, method command, you can read about its variables in the GDL Reference Guide, but the most frequent use is a top down image of the 3D model using PROJECT2 3, 270, 2. Its down side is that ArchiCAD is creating a 3D image for this symbol for each part you place, so many complicated parts can slow down the 2D Window. The faster 2D generation method is to figure out using trigonometry what the equivalent 2D symbols would be for the rotated object, but this not easy with curved objects.

The object you placed for download is missing the "barelslat" macro, so I was not able to look at your object.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14