mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 22:31:55 +00:00
You can now filter and search in the spatial decomposition panel
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user