ifcopenshell.api.classification.edit_reference
¶
Module Contents¶
- ifcopenshell.api.classification.edit_reference.edit_reference(file, reference=None, attributes=None) 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, optional) – 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.run("classification.edit_reference", model, reference=reference, attributes={"Name": "Foo"})