ifcopenshell.api.document.remove_reference

Module Contents

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

Remove a document reference

All associations with objects are removed.

Parameters:

reference (ifcopenshell.entity_instance) – The IfcDocumentReference to remove

Returns:

None

Return type:

None

Example:

document = ifcopenshell.api.document.add_information(model)
reference = ifcopenshell.api.document.add_reference(model, information=document)
ifcopenshell.api.document.remove_reference(model, reference=reference)