ifcopenshell.api.library.edit_reference#

Module Contents#

class ifcopenshell.api.library.edit_reference.Usecase(file, reference=None, attributes=None)#

Edits the attributes of an IfcLibraryReference

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

Parameters
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"})
execute(self)#