| 1 |
@brick |
| 2 |
Feature: Brick |
| 3 |
|
| 4 |
Scenario: Create Brick project |
| 5 |
Given an empty Blender session |
| 6 |
And the Brickschema is stubbed |
| 7 |
When I press "bim.new_brick_file" |
| 8 |
Then nothing happens |
| 9 |
|
| 10 |
Scenario: Load Brick project |
| 11 |
Given an empty Blender session |
| 12 |
And the Brickschema is stubbed |
| 13 |
When I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 14 |
Then nothing happens |
| 15 |
|
| 16 |
Scenario: View Brick class |
| 17 |
Given an empty Blender session |
| 18 |
And the Brickschema is stubbed |
| 19 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 20 |
When I press "bim.view_brick_class(brick_class='Building')" |
| 21 |
Then nothing happens |
| 22 |
|
| 23 |
Scenario: View Brick item |
| 24 |
Given an empty Blender session |
| 25 |
And the Brickschema is stubbed |
| 26 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 27 |
When I press "bim.view_brick_item(item='https://example.org/digitaltwin#lighting_zone_1')" |
| 28 |
Then nothing happens |
| 29 |
|
| 30 |
Scenario: Rewind Brick class |
| 31 |
Given an empty Blender session |
| 32 |
And the Brickschema is stubbed |
| 33 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 34 |
And I press "bim.view_brick_class(brick_class='Building')" |
| 35 |
When I press "bim.rewind_brick_class" |
| 36 |
Then nothing happens |
| 37 |
|
| 38 |
Scenario: Close Brick project |
| 39 |
Given an empty Blender session |
| 40 |
And the Brickschema is stubbed |
| 41 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 42 |
When I press "bim.close_brick_project" |
| 43 |
Then nothing happens |
| 44 |
|
| 45 |
Scenario: Close Brick project then create Brick project |
| 46 |
Given an empty Blender session |
| 47 |
And the Brickschema is stubbed |
| 48 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 49 |
And I press "bim.close_brick_project" |
| 50 |
And the Brickschema is stubbed |
| 51 |
When I press "bim.new_brick_file" |
| 52 |
Then nothing happens |
| 53 |
|
| 54 |
Scenario: Add Brick - vanilla Brick with no IFC |
| 55 |
Given an empty Blender session |
| 56 |
And the Brickschema is stubbed |
| 57 |
And I press "bim.new_brick_file" |
| 58 |
And I set "scene.BIMBrickProperties.namespace" to "https://example.org/digitaltwin#" |
| 59 |
And I set "scene.BIMBrickProperties.new_brick_label" to "abc123" |
| 60 |
When I press "bim.add_brick" |
| 61 |
Then nothing happens |
| 62 |
|
| 63 |
Scenario: Add Brick - from geometry without a Brick IFC library |
| 64 |
Given an empty IFC project |
| 65 |
And the Brickschema is stubbed |
| 66 |
And I press "bim.new_brick_file" |
| 67 |
And I add a cube |
| 68 |
And the object "Cube" is selected |
| 69 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 70 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcChiller" |
| 71 |
And I press "bim.assign_class" |
| 72 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 73 |
And the object "IfcChiller/Cube" is selected |
| 74 |
And I set "scene.BIMBrickProperties.namespace" to "https://example.org/digitaltwin#" |
| 75 |
When I press "bim.add_brick" |
| 76 |
Then nothing happens |
| 77 |
|
| 78 |
Scenario: Add Brick - from geometry with a Brick IFC library |
| 79 |
Given an empty IFC project |
| 80 |
And the Brickschema is stubbed |
| 81 |
And I add a cube |
| 82 |
And the object "Cube" is selected |
| 83 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 84 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcChiller" |
| 85 |
And I press "bim.assign_class" |
| 86 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 87 |
And I press "bim.convert_brick_project" |
| 88 |
And the object "IfcChiller/Cube" is selected |
| 89 |
And I set "scene.BIMBrickProperties.namespace" to "https://example.org/digitaltwin#" |
| 90 |
When I press "bim.add_brick" |
| 91 |
Then nothing happens |
| 92 |
|
| 93 |
Scenario: Refresh Brick viewer |
| 94 |
Given an empty Blender session |
| 95 |
And the Brickschema is stubbed |
| 96 |
And I press "bim.new_brick_file" |
| 97 |
When I press "bim.refresh_brick_viewer" |
| 98 |
Then nothing happens |
| 99 |
|
| 100 |
Scenario: Add Brick relation - vanilla Brick with no IFC |
| 101 |
Given an empty Blender session |
| 102 |
And the Brickschema is stubbed |
| 103 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 104 |
And I set "scene.BIMBrickProperties.namespace" to "https://example.org/digitaltwin#" |
| 105 |
And I press "bim.view_brick_class(brick_class='Lighting_Zone')" |
| 106 |
And I set "scene.BIMBrickProperties.active_brick_index" to "0" |
| 107 |
And I set "scene.BIMBrickProperties.brick_create_relations_toggled" to "True" |
| 108 |
And I set "scene.BIMBrickProperties.new_brick_relation_object" to "xyz789" |
| 109 |
When I press "bim.add_brick_relation" |
| 110 |
Then nothing happens |
| 111 |
|
| 112 |
Scenario: Add Brick relation - vanilla Brick with no IFC and with split screen |
| 113 |
Given an empty Blender session |
| 114 |
And the Brickschema is stubbed |
| 115 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 116 |
And I set "scene.BIMBrickProperties.namespace" to "https://example.org/digitaltwin#" |
| 117 |
And I set "scene.BIMBrickProperties.brick_entity_create_type" to "Location" |
| 118 |
And I set "scene.BIMBrickProperties.new_brick_label" to "abc123" |
| 119 |
And I set "scene.BIMBrickProperties.brick_entity_class" to "https://brickschema.org/schema/Brick#Building" |
| 120 |
And I press "bim.add_brick" |
| 121 |
And I press "bim.view_brick_class(brick_class='Lighting_Zone')" |
| 122 |
And I set "scene.BIMBrickProperties.active_brick_index" to "0" |
| 123 |
And I set "scene.BIMBrickProperties.split_screen_toggled" to "True" |
| 124 |
And I press "bim.view_brick_class(brick_class='Building', split_screen=True)" |
| 125 |
And I set "scene.BIMBrickProperties.split_screen_active_brick_index" to "0" |
| 126 |
And I set "scene.BIMBrickProperties.brick_create_relations_toggled" to "True" |
| 127 |
When I press "bim.add_brick_relation" |
| 128 |
Then nothing happens |
| 129 |
|
| 130 |
Scenario: Remove Brick - vanilla Brick |
| 131 |
Given an empty Blender session |
| 132 |
And the Brickschema is stubbed |
| 133 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 134 |
And I press "bim.view_brick_class(brick_class='Lighting_Zone')" |
| 135 |
And I set "scene.BIMBrickProperties.active_brick_index" to "0" |
| 136 |
When I press "bim.remove_brick" |
| 137 |
Then nothing happens |
| 138 |
|
| 139 |
Scenario: Remove Brick - with a Brick IFC library reference |
| 140 |
Given an empty IFC project |
| 141 |
And the Brickschema is stubbed |
| 142 |
And I add a cube |
| 143 |
And the object "Cube" is selected |
| 144 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 145 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcChiller" |
| 146 |
And I press "bim.assign_class" |
| 147 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 148 |
And the object "IfcChiller/Cube" is selected |
| 149 |
And I set "scene.BIMBrickProperties.namespace" to "https://example.org/digitaltwin#" |
| 150 |
And I press "bim.add_brick" |
| 151 |
And I press "bim.view_brick_class(brick_class='Equipment')" |
| 152 |
And I set "scene.BIMBrickProperties.active_brick_index" to "0" |
| 153 |
When I press "bim.remove_brick" |
| 154 |
Then nothing happens |
| 155 |
|
| 156 |
Scenario: Change viewer list root |
| 157 |
Given an empty Blender session |
| 158 |
And the Brickschema is stubbed |
| 159 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 160 |
And I set "scene.BIMBrickProperties.set_list_root_toggled" to "True" |
| 161 |
When I set "scene.BIMBrickProperties.brick_list_root" to "Location" |
| 162 |
Then nothing happens |
| 163 |
|
| 164 |
Scenario: Change viewer list root - split screen |
| 165 |
Given an empty Blender session |
| 166 |
And the Brickschema is stubbed |
| 167 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 168 |
And I set "scene.BIMBrickProperties.set_list_root_toggled" to "True" |
| 169 |
And I set "scene.BIMBrickProperties.split_screen_toggled" to "True" |
| 170 |
When I set "scene.BIMBrickProperties.split_screen_brick_list_root" to "Location" |
| 171 |
Then nothing happens |
| 172 |
|
| 173 |
Scenario: Toggle split screen |
| 174 |
Given an empty Blender session |
| 175 |
And the Brickschema is stubbed |
| 176 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 177 |
When I set "scene.BIMBrickProperties.split_screen_toggled" to "True" |
| 178 |
Then nothing happens |
| 179 |
|
| 180 |
Scenario: Set active namespace |
| 181 |
Given an empty Blender session |
| 182 |
And the Brickschema is stubbed |
| 183 |
When I set "scene.BIMBrickProperties.namespace" to "https://example.org/digitaltwin#" |
| 184 |
Then nothing happens |
| 185 |
|
| 186 |
Scenario: Bind new namespace |
| 187 |
Given an empty Blender session |
| 188 |
And the Brickschema is stubbed |
| 189 |
And I set "scene.BIMBrickProperties.new_brick_namespace_alias" to "digitaltwin2" |
| 190 |
And I set "scene.BIMBrickProperties.new_brick_namespace_uri" to "https://example.org/digitaltwin2#" |
| 191 |
When I press "bim.add_brick_namespace" |
| 192 |
Then nothing happens |
| 193 |
|
| 194 |
Scenario: Convert brick project |
| 195 |
Given an empty IFC project |
| 196 |
And the Brickschema is stubbed |
| 197 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 198 |
When I press "bim.convert_brick_project" |
| 199 |
Then nothing happens |
| 200 |
|
| 201 |
Scenario: Convert IFC to brick |
| 202 |
Given an empty IFC project |
| 203 |
And the Brickschema is stubbed |
| 204 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 205 |
And I press "bim.convert_brick_project" |
| 206 |
And I set "scene.BIMBrickProperties.namespace" to "https://example.org/digitaltwin#" |
| 207 |
And I add a cube |
| 208 |
And the object "Cube" is selected |
| 209 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 210 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcUnitaryEquipment" |
| 211 |
And I set "scene.BIMRootProperties.ifc_predefined_type" to "AIRHANDLER" |
| 212 |
And I press "bim.assign_class" |
| 213 |
When I press "bim.convert_ifc_to_brick" |
| 214 |
Then nothing happens |
| 215 |
|
| 216 |
Scenario: Assign brick reference |
| 217 |
Given an empty IFC project |
| 218 |
And the Brickschema is stubbed |
| 219 |
And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" |
| 220 |
And I set "scene.BIMBrickProperties.namespace" to "https://example.org/digitaltwin#" |
| 221 |
And I set "scene.BIMBrickProperties.brick_entity_class" to "https://brickschema.org/schema/Brick#Chiller" |
| 222 |
And I press "bim.add_brick" |
| 223 |
And I press "bim.view_brick_class(brick_class='Chiller')" |
| 224 |
And I set "scene.BIMBrickProperties.active_brick_index" to "0" |
| 225 |
And I add a cube |
| 226 |
And the object "Cube" is selected |
| 227 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 228 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcChiller" |
| 229 |
And I press "bim.assign_class" |
| 230 |
And the object "IfcChiller/Cube" is selected |
| 231 |
And I press "bim.convert_brick_project" |
| 232 |
When I press "bim.assign_brick_reference" |
| 233 |
Then nothing happens |