ifcopenshell.api.library.remove_reference#

Module Contents#

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

Removes a library reference

Any products which have relationships to this reference will not be removed.

Parameters

reference (ifcopenshell.entity_instance.entity_instance) – The IfcLibraryReference entity you want to remove

Returns

None

Return type

None

Example:

library = ifcopenshell.api.run("library.add_library", model, name="Brickschema")
reference = ifcopenshell.api.run("library.add_reference", model, library=library)
# Let's change our mind and remove it.
ifcopenshell.api.run("library.remove_reference", model, reference=reference)
execute(self)#