(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance)
| 63 | |
| 64 | |
| 65 | def 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 | |
| 84 | def get_storey_data(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance) -> dict[str, Any]: |
nothing calls this directly
no test coverage detected