ifcopenshell.util.classification
¶
Module Contents¶
- ifcopenshell.util.classification.get_classification(reference: ifcopenshell.entity_instance) ifcopenshell.entity_instance ¶
Get the IfcClassification that a classification reference belongs to
- Parameters:
reference – An IfcClassificationReference
- Returns:
IfcClassification
- ifcopenshell.util.classification.get_classification_data(file: ifcopenshell.file) tuple[list[dict], str] | None ¶
- ifcopenshell.util.classification.get_inherited_references(reference: ifcopenshell.entity_instance | None) list[ifcopenshell.entity_instance] ¶
- ifcopenshell.util.classification.get_references(element: ifcopenshell.entity_instance, should_inherit=True) set[ifcopenshell.entity_instance] ¶
Gets classification references associated with the element
- Parameters:
should_inherit – If true, classification references are inherited from the type. Classifications can be overriden per system.
- Returns:
A set of IfcClassificationReference