ifcopenshell.api.library.edit_reference
¶
Module Contents¶
- ifcopenshell.api.library.edit_reference.edit_reference(file: ifcopenshell.file, reference: ifcopenshell.entity_instance, attributes: dict[str, Any]) None ¶
Edits the attributes of an IfcLibraryReference
For more information about the attributes and data types of an IfcLibraryReference, consult the IFC documentation.
- Parameters:
reference (ifcopenshell.entity_instance) – The IfcLibraryReference entity you want to edit
attributes (dict) – a dictionary of attribute names and values.
- Returns:
None
- Return type:
None
Example:
library = ifcopenshell.api.library.add_library(model, name="Brickschema") # Let's create a reference to a single AHU in our Brickschema dataset reference = ifcopenshell.api.library.add_reference(model, library=library) ifcopenshell.api.library.edit_reference(model, reference=reference, attributes={"Identification": "http://example.org/digitaltwin#AHU01"})