mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Fix set update in loop bug when trying to filter elements by spatial container
This commit is contained in:
@@ -2,6 +2,45 @@
|
||||
Feature: Spatial
|
||||
Covers spatial containment management and spatial tool.
|
||||
|
||||
Scenario: Set default container
|
||||
Given an empty IFC project
|
||||
When I look at the "Spatial Decomposition" panel
|
||||
Then I see "My Site" in the "1st" list
|
||||
And I see "Default: My Storey"
|
||||
When I select the row where I see "My Building" in the "1st" list
|
||||
And I click "Set Default"
|
||||
Then I don't see "Default: My Storey"
|
||||
And I see "Default: My Building"
|
||||
|
||||
Scenario: Select container
|
||||
Given an empty IFC project
|
||||
And I look at the "Spatial Decomposition" panel
|
||||
When I select the row where I see "My Building" in the "1st" list
|
||||
And I click "OBJECT_DATA"
|
||||
Then the object "IfcBuilding/My Building" is selected
|
||||
|
||||
Scenario: View elements - view elements recursively in the project
|
||||
Given an empty IFC project
|
||||
And I load the demo construction library
|
||||
And I set "scene.BIMModelProperties.ifc_class" to "IfcColumnType"
|
||||
And I add the construction type
|
||||
When I look at the "Spatial Decomposition" panel
|
||||
And I select the row where I see "My Project" in the "1st" list
|
||||
Then I see "IfcColumn" in the "2nd" list
|
||||
|
||||
Scenario: View elements - view elements non-recursively in their container
|
||||
Given an empty IFC project
|
||||
And I load the demo construction library
|
||||
And I set "scene.BIMModelProperties.ifc_class" to "IfcColumnType"
|
||||
And I add the construction type
|
||||
When I look at the "Spatial Decomposition" panel
|
||||
And I select the row where I see "My Project" in the "1st" list
|
||||
And I click "OUTLINER"
|
||||
Then there are "1" lists
|
||||
And I see "No Elements"
|
||||
And I select the row where I see "My Storey" in the "1st" list
|
||||
Then I see "IfcColumn" in the "2nd" list
|
||||
|
||||
Scenario: Enable editing container
|
||||
Given an empty IFC project
|
||||
And I add a cube
|
||||
@@ -77,7 +116,7 @@ Scenario: Dereference structure
|
||||
And I press "bim.dereference_structure"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Select container
|
||||
Scenario: Assign container
|
||||
Given an empty IFC project
|
||||
And I add a cube
|
||||
And the object "Cube" is selected
|
||||
@@ -144,7 +183,7 @@ Scenario: Spatial decomposition - see panel
|
||||
Then the "BIM_UL_containers_manager" list has 4 items
|
||||
And I don't see the "BIM_UL_elements" list
|
||||
|
||||
Scenario: Isolate spatial container
|
||||
Scenario: Set element visibility - Isolate spatial container
|
||||
Given an empty IFC project
|
||||
And I trigger "Add Element"
|
||||
And I set the "Definition" property to "IfcElement"
|
||||
@@ -156,7 +195,7 @@ Scenario: Isolate spatial container
|
||||
And I click "FULLSCREEN_EXIT"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Show spatial container
|
||||
Scenario: Set element visibility - Show spatial container
|
||||
Given an empty IFC project
|
||||
And I trigger "Add Element"
|
||||
And I set the "Definition" property to "IfcElement"
|
||||
@@ -168,7 +207,7 @@ Scenario: Show spatial container
|
||||
And I click "HIDE_OFF"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Hide spatial container
|
||||
Scenario: Set element visibility - Hide spatial container
|
||||
Given an empty IFC project
|
||||
And I trigger "Add Element"
|
||||
And I set the "Definition" property to "IfcElement"
|
||||
|
||||
Reference in New Issue
Block a user