ifcopenshell.api.library.remove_reference

Module Contents

ifcopenshell.api.library.remove_reference.remove_reference(file: ifcopenshell.file, reference: ifcopenshell.entity_instance) None

Removes a library reference

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

Parameters:

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

Returns:

None

Return type:

None

Example:

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