(
element: ifcopenshell.entity_instance, ifc_class: str
)
| 205 | |
| 206 | |
| 207 | def get_facility_parent( |
| 208 | element: ifcopenshell.entity_instance, ifc_class: str |
| 209 | ) -> Union[ifcopenshell.entity_instance, None]: |
| 210 | parent = ifcopenshell.util.element.get_aggregate(element) |
| 211 | while parent: |
| 212 | if parent.is_a(ifc_class): |
| 213 | return parent |
| 214 | if parent.is_a("IfcProject"): |
| 215 | return |
| 216 | parent = ifcopenshell.util.element.get_aggregate(parent) |
| 217 | |
| 218 | |
| 219 | def get_classification_identification(element: ifcopenshell.entity_instance) -> Union[str, None]: |
no test coverage detected