ifcopenshell.api.document.remove_reference#

Module Contents#

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

Remove a document reference

All associations with objects are removed.

Parameters

reference (ifcopenshell.entity_instance.entity_instance) – The IfcDocumentReference to remove

Returns

None

Return type

None

Example:

document = ifcopenshell.api.run("document.add_information", model)
reference = ifcopenshell.api.run("document.add_reference", model, information=document)
ifcopenshell.api.run("document.remove_reference", model, reference=reference)
execute(self)#