ifcopenshell.api.classification.remove_classification

Module Contents

class ifcopenshell.api.classification.remove_classification.Usecase
execute()
get_references(classification: ifcopenshell.entity_instance) list[ifcopenshell.entity_instance]
ifcopenshell.api.classification.remove_classification.remove_classification(file: ifcopenshell.file, classification: ifcopenshell.entity_instance) None

Removes an IfcClassification from the project and all references

The classification and all of its relationships, children references, and relationships between objects and child references are completely removed from a project.

Parameters:

classification (ifcopenshell.entity_instance) – The IfcClassification entity you want to remove

Returns:

None

Return type:

None

Example:

classification = model.by_type("IfcClassification")[0]
ifcopenshell.api.classification.remove_classification(model,
    classification=classification)