We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

how to create a fill section for a (morph) object

Anonymous
Not applicable
hey,

i created an object through use of gdl, and used the definition of a morph to define it. Now i would like to add a section fill to the object. However this seems to be impossible (the morph is defined by verts/edges/polygons and doesn't contain a mass). When using the SECT_ATTRS command it won't show anything.

In an attempt to "solve" this i thought of using the MODEL SOLID command first before using the SECT_ATTRS, but without success.

So my question is: is it possible to transform the morph to a solid object and give it a section fill?

or is this impossible to do and i'll have to redefine the whole object using primitives

thank you
16 REPLIES 16
Ruben V
Advocate
the GSM test-object (complete object is much more complex, parametric and so on...)
(òÓ,)_\,,/
www.studiov2.be
Archicad 26/27 + Rhino/Grasshopper
BIMcollab ZOOM
>>> Read my book!<<<
Ruben V
Advocate
Nobody?

I understand the 3D script quite well, but the 2D scripting is still somewhat mysterious... Does every object need a full 2D script?

Any tips to understand this better (help files, guides, ...)?

Thanks (and apologies for bumping, but I really want to finish this object...)
(òÓ,)_\,,/
www.studiov2.be
Archicad 26/27 + Rhino/Grasshopper
BIMcollab ZOOM
>>> Read my book!<<<
Barry Kelly
Moderator
I haven't had a look at this but just wanted to point out that a section view is not a 2D view.
Sections and elevations show what is in your 3D script.
The 2D script is only for the plan view.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Ruben V
Advocate
Thx for the reply Barry!

that is what I thought, and that is why I figured out that the reason for not seeing a section fill has to do with the object not being 'solid'...

So bottom line: are only prisms and primitives "capable" of being solid within GDL?
(òÓ,)_\,,/
www.studiov2.be
Archicad 26/27 + Rhino/Grasshopper
BIMcollab ZOOM
>>> Read my book!<<<
Erwin Edel
Rockstar
I think your script is missing some... BODY (yeahhhhhhh)

All jokes aside, take a look at the BODY command. It should combine all those primitives into a solid, if memory serves. GDL reference guide page 139 and onwards.
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nl

ArchiCAD 9-26NED FULL
Windows 10 Pro
Adobe Design Premium CS5
Barry Kelly
Moderator
B.E.A.T. wrote:
Thx for the reply Barry!

that is what I thought, and that is why I figured out that the reason for not seeing a section fill has to do with the object not being 'solid'...

So bottom line: are only prisms and primitives "capable" of being solid within GDL?
Primitives are only surfaces so unless they form a closed form they can not be solid.

I just created a couple of quick morphs and deleted the face on one.
This of course creates an empty box.
When save as an object the closed one is solid but the empty box is not.

If you look I the GDL manual all the 3D shapes can be solid but the trick is you must give the MODEL SOLID command before scripting them.

You can also make them MODEL SURFACE (in which case they will be empty inside) or MODEL WIRE (in which case they will just be edge lines).

The primitive elements are just 2D planes but if put together to form a fully enclosed shape they can be solid - but only with the MODEL SOLID command first.

Hope this helps a bit.

Barry.
solid_objects.jpg
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Ruben V
Advocate
Great info guys! Will test as soon as possible!

Barry: I did similar tests, but didn't find the piece of cod that made the difference

Erwin: the actual script is much longer and had the "body" command. I probably made a misstaken in it somewhere...

PS: wonderkind how the BM-option in GDL for AC21 will simplify the representation of objects in 2D/3D...
(òÓ,)_\,,/
www.studiov2.be
Archicad 26/27 + Rhino/Grasshopper
BIMcollab ZOOM
>>> Read my book!<<<