| 1 |
@aggregate |
| 2 |
Feature: Aggregate |
| 3 |
Covers element and spatial aggregation |
| 4 |
|
| 5 |
Scenario: Enable editing aggregate |
| 6 |
Given an empty IFC project |
| 7 |
And the object "IfcSite/My Site" is selected |
| 8 |
When I press "bim.enable_editing_aggregate" |
| 9 |
Then nothing happens |
| 10 |
|
| 11 |
Scenario: Disable editing aggregate |
| 12 |
Given an empty IFC project |
| 13 |
And the object "IfcSite/My Site" is selected |
| 14 |
And I press "bim.enable_editing_aggregate" |
| 15 |
When I press "bim.disable_editing_aggregate" |
| 16 |
Then nothing happens |
| 17 |
|
| 18 |
Scenario: Assign object |
| 19 |
Given an empty IFC project |
| 20 |
And the object "IfcSite/My Site" is selected |
| 21 |
And the object "IfcBuildingStorey/My Storey" is selected |
| 22 |
And I press "bim.enable_editing_aggregate" |
| 23 |
And the variable "relating_object" is "tool.Ifc.get().by_type('IfcSite')[0].id()" |
| 24 |
When I press "bim.aggregate_assign_object(relating_object={relating_object})" |
| 25 |
Then the object "IfcBuildingStorey/My Storey" is aggregated by object "IfcSite/My Site" |
| 26 |
|
| 27 |
Scenario: Unassign object |
| 28 |
Given an empty IFC project |
| 29 |
And the object "IfcBuildingStorey/My Storey" is selected |
| 30 |
And I press "bim.enable_editing_aggregate" |
| 31 |
And the variable "relating_object" is "tool.Ifc.get().by_type('IfcSite')[0].id()" |
| 32 |
And I press "bim.aggregate_assign_object(relating_object={relating_object})" |
| 33 |
And the object "IfcBuildingStorey/My Storey" is selected |
| 34 |
When I press "bim.aggregate_unassign_object" |
| 35 |
Then the object "IfcBuildingStorey/My Storey" has no aggregate |
| 36 |
|
| 37 |
Scenario: Add aggregate |
| 38 |
Given an empty IFC project |
| 39 |
And I add a cube |
| 40 |
And the object "Cube" is selected |
| 41 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 42 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 43 |
And I press "bim.assign_class" |
| 44 |
And the object "IfcWall/Cube" is selected |
| 45 |
When I press "bim.add_aggregate" |
| 46 |
Then the object "IfcElementAssembly/Default_Name" exists |
| 47 |
And the object "IfcWall/Cube" is aggregated by object "IfcElementAssembly/Default_Name" |
| 48 |
And the object "IfcElementAssembly/Default_Name" is contained in object "IfcBuildingStorey/My Storey" |
| 49 |
|
| 50 |
Scenario: Add aggregate - add a nested aggregate |
| 51 |
Given an empty IFC project |
| 52 |
And I add a cube |
| 53 |
And the object "Cube" is selected |
| 54 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 55 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall" |
| 56 |
And I press "bim.assign_class" |
| 57 |
And the object "IfcWall/Cube" is selected |
| 58 |
When I press "bim.add_aggregate" |
| 59 |
And the object "IfcWall/Cube" is selected |
| 60 |
And I press "bim.add_aggregate(aggregate_name='Default_Name2')" |
| 61 |
Then the object "IfcElementAssembly/Default_Name" exists |
| 62 |
And the object "IfcElementAssembly/Default_Name" is contained in object "IfcBuildingStorey/My Storey" |
| 63 |
And the object "IfcElementAssembly/Default_Name2" exists |
| 64 |
And the object "IfcWall/Cube" is aggregated by object "IfcElementAssembly/Default_Name2" |
| 65 |
And the object "IfcElementAssembly/Default_Name2" is aggregated by object "IfcElementAssembly/Default_Name" |
| 66 |
|
| 67 |
Scenario: Add aggregate - add multiple elements to a custom aggregate class |
| 68 |
Given an empty IFC project |
| 69 |
And I add a cube |
| 70 |
And the object "Cube" is selected |
| 71 |
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" |
| 72 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcMember" |
| 73 |
And I press "bim.assign_class" |
| 74 |
And I add a cube |
| 75 |
And the object "Cube" is selected |
| 76 |
And I set "scene.BIMRootProperties.ifc_class" to "IfcCovering" |
| 77 |
And I press "bim.assign_class" |
| 78 |
And the object "IfcMember/Cube" is selected |
| 79 |
And additionally the object "IfcCovering/Cube" is selected |
| 80 |
When I press "bim.add_aggregate(ifc_class='IfcWall', aggregate_name='Assembly')" |
| 81 |
Then the object "IfcMember/Cube" is aggregated by object "IfcWall/Assembly" |
| 82 |
And the object "IfcCovering/Cube" is aggregated by object "IfcWall/Assembly" |
| 83 |
And the object "IfcWall/Assembly" is contained in object "IfcBuildingStorey/My Storey" |