Skip to content

Collection

A simple container for organising objects within a model and preserving object hierarchy.

A container is defined by a human-readable name a unique applicationId and its list of contained elements. The elements can include an unrestricted number of Base objects including additional nested Collections.

Note

A Collection can be for example a Layer in Rhino/AutoCad, a collection in Blender, or a Category in Revit. The location of each collection in the hierarchy of collections in a commit will be retrieved through commit traversal.

Attributes:

Name Type Description
name str

The human-readable name of the Collection. This name is not necessarily

elements List[Base]

The elements contained in this Collection.

name instance-attribute

name: str

elements class-attribute instance-attribute

elements: List[Base] = field(default_factory=list)