| 1 |
@material |
| 2 |
Feature: Material |
| 3 |
|
| 4 |
Scenario: Load materials |
| 5 |
Given an empty IFC project |
| 6 |
And I press "bim.add_material()" |
| 7 |
When I press "bim.load_materials" |
| 8 |
Then nothing happens |
| 9 |
|
| 10 |
Scenario: Disable editing materials |
| 11 |
Given an empty IFC project |
| 12 |
And I press "bim.add_material()" |
| 13 |
And I press "bim.load_materials" |
| 14 |
When I press "bim.disable_editing_materials" |
| 15 |
Then nothing happens |
| 16 |
|
| 17 |
Scenario: Load materials - then add material |
| 18 |
Given an empty IFC project |
| 19 |
And I press "bim.load_materials" |
| 20 |
When I press "bim.add_material()" |
| 21 |
Then the IFC material "Default" exists |
| 22 |
|
| 23 |
Scenario: Load materials - then add material set |
| 24 |
Given an empty IFC project |
| 25 |
And I set "scene.BIMMaterialProperties.material_type" to "IfcMaterialLayerSet" |
| 26 |
And I press "bim.load_materials" |
| 27 |
When I press "bim.add_material_set(set_type='IfcMaterialLayerSet')" |
| 28 |
Then nothing happens |
| 29 |
|
| 30 |
Scenario: Add default material |
| 31 |
Given an empty IFC project |
| 32 |
When I press "bim.add_material()" |
| 33 |
Then the IFC material "Default" exists |
| 34 |
|
| 35 |
Scenario: Remove material set |
| 36 |
Given an empty IFC project |
| 37 |
And I set "scene.BIMMaterialProperties.material_type" to "IfcMaterialLayerSet" |
| 38 |
And I press "bim.load_materials" |
| 39 |
And I press "bim.add_material_set(set_type='IfcMaterialLayerSet')" |
| 40 |
And the variable "material" is "{ifc}.by_type('IfcMaterialLayerSet')[0].id()" |
| 41 |
When I press "bim.remove_material_set(material={material})" |
| 42 |
Then nothing happens |
| 43 |
|
| 44 |
Scenario: Assign material - single material |
| 45 |
Given an empty IFC project |
| 46 |
And I add a cube |
| 47 |
And the object "Cube" is selected |
| 48 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 49 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 50 |
And I press "bim.assign_class" |
| 51 |
And I press "bim.add_material()" |
| 52 |
When I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterial" |
| 53 |
And I press "bim.assign_material" |
| 54 |
Then the object "IfcWall/Cube" has the IFC material "Default" |
| 55 |
|
| 56 |
Scenario: Unassign material - single material |
| 57 |
Given an empty IFC project |
| 58 |
And I add a cube |
| 59 |
And the object "Cube" is selected |
| 60 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 61 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 62 |
And I press "bim.assign_class" |
| 63 |
And I press "bim.add_material()" |
| 64 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterial" |
| 65 |
And I press "bim.assign_material" |
| 66 |
When I press "bim.unassign_material" |
| 67 |
Then the object "IfcWall/Cube" does not have the material "Default" |
| 68 |
|
| 69 |
Scenario: Enable editing assigned material - single material |
| 70 |
Given an empty IFC project |
| 71 |
And I add a cube |
| 72 |
And the object "Cube" is selected |
| 73 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 74 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 75 |
And I press "bim.assign_class" |
| 76 |
And I press "bim.add_material()" |
| 77 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterial" |
| 78 |
And I press "bim.assign_material" |
| 79 |
When I press "bim.enable_editing_assigned_material" |
| 80 |
Then nothing happens |
| 81 |
|
| 82 |
Scenario: Disable editing assigned material - single material |
| 83 |
Given an empty IFC project |
| 84 |
And I add a cube |
| 85 |
And the object "Cube" is selected |
| 86 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 87 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 88 |
And I press "bim.assign_class" |
| 89 |
And I press "bim.add_material()" |
| 90 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterial" |
| 91 |
And I press "bim.assign_material" |
| 92 |
And I press "bim.enable_editing_assigned_material" |
| 93 |
When I press "bim.disable_editing_assigned_material" |
| 94 |
Then nothing happens |
| 95 |
|
| 96 |
Scenario: Edit assigned material - single material |
| 97 |
Given an empty IFC project |
| 98 |
And I add a cube |
| 99 |
And the object "Cube" is selected |
| 100 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 101 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 102 |
And I press "bim.assign_class" |
| 103 |
And I press "bim.add_material()" |
| 104 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterial" |
| 105 |
And I press "bim.assign_material" |
| 106 |
And I press "bim.enable_editing_assigned_material" |
| 107 |
And the variable "material_set" is "{ifc}.by_type('IfcMaterial')[0].id()" |
| 108 |
When I press "bim.edit_assigned_material(material_set={material_set})" |
| 109 |
Then nothing happens |
| 110 |
|
| 111 |
Scenario: Assign material - material layer set |
| 112 |
Given an empty IFC project |
| 113 |
And I add an empty |
| 114 |
And the object "Empty" is selected |
| 115 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 116 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 117 |
And I press "bim.assign_class" |
| 118 |
And I press "bim.add_material()" |
| 119 |
When I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSet" |
| 120 |
And I press "bim.assign_material" |
| 121 |
Then the object "IfcWallType/Empty" does not have the material "Default" |
| 122 |
And the object "IfcWallType/Empty" has a "100" thick layered material containing the material "Default" |
| 123 |
|
| 124 |
Scenario: Unassign material - material layer set |
| 125 |
Given an empty IFC project |
| 126 |
And I add an empty |
| 127 |
And the object "Empty" is selected |
| 128 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 129 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 130 |
And I press "bim.assign_class" |
| 131 |
And I press "bim.add_material()" |
| 132 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSet" |
| 133 |
And I press "bim.assign_material" |
| 134 |
When I press "bim.unassign_material" |
| 135 |
Then nothing happens |
| 136 |
|
| 137 |
Scenario: Unassign material - removing inherited material |
| 138 |
Given an empty IFC project |
| 139 |
And I add a cube |
| 140 |
And the object "Cube" is selected |
| 141 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 142 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 143 |
And I press "bim.assign_class" |
| 144 |
|
| 145 |
And I add an empty |
| 146 |
And the object "Empty" is selected |
| 147 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 148 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 149 |
And I press "bim.assign_class" |
| 150 |
|
| 151 |
And I press "bim.add_material()" |
| 152 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSet" |
| 153 |
And I press "bim.assign_material" |
| 154 |
|
| 155 |
And the object "IfcWall/Cube" is selected |
| 156 |
When the variable "type" is "{ifc}.by_type('IfcWallType')[0].id()" |
| 157 |
And I press "bim.assign_type(relating_type={type}, related_object='IfcWall/Cube')" |
| 158 |
|
| 159 |
Then the object "IfcWall/Cube" has a "100" thick layered material containing the material "Default" |
| 160 |
|
| 161 |
When I press "bim.unassign_material" |
| 162 |
Then the object "IfcWall/Cube" has no IFC materials |
| 163 |
|
| 164 |
Scenario: Enable editing assigned material - material layer set |
| 165 |
Given an empty IFC project |
| 166 |
And I add a cube |
| 167 |
And the object "Cube" is selected |
| 168 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 169 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 170 |
And I press "bim.assign_class" |
| 171 |
And I add an empty |
| 172 |
And the object "Empty" is selected |
| 173 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 174 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 175 |
And I press "bim.assign_class" |
| 176 |
And I press "bim.add_material()" |
| 177 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSet" |
| 178 |
And I press "bim.assign_material" |
| 179 |
When I press "bim.enable_editing_assigned_material" |
| 180 |
Then nothing happens |
| 181 |
|
| 182 |
Scenario: Disable editing assigned material - material layer set |
| 183 |
Given an empty IFC project |
| 184 |
And I add a cube |
| 185 |
And the object "Cube" is selected |
| 186 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 187 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 188 |
And I press "bim.assign_class" |
| 189 |
And I add an empty |
| 190 |
And the object "Empty" is selected |
| 191 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 192 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 193 |
And I press "bim.assign_class" |
| 194 |
And I press "bim.add_material()" |
| 195 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSet" |
| 196 |
And I press "bim.assign_material" |
| 197 |
And I press "bim.enable_editing_assigned_material" |
| 198 |
When I press "bim.disable_editing_assigned_material" |
| 199 |
Then nothing happens |
| 200 |
|
| 201 |
Scenario: Edit assigned material - material layer set |
| 202 |
Given an empty IFC project |
| 203 |
And I add a cube |
| 204 |
And the object "Cube" is selected |
| 205 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 206 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 207 |
And I press "bim.assign_class" |
| 208 |
And I add an empty |
| 209 |
And the object "Empty" is selected |
| 210 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 211 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 212 |
And I press "bim.assign_class" |
| 213 |
And I press "bim.add_material()" |
| 214 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSet" |
| 215 |
And I press "bim.assign_material" |
| 216 |
And I press "bim.enable_editing_assigned_material" |
| 217 |
And the variable "material_set" is "{ifc}.by_type('IfcMaterialLayerSet')[0].id()" |
| 218 |
When I press "bim.edit_assigned_material(material_set={material_set})" |
| 219 |
Then nothing happens |
| 220 |
|
| 221 |
Scenario: Assign material - material profile set |
| 222 |
Given an empty IFC project |
| 223 |
And I add an empty |
| 224 |
And the object "Empty" is selected |
| 225 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 226 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 227 |
And I press "bim.assign_class" |
| 228 |
And I press "bim.add_material()" |
| 229 |
When I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialProfileSet" |
| 230 |
And I press "bim.assign_material" |
| 231 |
Then the object "IfcWallType/Empty" does not have the material "Default" |
| 232 |
And the object "IfcWallType/Empty" has a profiled material containing the material "Default" and profile "New Profile" |
| 233 |
|
| 234 |
Scenario: Unassign material - material profile set |
| 235 |
Given an empty IFC project |
| 236 |
And I add an empty |
| 237 |
And the object "Empty" is selected |
| 238 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 239 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 240 |
And I press "bim.assign_class" |
| 241 |
And I press "bim.add_material()" |
| 242 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialProfileSet" |
| 243 |
And I press "bim.assign_material" |
| 244 |
When I press "bim.unassign_material" |
| 245 |
Then nothing happens |
| 246 |
|
| 247 |
Scenario: Enable editing assigned material - material profile set |
| 248 |
Given an empty IFC project |
| 249 |
And I add a cube |
| 250 |
And the object "Cube" is selected |
| 251 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 252 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 253 |
And I press "bim.assign_class" |
| 254 |
And I add an empty |
| 255 |
And the object "Empty" is selected |
| 256 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 257 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 258 |
And I press "bim.assign_class" |
| 259 |
And I press "bim.add_material()" |
| 260 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialProfileSet" |
| 261 |
And I press "bim.assign_material" |
| 262 |
When I press "bim.enable_editing_assigned_material" |
| 263 |
Then nothing happens |
| 264 |
|
| 265 |
Scenario: Disable editing assigned material - material profile set |
| 266 |
Given an empty IFC project |
| 267 |
And I add a cube |
| 268 |
And the object "Cube" is selected |
| 269 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 270 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 271 |
And I press "bim.assign_class" |
| 272 |
And I add an empty |
| 273 |
And the object "Empty" is selected |
| 274 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 275 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 276 |
And I press "bim.assign_class" |
| 277 |
And I press "bim.add_material()" |
| 278 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialProfileSet" |
| 279 |
And I press "bim.assign_material" |
| 280 |
And I press "bim.enable_editing_assigned_material" |
| 281 |
When I press "bim.disable_editing_assigned_material" |
| 282 |
Then nothing happens |
| 283 |
|
| 284 |
Scenario: Edit assigned material - material profile set |
| 285 |
Given an empty IFC project |
| 286 |
And I add a cube |
| 287 |
And the object "Cube" is selected |
| 288 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 289 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 290 |
And I press "bim.assign_class" |
| 291 |
And I add an empty |
| 292 |
And the object "Empty" is selected |
| 293 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 294 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 295 |
And I press "bim.assign_class" |
| 296 |
And I press "bim.add_material()" |
| 297 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialProfileSet" |
| 298 |
And I press "bim.assign_material" |
| 299 |
And I press "bim.enable_editing_assigned_material" |
| 300 |
And the variable "material_set" is "{ifc}.by_type('IfcMaterialProfileSet')[0].id()" |
| 301 |
When I press "bim.edit_assigned_material(material_set={material_set})" |
| 302 |
Then nothing happens |
| 303 |
|
| 304 |
Scenario: Assign material - material constituent set |
| 305 |
Given an empty IFC project |
| 306 |
And I add a cube |
| 307 |
And the object "Cube" is selected |
| 308 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 309 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 310 |
And I press "bim.assign_class" |
| 311 |
And I press "bim.add_material()" |
| 312 |
When I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialConstituentSet" |
| 313 |
And I press "bim.assign_material" |
| 314 |
Then nothing happens |
| 315 |
|
| 316 |
Scenario: Unassign material - material constituent set |
| 317 |
Given an empty IFC project |
| 318 |
And I add a cube |
| 319 |
And the object "Cube" is selected |
| 320 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 321 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 322 |
And I press "bim.assign_class" |
| 323 |
And I press "bim.add_material()" |
| 324 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialConstituentSet" |
| 325 |
And I press "bim.assign_material" |
| 326 |
When I press "bim.unassign_material" |
| 327 |
Then nothing happens |
| 328 |
|
| 329 |
Scenario: Enable editing assigned material - material constituent set |
| 330 |
Given an empty IFC project |
| 331 |
And I add a cube |
| 332 |
And the object "Cube" is selected |
| 333 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 334 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 335 |
And I press "bim.assign_class" |
| 336 |
And I press "bim.add_material()" |
| 337 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialConstituentSet" |
| 338 |
And I press "bim.assign_material" |
| 339 |
When I press "bim.enable_editing_assigned_material" |
| 340 |
Then nothing happens |
| 341 |
|
| 342 |
Scenario: Disable editing assigned material - material constituent set |
| 343 |
Given an empty IFC project |
| 344 |
And I add a cube |
| 345 |
And the object "Cube" is selected |
| 346 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 347 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 348 |
And I press "bim.assign_class" |
| 349 |
And I press "bim.add_material()" |
| 350 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialConstituentSet" |
| 351 |
And I press "bim.assign_material" |
| 352 |
And I press "bim.enable_editing_assigned_material" |
| 353 |
When I press "bim.disable_editing_assigned_material" |
| 354 |
Then nothing happens |
| 355 |
|
| 356 |
Scenario: Edit assigned material - material constituent set |
| 357 |
Given an empty IFC project |
| 358 |
And I add a cube |
| 359 |
And the object "Cube" is selected |
| 360 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 361 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 362 |
And I press "bim.assign_class" |
| 363 |
And I press "bim.add_material()" |
| 364 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialConstituentSet" |
| 365 |
And I press "bim.assign_material" |
| 366 |
And I press "bim.enable_editing_assigned_material" |
| 367 |
And the variable "material_set" is "{ifc}.by_type('IfcMaterialConstituentSet')[0].id()" |
| 368 |
When I press "bim.edit_assigned_material(material_set={material_set})" |
| 369 |
Then nothing happens |
| 370 |
|
| 371 |
Scenario: Select by material |
| 372 |
Given an empty IFC project |
| 373 |
And I press "bim.load_materials" |
| 374 |
And I press "bim.add_material()" |
| 375 |
And the variable "material" is "{ifc}.by_type('IfcMaterial')[0].id()" |
| 376 |
When I press "bim.select_by_material(material={material})" |
| 377 |
Then nothing happens |
| 378 |
|
| 379 |
Scenario: Expand material category |
| 380 |
Given an empty IFC project |
| 381 |
And I press "bim.load_materials" |
| 382 |
And I press "bim.add_material()" |
| 383 |
When I press "bim.expand_material_category(category='')" |
| 384 |
Then nothing happens |
| 385 |
|
| 386 |
Scenario: Contract material category |
| 387 |
Given an empty IFC project |
| 388 |
And I press "bim.load_materials" |
| 389 |
And I press "bim.add_material()" |
| 390 |
And I press "bim.expand_material_category(category='')" |
| 391 |
When I press "bim.contract_material_category(category='')" |
| 392 |
Then nothing happens |
| 393 |
|
| 394 |
Scenario: Enable editing material set item |
| 395 |
Given an empty IFC project |
| 396 |
And I load the demo construction library |
| 397 |
When I set "scene.BIMModelProperties.ifc_class" to "IfcColumnType" |
| 398 |
And I add the construction type |
| 399 |
And the variable "column" is "{ifc}.by_type('IfcColumn')[0].id()" |
| 400 |
And the object "IfcColumn/Column" is selected |
| 401 |
And the variable "column_type" is "{ifc}.by_id({column}).IsTypedBy[0].RelatingType.id()" |
| 402 |
And the variable "relating_material" is "{ifc}.by_id({column_type}).HasAssociations[0].RelatingMaterial.id()" |
| 403 |
And the variable "material_profile" is "{ifc}.by_id({column_type}).HasAssociations[0].RelatingMaterial.MaterialProfiles[0].id()" |
| 404 |
And I press "bim.enable_editing_assigned_material" |
| 405 |
When I press "bim.enable_editing_material_set_item(material_set_item={material_profile})" |
| 406 |
Then nothing happens |
| 407 |
|
| 408 |
Scenario: Add material set layer |
| 409 |
Given an empty IFC project |
| 410 |
And I add a cube |
| 411 |
And the object "Cube" is selected |
| 412 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 413 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 414 |
And I press "bim.assign_class" |
| 415 |
And I add an empty |
| 416 |
And the object "Empty" is selected |
| 417 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 418 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 419 |
And I press "bim.assign_class" |
| 420 |
And I press "bim.add_material()" |
| 421 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSet" |
| 422 |
And I press "bim.assign_material" |
| 423 |
And I press "bim.enable_editing_assigned_material" |
| 424 |
And the variable "material_set" is "{ifc}.by_type('IfcMaterialLayerSet')[0].id()" |
| 425 |
When I press "bim.add_layer(layer_set={material_set})" |
| 426 |
Then nothing happens |
| 427 |
|
| 428 |
Scenario: Remove material set layer |
| 429 |
Given an empty IFC project |
| 430 |
And I add a cube |
| 431 |
And the object "Cube" is selected |
| 432 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 433 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 434 |
And I press "bim.assign_class" |
| 435 |
|
| 436 |
And I add an empty |
| 437 |
And the object "Empty" is selected |
| 438 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType" |
| 439 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" |
| 440 |
And I press "bim.assign_class" |
| 441 |
|
| 442 |
And I press "bim.add_material()" |
| 443 |
And I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSet" |
| 444 |
And I press "bim.assign_material" |
| 445 |
|
| 446 |
And I press "bim.enable_editing_assigned_material" |
| 447 |
And the variable "material_set" is "{ifc}.by_type('IfcMaterialLayerSet')[0].id()" |
| 448 |
|
| 449 |
And I press "bim.add_layer(layer_set={material_set})" |
| 450 |
And I press "bim.remove_layer(layer={ifc}.by_id({material_set}).MaterialLayers[0].id())" |
| 451 |
Then I press "bim.remove_layer(layer={ifc}.by_id({material_set}).MaterialLayers[0].id())" and expect error "Error: At least one layer must exist" |