ifcopenshell.api.document.edit_information

Module Contents

ifcopenshell.api.document.edit_information.edit_information(file: ifcopenshell.file, information: ifcopenshell.entity_instance, attributes: dict[str, Any] | None = None) None

Edits the attributes of an IfcDocumentInformation

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

Parameters:
  • reference (ifcopenshell.entity_instance) – The IfcDocumentInformation entity you want to edit

  • attributes (dict, optional) – a dictionary of attribute names and values.

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"})