2023-01-23 22:06:29 +01:00
|
|
|
@drawing
|
|
|
|
|
Feature: Drawing
|
|
|
|
|
|
2023-02-08 12:29:40 +11:00
|
|
|
Scenario: Duplicate drawing
|
|
|
|
|
Given an empty IFC project
|
|
|
|
|
And I add a cube
|
|
|
|
|
And the object "Cube" is selected
|
2023-09-24 18:44:56 +01:00
|
|
|
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
|
2023-02-08 12:29:40 +11:00
|
|
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
|
|
|
|
And I press "bim.assign_class"
|
2025-02-07 22:40:17 +11:00
|
|
|
And I save sample test files
|
|
|
|
|
And I look at the "Drawings" panel
|
|
|
|
|
And I click "IMPORT"
|
|
|
|
|
And I click "ADD"
|
|
|
|
|
And I press "bim.expand_target_view(target_view='PLAN_VIEW')"
|
|
|
|
|
When I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list
|
2023-02-08 12:29:40 +11:00
|
|
|
And the variable "drawing" is "IfcStore.get_file().by_type('IfcAnnotation')[0].id()"
|
|
|
|
|
When I press "bim.duplicate_drawing(drawing={drawing})"
|
|
|
|
|
Then nothing happens
|
|
|
|
|
|
2023-01-23 22:06:29 +01:00
|
|
|
Scenario: Create drawing
|
|
|
|
|
Given an empty IFC project
|
|
|
|
|
And I add a cube
|
|
|
|
|
And the object "Cube" is selected
|
2023-09-24 18:44:56 +01:00
|
|
|
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
|
2023-01-23 22:06:29 +01:00
|
|
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
|
|
|
|
And I press "bim.assign_class"
|
2025-02-07 22:40:17 +11:00
|
|
|
And I save sample test files
|
|
|
|
|
And I look at the "Drawings" panel
|
|
|
|
|
And I click "IMPORT"
|
|
|
|
|
And I click "ADD"
|
|
|
|
|
And I press "bim.expand_target_view(target_view='PLAN_VIEW')"
|
|
|
|
|
When I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list
|
|
|
|
|
And I click "OUTLINER_OB_CAMERA"
|
|
|
|
|
And I click "OUTPUT"
|
2023-01-23 22:06:29 +01:00
|
|
|
Then nothing happens
|
|
|
|
|
|
|
|
|
|
Scenario: Create drawing after deleting a duplicated object
|
|
|
|
|
Given an empty IFC project
|
|
|
|
|
And I add a cube
|
|
|
|
|
And the object "Cube" is selected
|
2023-09-24 18:44:56 +01:00
|
|
|
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
|
2023-01-23 22:06:29 +01:00
|
|
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
|
|
|
|
And I press "bim.assign_class"
|
2025-02-07 22:40:17 +11:00
|
|
|
And I duplicate the selected objects
|
|
|
|
|
And I save sample test files
|
|
|
|
|
And I look at the "Drawings" panel
|
|
|
|
|
And I click "IMPORT"
|
|
|
|
|
And I click "ADD"
|
|
|
|
|
And I press "bim.expand_target_view(target_view='PLAN_VIEW')"
|
|
|
|
|
And I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list
|
|
|
|
|
And I click "OUTLINER_OB_CAMERA"
|
|
|
|
|
And I click "OUTPUT"
|
2023-01-23 22:06:29 +01:00
|
|
|
And the object "IfcWall/Cube" is selected
|
2025-02-07 22:40:17 +11:00
|
|
|
And I delete the selected objects
|
|
|
|
|
When I click "OUTPUT"
|
2023-02-08 12:29:40 +11:00
|
|
|
Then nothing happens
|
2023-03-19 18:15:09 +11:00
|
|
|
|
2024-08-28 16:13:17 +05:00
|
|
|
Scenario: Activate drawing preserves visibility for non-ifc objects
|
|
|
|
|
Given an empty IFC project
|
|
|
|
|
And I add a cube
|
|
|
|
|
And I add a cube
|
|
|
|
|
And the object "Cube" is visible
|
|
|
|
|
And the object "Cube.001" is not visible
|
2025-02-07 22:40:17 +11:00
|
|
|
And I save sample test files
|
|
|
|
|
And I look at the "Drawings" panel
|
|
|
|
|
And I click "IMPORT"
|
|
|
|
|
And I click "ADD"
|
|
|
|
|
And I press "bim.expand_target_view(target_view='PLAN_VIEW')"
|
|
|
|
|
And I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list
|
|
|
|
|
And I click "OUTLINER_OB_CAMERA"
|
2024-08-28 16:13:17 +05:00
|
|
|
Then the object "Cube" is visible
|
|
|
|
|
And the object "Cube.001" is not visible
|
|
|
|
|
|
|
|
|
|
Scenario: Activate drawing preserves selection
|
|
|
|
|
Given an empty IFC project
|
|
|
|
|
And I add a cube
|
|
|
|
|
And the object "Cube" is selected
|
2025-02-07 22:40:17 +11:00
|
|
|
And I save sample test files
|
|
|
|
|
And I look at the "Drawings" panel
|
|
|
|
|
And I click "IMPORT"
|
|
|
|
|
And I click "ADD"
|
|
|
|
|
And I press "bim.expand_target_view(target_view='PLAN_VIEW')"
|
|
|
|
|
And I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list
|
|
|
|
|
When I click "OUTLINER_OB_CAMERA"
|
2024-08-28 16:13:17 +05:00
|
|
|
Then the object "Cube" is selected
|
|
|
|
|
|
2023-03-19 18:15:09 +11:00
|
|
|
Scenario: Remove drawing
|
|
|
|
|
Given an empty IFC project
|
|
|
|
|
And I add a cube
|
|
|
|
|
And the object "Cube" is selected
|
2023-09-24 18:44:56 +01:00
|
|
|
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
|
2023-03-19 18:15:09 +11:00
|
|
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
|
|
|
|
And I press "bim.assign_class"
|
2025-02-07 22:40:17 +11:00
|
|
|
And I save sample test files
|
|
|
|
|
And I look at the "Drawings" panel
|
|
|
|
|
And I click "IMPORT"
|
|
|
|
|
And I click "ADD"
|
|
|
|
|
And I press "bim.expand_target_view(target_view='PLAN_VIEW')"
|
|
|
|
|
And I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list
|
|
|
|
|
When I click "OUTLINER_OB_CAMERA"
|
|
|
|
|
Then the collection "IfcAnnotation/PLAN_VIEW" exists
|
2023-03-19 18:15:09 +11:00
|
|
|
When I press "bim.remove_drawing(drawing={drawing})"
|
2023-06-21 09:46:44 +05:00
|
|
|
Then the collection "IfcAnnotation/PLAN_VIEW" does not exist
|
2023-03-19 18:15:09 +11:00
|
|
|
|
|
|
|
|
Scenario: Remove drawing - via object deletion
|
|
|
|
|
Given an empty IFC project
|
|
|
|
|
And I add a cube
|
|
|
|
|
And the object "Cube" is selected
|
2023-09-24 18:44:56 +01:00
|
|
|
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
|
2023-03-19 18:15:09 +11:00
|
|
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
|
|
|
|
And I press "bim.assign_class"
|
|
|
|
|
And I press "bim.add_drawing"
|
|
|
|
|
And the variable "drawing" is "IfcStore.get_file().by_type('IfcAnnotation')[0].id()"
|
2023-06-21 09:46:44 +05:00
|
|
|
And the collection "IfcAnnotation/PLAN_VIEW" exists
|
2023-03-19 18:15:09 +11:00
|
|
|
And the object "IfcAnnotation/PLAN_VIEW" is selected
|
|
|
|
|
When I press "bim.override_object_delete"
|
2023-06-21 09:46:44 +05:00
|
|
|
Then the collection "IfcAnnotation/PLAN_VIEW" does not exist
|
2023-05-18 18:34:50 +05:00
|
|
|
|
2023-05-26 19:24:14 +10:00
|
|
|
Scenario: Remove drawing - deleting active drawing
|
|
|
|
|
Given an empty IFC project
|
|
|
|
|
And I add a cube
|
|
|
|
|
And the object "Cube" is selected
|
2023-09-24 18:44:56 +01:00
|
|
|
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
|
2023-05-26 19:24:14 +10:00
|
|
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
|
|
|
|
And I press "bim.assign_class"
|
2025-02-07 22:40:17 +11:00
|
|
|
And I save sample test files
|
|
|
|
|
And I look at the "Drawings" panel
|
|
|
|
|
And I click "IMPORT"
|
|
|
|
|
And I click "ADD"
|
|
|
|
|
And I press "bim.expand_target_view(target_view='PLAN_VIEW')"
|
|
|
|
|
And I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list
|
|
|
|
|
And I click "OUTLINER_OB_CAMERA"
|
2024-07-31 18:43:02 +05:00
|
|
|
When the object "IfcAnnotation/PLAN_VIEW" is selected
|
2025-02-07 22:40:17 +11:00
|
|
|
And I delete the selected objects
|
2023-06-21 09:46:44 +05:00
|
|
|
Then the collection "IfcAnnotation/PLAN_VIEW" does not exist
|