mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
fix broken search test after 410fff6
This commit is contained in:
@@ -175,6 +175,9 @@ class Search(Operator):
|
|||||||
props = context.scene.CsvProperties
|
props = context.scene.CsvProperties
|
||||||
elif self.property_group == "BIMSearchProperties":
|
elif self.property_group == "BIMSearchProperties":
|
||||||
props = context.scene.BIMSearchProperties
|
props = context.scene.BIMSearchProperties
|
||||||
|
else:
|
||||||
|
raise Exception(f"bim.search - unexpected property group name '{self.property_group}'.")
|
||||||
|
|
||||||
results = ifcopenshell.util.selector.filter_elements(
|
results = ifcopenshell.util.selector.filter_elements(
|
||||||
tool.Ifc.get(), tool.Search.export_filter_query(props.filter_groups)
|
tool.Ifc.get(), tool.Search.export_filter_query(props.filter_groups)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -12,5 +12,5 @@ Scenario: Select all walls
|
|||||||
And I set "scene.BIMSearchProperties.facet" to "entity"
|
And I set "scene.BIMSearchProperties.facet" to "entity"
|
||||||
And I press "bim.add_filter(index=0, type='entity', module='search')"
|
And I press "bim.add_filter(index=0, type='entity', module='search')"
|
||||||
And I set "scene.BIMSearchProperties.filter_groups[0].filters[0].value" to "IfcWall"
|
And I set "scene.BIMSearchProperties.filter_groups[0].filters[0].value" to "IfcWall"
|
||||||
When I press "bim.search"
|
When I press "bim.search(property_group='BIMSearchProperties')"
|
||||||
Then the object "IfcWall/Cube" is selected
|
Then the object "IfcWall/Cube" is selected
|
||||||
|
|||||||
Reference in New Issue
Block a user