MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_facility_data

Function get_facility_data

src/ifcfm/ifcfm/basic.py:65–81  ·  view source on GitHub ↗
(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance)

Source from the content-addressed store, hash-verified

63
64
65def get_facility_data(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance) -> dict[str, Any]:
66 return {
67 "Name": element.Name,
68 "ProjectName": ifc_file.by_type("IfcProject")[0].Name,
69 "SiteName": getattr(get_facility_parent(element, "IfcSite"), "Name", None),
70 "ClassificationIdentification": get_classification_identification(element),
71 "ClassificationName": get_classification_name(element),
72 "OrganizationName": get_owner_name(element),
73 "CreationDate": get_owner_creation_date(element),
74 "ModelSoftware": get_owner_application(element),
75 "ModelProjectID": ifc_file.by_type("IfcProject")[0].GlobalId,
76 "ModelSiteID": getattr(get_facility_parent(element, "IfcSite"), "GlobalId", None),
77 "ModelBuildingID": element.GlobalId,
78 "LengthUnit": "millimeters",
79 "AreaUnit": "square meters",
80 "Phase": ifc_file.by_type("IfcProject")[0].Phase,
81 }
82
83
84def get_storey_data(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance) -> dict[str, Any]:

Callers

nothing calls this directly

Calls 7

get_classification_nameFunction · 0.85
get_owner_creation_dateFunction · 0.85
get_owner_applicationFunction · 0.85
get_facility_parentFunction · 0.70
get_owner_nameFunction · 0.70
by_typeMethod · 0.45

Tested by

no test coverage detected