ifcopenshell.api.document.edit_reference#

Module Contents#

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

Edits the attributes of an IfcDocumentReference

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

Parameters
Returns

None

Return type

None

Example:

document = ifcopenshell.api.run("document.add_information", model)
ifcopenshell.api.run("document.edit_information", model,
    information=document,
    attributes={"Identification": "A-GA-6100", "Name": "Overall Plan",
    "Location": "A-GA-6100 - Overall Plan.pdf"})
reference = ifcopenshell.api.run("document.add_reference", model, information=document)
ifcopenshell.api.run("document.edit_reference", model,
    reference=reference, attributes={"Identification": "2.1.15"})
execute(self)#