ifcopenshell.api.classification.edit_reference

Module Contents

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

Edits the attributes of an IfcClassificationReference

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

Parameters:
  • reference (ifcopenshell.entity_instance) – The IfcClassificationReference entity you want to edit

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

Returns:

None

Return type:

None

Example:

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