ifcopenshell.api.owner.add_person_and_organisation

Module Contents

ifcopenshell.api.owner.add_person_and_organisation.add_person_and_organisation(file: ifcopenshell.entity_instance, 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:
Returns:

The newly created IfcPersonAndOrganization

Return type:

ifcopenshell.entity_instance

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

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