ifcopenshell.api.owner.edit_person

Module Contents

ifcopenshell.api.owner.edit_person.edit_person(file: ifcopenshell.file, person: ifcopenshell.entity_instance, attributes: dict[str, Any]) 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) – a dictionary of attribute names and values.

Returns:

None

Return type:

None

Example:

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