ifcopenshell.api.owner.add_person_and_organisation#

Module Contents#

class ifcopenshell.api.owner.add_person_and_organisation.Usecase(file, person=None, organisation=None)#

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.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)
execute(self)#