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

Function get_space_data

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

Source from the content-addressed store, hash-verified

96
97
98def get_space_data(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance) -> dict[str, Any]:
99 psets = ifcopenshell.util.element.get_psets(element)
100 return {
101 "Name": element.Name,
102 "Description": element.LongName,
103 "ClassificationIdentification": get_classification_identification(element),
104 "ClassificationName": get_classification_name(element),
105 "StoreyName": getattr(get_facility_parent(element, "IfcBuildingStorey"), "Name", None),
106 "OrganizationName": get_owner_name(element),
107 "CreationDate": get_owner_creation_date(element),
108 "ModelSoftware": get_owner_application(element),
109 "ModelID": element.GlobalId,
110 "FinishCeilingHeight": get_property(psets, "Qto_SpaceBaseQuantities", "FinishCeilingHeight", decimals=2),
111 "GrossFloorArea": get_property(psets, "Qto_SpaceBaseQuantities", "GrossFloorArea", decimals=2),
112 "NetFloorArea": get_property(psets, "Qto_SpaceBaseQuantities", "NetFloorArea", decimals=2),
113 }
114
115
116def get_zone_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
get_propertyFunction · 0.70

Tested by

no test coverage detected