ifcopenshell.api.owner.add_person_and_organisation

Module Contents

ifcopenshell.api.owner.add_person_and_organisation.add_person_and_organisation(file: ifcopenshell.file, person: ifcopenshell.entity_instance, organisation: ifcopenshell.entity_instance) ifcopenshell.entity_instance

Adds a paired person and organisation

A person and an organisation may be paired to create a representative belonging to a company.

Parameters:
  • person (ifcopenshell.entity_instance) – The IfcPerson being the representative of the organisation.

  • organisation (ifcopenshell.entity_instance) – The IfcOrganization it

Returns:

The newly created IfcPersonAndOrganization

Return type:

ifcopenshell.entity_instance

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

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