2021-07-02 16:30:30 +10:00
|
|
|
# Note: it is the intent for you to override these with your own functions
|
|
|
|
|
|
|
|
|
|
|
2021-03-29 16:53:11 +11:00
|
|
|
def get_person(ifc):
|
2021-07-04 09:54:49 +10:00
|
|
|
people = ifc.by_type("IfcPerson") or [None]
|
|
|
|
|
return people [0]
|
2021-03-25 16:32:43 +11:00
|
|
|
|
|
|
|
|
|
2021-03-29 16:53:11 +11:00
|
|
|
def get_organisation(ifc):
|
2021-07-04 09:54:49 +10:00
|
|
|
organisations = ifc.by_type("IfcOrganization") or [None]
|
|
|
|
|
return organisations[0]
|
2021-03-25 16:32:43 +11:00
|
|
|
|
2021-03-25 11:42:12 +11:00
|
|
|
|
2021-03-29 16:53:11 +11:00
|
|
|
def get_application(ifc):
|
2021-07-04 09:54:49 +10:00
|
|
|
applications = ifc.by_type("IfcApplication") or [None]
|
|
|
|
|
return applications[0]
|