ifcopenshell.api.library.edit_reference

Module Contents

ifcopenshell.api.library.edit_reference.edit_reference(file, reference=None, attributes=None) 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, optional) – a dictionary of attribute names and values.

Returns:

None

Return type:

None

Example:

library = ifcopenshell.api.run("library.add_library", model, name="Brickschema")
# Let's create a reference to a single AHU in our Brickschema dataset
reference = ifcopenshell.api.run("library.add_reference", model, library=library)
ifcopenshell.api.run("library.edit_reference", model,
    reference=reference, attributes={"Identification": "http://example.org/digitaltwin#AHU01"})