| 1 |
@drawing |
| 2 |
Feature: Drawing |
| 3 |
|
| 4 |
Scenario: Duplicate drawing |
| 5 |
Given an empty IFC project |
| 6 |
And I add a cube |
| 7 |
And the object "Cube" is selected |
| 8 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 9 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 10 |
And I press "bim.assign_class" |
| 11 |
And I save sample test files |
| 12 |
And I look at the "Drawings" panel |
| 13 |
And I click "IMPORT" |
| 14 |
And I click "ADD" |
| 15 |
And I press "bim.expand_target_view(target_view='PLAN_VIEW')" |
| 16 |
When I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list |
| 17 |
And the variable "drawing" is "IfcStore.get_file().by_type('IfcAnnotation')[0].id()" |
| 18 |
When I press "bim.duplicate_drawing(drawing={drawing})" |
| 19 |
Then nothing happens |
| 20 |
|
| 21 |
Scenario: Create drawing |
| 22 |
Given an empty IFC project |
| 23 |
And I add a cube |
| 24 |
And the object "Cube" is selected |
| 25 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 26 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 27 |
And I press "bim.assign_class" |
| 28 |
And I save sample test files |
| 29 |
And I look at the "Drawings" panel |
| 30 |
And I click "IMPORT" |
| 31 |
And I click "ADD" |
| 32 |
And I press "bim.expand_target_view(target_view='PLAN_VIEW')" |
| 33 |
When I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list |
| 34 |
And I click "OUTLINER_OB_CAMERA" |
| 35 |
And I click "OUTPUT" |
| 36 |
Then nothing happens |
| 37 |
|
| 38 |
Scenario: Create drawing after deleting a duplicated object |
| 39 |
Given an empty IFC project |
| 40 |
And I add a cube |
| 41 |
And the object "Cube" is selected |
| 42 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 43 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 44 |
And I press "bim.assign_class" |
| 45 |
And I duplicate the selected objects |
| 46 |
And I save sample test files |
| 47 |
And I look at the "Drawings" panel |
| 48 |
And I click "IMPORT" |
| 49 |
And I click "ADD" |
| 50 |
And I press "bim.expand_target_view(target_view='PLAN_VIEW')" |
| 51 |
And I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list |
| 52 |
And I click "OUTLINER_OB_CAMERA" |
| 53 |
And I click "OUTPUT" |
| 54 |
And the object "IfcWall/Cube" is selected |
| 55 |
And I delete the selected objects |
| 56 |
When I click "OUTPUT" |
| 57 |
Then nothing happens |
| 58 |
|
| 59 |
Scenario: Activate drawing preserves visibility for non-ifc objects |
| 60 |
Given an empty IFC project |
| 61 |
And I add a cube |
| 62 |
And I add a cube |
| 63 |
And the object "Cube" is visible |
| 64 |
And the object "Cube.001" is not visible |
| 65 |
And I save sample test files |
| 66 |
And I look at the "Drawings" panel |
| 67 |
And I click "IMPORT" |
| 68 |
And I click "ADD" |
| 69 |
And I press "bim.expand_target_view(target_view='PLAN_VIEW')" |
| 70 |
And I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list |
| 71 |
And I click "OUTLINER_OB_CAMERA" |
| 72 |
Then the object "Cube" is visible |
| 73 |
And the object "Cube.001" is not visible |
| 74 |
|
| 75 |
Scenario: Activate drawing preserves selection |
| 76 |
Given an empty IFC project |
| 77 |
And I add a cube |
| 78 |
And the object "Cube" is selected |
| 79 |
And I save sample test files |
| 80 |
And I look at the "Drawings" panel |
| 81 |
And I click "IMPORT" |
| 82 |
And I click "ADD" |
| 83 |
And I press "bim.expand_target_view(target_view='PLAN_VIEW')" |
| 84 |
And I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list |
| 85 |
When I click "OUTLINER_OB_CAMERA" |
| 86 |
Then the object "Cube" is selected |
| 87 |
|
| 88 |
Scenario: Remove drawing |
| 89 |
Given an empty IFC project |
| 90 |
And I add a cube |
| 91 |
And the object "Cube" is selected |
| 92 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 93 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 94 |
And I press "bim.assign_class" |
| 95 |
And I save sample test files |
| 96 |
And I look at the "Drawings" panel |
| 97 |
And I click "IMPORT" |
| 98 |
And I click "ADD" |
| 99 |
And I press "bim.expand_target_view(target_view='PLAN_VIEW')" |
| 100 |
And I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list |
| 101 |
When I click "OUTLINER_OB_CAMERA" |
| 102 |
Then the collection "IfcAnnotation/PLAN_VIEW" exists |
| 103 |
When I press "bim.remove_drawing(drawing={drawing})" |
| 104 |
Then the collection "IfcAnnotation/PLAN_VIEW" does not exist |
| 105 |
|
| 106 |
Scenario: Remove drawing - via object deletion |
| 107 |
Given an empty IFC project |
| 108 |
And I add a cube |
| 109 |
And the object "Cube" is selected |
| 110 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 111 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 112 |
And I press "bim.assign_class" |
| 113 |
And I press "bim.add_drawing" |
| 114 |
And the variable "drawing" is "IfcStore.get_file().by_type('IfcAnnotation')[0].id()" |
| 115 |
And the collection "IfcAnnotation/PLAN_VIEW" exists |
| 116 |
And the object "IfcAnnotation/PLAN_VIEW" is selected |
| 117 |
When I press "bim.override_object_delete" |
| 118 |
Then the collection "IfcAnnotation/PLAN_VIEW" does not exist |
| 119 |
|
| 120 |
Scenario: Remove drawing - deleting active drawing |
| 121 |
Given an empty IFC project |
| 122 |
And I add a cube |
| 123 |
And the object "Cube" is selected |
| 124 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 125 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 126 |
And I press "bim.assign_class" |
| 127 |
And I save sample test files |
| 128 |
And I look at the "Drawings" panel |
| 129 |
And I click "IMPORT" |
| 130 |
And I click "ADD" |
| 131 |
And I press "bim.expand_target_view(target_view='PLAN_VIEW')" |
| 132 |
And I select the "PLAN_VIEW" item in the "BIM_UL_drawinglist" list |
| 133 |
And I click "OUTLINER_OB_CAMERA" |
| 134 |
When the object "IfcAnnotation/PLAN_VIEW" is selected |
| 135 |
And I delete the selected objects |
| 136 |
Then the collection "IfcAnnotation/PLAN_VIEW" does not exist |