You can now filter and search in the spatial decomposition panel

This commit is contained in:
Dion Moult
2024-08-23 13:49:45 +10:00
parent 1ef2fb89af
commit a4a2497f33
5 changed files with 61 additions and 33 deletions
+2 -6
View File
@@ -147,14 +147,10 @@ def select_decomposed_elements(
ifc_class: str | None = None,
relating_type: ifcopenshell.entity_instance | None = None,
is_untyped: bool = False,
element_filter: str | None = None,
) -> None:
elements = spatial.get_decomposed_elements(container)
if ifc_class:
elements = spatial.filter_elements_by_class(elements, ifc_class)
elif relating_type:
elements = spatial.filter_elements_by_relating_type(elements, relating_type)
elif is_untyped:
elements = spatial.filter_elements_by_untyped(elements)
elements = spatial.filter_elements(elements, ifc_class, relating_type, is_untyped, element_filter)
spatial.select_products(elements)