ObjectDefinition
- class compas_ifc.entities.ObjectDefinition(entity, model)
Bases:
Root
Base class for all object definitions. An object definition is a definition of a thing that is or may be part of a spatial structure.
- Attributes:
- parent
compas_ifc.entities.ObjectDefinition
The parent of this element in spatial hierarchy.
- childrenList[
compas_ifc.entities.ObjectDefinition
] The children of this element in spatial hierarchy.
- parent
Methods
Return the relation that decomposes this element.
Return the relation that this element is decomposed by.
Print the spatial hierarchy of this element.
Traverse children of this element.
Traverse ancestors of this element.
Traverse the spatial branch of this element.
Inherited Methods
Get the value of a named attribute.
Factory function for creating an compas_ifc entity object from an Ifc entity, the function finds closest matched class from the bottom of inherentance.
Verify that the entity has a specific attributes.
Verify that this entity has a specific property.
Find the ancestors of the current entity up to the root element.
Print the entity inheritance as a nested list.
Get the value of the property with the given name.
Get the property set with the given name.
Set the value of a named attribute.
Set the values of multiple attributes.
Set the value of the property with a given name.