ifcopenshell.api.classification.edit_classification

Module Contents

ifcopenshell.api.classification.edit_classification.edit_classification(file: ifcopenshell.file, classification: ifcopenshell.entity_instance, attributes: dict[str, Any]) None

Edits the attributes of an IfcClassification

For more information about the attributes and data types of an IfcClassification, consult the IFC documentation.

Parameters:
  • classification (ifcopenshell.entity_instance) – The IfcClassification entity you want to edit

  • attributes (dict) – a dictionary of attribute names and values.

Returns:

None

Return type:

None

Example:

classification = model.by_type("IfcClassification")[0]
# Change the name of the classification system to "Foo"
ifcopenshell.api.classification.edit_classification(model,
    classification=classification, attributes={"Name": "Foo"})