ifcopenshell.api.owner.remove_person_and_organisation#

Module Contents#

class ifcopenshell.api.owner.remove_person_and_organisation.Usecase(file, person_and_organisation=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.entity_instance) – The IfcPersonAndOrganization to remove.

Returns

None

Return type

None

Example:

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

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

ifcopenshell.api.run("owner.remove_person_and_organisation", model, person_and_organisation=user)
execute(self)#