Entity
- class compas_ifc.entities.Entity(entity, model)
Bases:
object
Class representing a general IFC entity. Each entity corresponds to a line in IFC file.
- Parameters:
- entity
ifcopenshell.entity_instance
- model
compas_ifc.model.Model
- entity
- Attributes:
- ifc_typestr
The IFC type of the entity.
- declaration
ifcopenshell.ifcopenshell_wrapper.schema.declaration
The IFC declaration of the entity.
- model
compas_ifc.model.Model
The model the entity belongs to.
- attributesDict[str, Union[str, float, int, list, tuple]]
All the attributes of the entity.
- psetsDict[str, Dict[str, Union[str, float, int, list, tuple]]]
All the property sets of the entity.
- propertiesDict[str, Union[str, float, int, list, tuple]]
All the properties of all property sets compiled into a single dict.
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.