ifcopenshell.api.owner.edit_person

Module Contents

ifcopenshell.api.owner.edit_person.edit_person(file, person=None, attributes=None) None

Edits the attributes of an IfcPerson

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

Parameters:
  • person (ifcopenshell.entity_instance) – The IfcPerson entity you want to edit

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

Returns:

None

Return type:

None

Example:

person = ifcopenshell.api.run("owner.add_person", model,
    identification="bobthebuilder", family_name="Thebuilder", given_name="Bob")
ifcopenshell.api.run("owner.edit_person", model, person=person,
    attributes={"MiddleNames": ["The"], "FamilyName": "Builder"})