Files
IfcOpenShell/src/bonsai/test/bim/feature/search.feature
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
702 B
Gherkin
Raw Normal View History

2022-07-22 09:37:46 +02:00
@search
Feature: Search
Scenario: Select all walls
Given an empty IFC project
And I add a cube
And the object "Cube" is selected
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
2022-07-22 09:37:46 +02:00
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
And I press "bim.assign_class"
2024-04-01 17:22:49 +05:00
And I press "bim.add_filter_group(module='search')"
And I set "scene.BIMSearchProperties.facet" to "entity"
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"
2024-07-31 12:31:44 +05:00
When I press "bim.search(property_group='BIMSearchProperties')"
2022-07-22 09:37:46 +02:00
Then the object "IfcWall/Cube" is selected