pytha Groups - pytha-3d-cad/pytha-lua-api GitHub Wiki

Groups in PYTHA allow the structural organization of parts.

A group can contain multiple parts and (sub)groups, but are purely restricted to a tree-like structure. They can carry attributes as well as reference points.

From the perspective of the Lua api, all groups in PYTHA are referred to by element handles and are often treated similar as parts.

Remarks:

Groups should collect different parts of one construction unit. Take the example of a kitchen: A drawer box consists of multiple parts. Those are combined to one group Drawer box. Multiple drawer boxes in one cabinet form the group Drawer unit. Together with the cabinet frame, they form the group Cabinet. Different cabinets will form the group Kitchen, and so on.

In contrast, layers can be used to structure equivalent parts in different construction units, e.g. all drawer boxes in the kitchen.

See also:

pytha, Attributes Functions, Element Handles, Groups, create_group, dissolve_group