Files
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/owner/settings.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
400 B
Python
Raw Normal View History

# Note: it is the intent for you to override these with your own functions
def get_person(ifc):
2021-07-04 09:54:49 +10:00
people = ifc.by_type("IfcPerson") or [None]
return people [0]
def get_organisation(ifc):
2021-07-04 09:54:49 +10:00
organisations = ifc.by_type("IfcOrganization") or [None]
return organisations[0]
def get_application(ifc):
2021-07-04 09:54:49 +10:00
applications = ifc.by_type("IfcApplication") or [None]
return applications[0]