ifcopenshell.api.owner.remove_person_and_organisation

Module Contents

ifcopenshell.api.owner.remove_person_and_organisation.remove_person_and_organisation(file: ifcopenshell.file, person_and_organisation: ifcopenshell.entity_instance) None

Removes a person and organisation

Note that the underlying person and organisation is not removed, only the “person and organisation” group.

Parameters:

person_and_organisation (ifcopenshell.entity_instance) – The IfcPersonAndOrganization to remove.

Returns:

None

Return type:

None

Example:

person = ifcopenshell.api.owner.add_person(model,
    identification="lecorbycorbycorb", family_name="Curbosiar", given_name="Le")
organisation = ifcopenshell.api.owner.add_organisation(model,
    identification="AWB", name="Architects Without Ballpens")

user = ifcopenshell.api.owner.add_person_and_organisation(model,
    person=person, organisation=organisation)

ifcopenshell.api.owner.remove_person_and_organisation(model, person_and_organisation=user)