| 1 |
@qto |
| 2 |
Feature: Qto |
| 3 |
|
| 4 |
Scenario: Calculate circle radius |
| 5 |
Given an empty Blender session |
| 6 |
And I add a cube |
| 7 |
And the object "Cube" is selected |
| 8 |
And I look at the "Simple Quantity Calculator" panel |
| 9 |
When I click "Calculate Circle Radius" |
| 10 |
Then I see the "Results" property is "1.732" |
| 11 |
|
| 12 |
Scenario: Calculate edge lengths |
| 13 |
Given an empty Blender session |
| 14 |
And I add a cube |
| 15 |
And the object "Cube" is selected |
| 16 |
And I look at the "Simple Quantity Calculator" panel |
| 17 |
When I click "Calculate Edge Lengths" |
| 18 |
Then I see the "Results" property is "24.0" |
| 19 |
|
| 20 |
Scenario: Calculate face areas |
| 21 |
Given an empty Blender session |
| 22 |
And I add a cube |
| 23 |
And the object "Cube" is selected |
| 24 |
And I look at the "Simple Quantity Calculator" panel |
| 25 |
When I click "Calculate Face Areas" |
| 26 |
Then I see the "Results" property is "24.0" |
| 27 |
|
| 28 |
Scenario: Calculate object volumes |
| 29 |
Given an empty Blender session |
| 30 |
And I add a cube |
| 31 |
And the object "Cube" is selected |
| 32 |
And I look at the "Simple Quantity Calculator" panel |
| 33 |
When I click "Calculate Object Volumes" |
| 34 |
Then I see the "Results" property is "8.0" |
| 35 |
|
| 36 |
Scenario: Execute qto method - formwork areas |
| 37 |
Given an empty Blender session |
| 38 |
And I add a cube |
| 39 |
And I add a cube of size "1" at "1,0,0" |
| 40 |
And the object "Cube" is selected |
| 41 |
And additionally the object "Cube.001" is selected |
| 42 |
When I press "bim.calculate_formwork_area" |
| 43 |
Then "scene.BIMQtoProperties.qto_result" is "21.5" |
| 44 |
|
| 45 |
Scenario: Execute qto method - side formwork areas |
| 46 |
Given an empty Blender session |
| 47 |
And I add a cube |
| 48 |
And the object "Cube" is selected |
| 49 |
When I press "bim.calculate_side_formwork_area" |
| 50 |
Then "scene.BIMQtoProperties.qto_result" is "16.0" |
| 51 |
|
| 52 |
Scenario: Perform quantity take-off - no objects |
| 53 |
Given an empty IFC project |
| 54 |
When I look at the "Quantity Take-off" panel |
| 55 |
Then I see "Quantifying All Objects" |
| 56 |
When I click "Perform Quantity Take-off" |
| 57 |
Then nothing happens |
| 58 |
|
| 59 |
Scenario: Perform quantity take-off |
| 60 |
Given an empty IFC project |
| 61 |
And I add a cube |
| 62 |
And the object "Cube" is selected |
| 63 |
And I look at the "Class" panel |
| 64 |
And I set the "Products" property to "IfcElement" |
| 65 |
And I set the "Class" property to "IfcWall" |
| 66 |
And I click "Assign IFC Class" |
| 67 |
And I look at the "Quantity Take-off" panel |
| 68 |
When I see "Quantifying 1 Selected Objects" |
| 69 |
And I click "Perform Quantity Take-off" |
| 70 |
When I look at the "Quantity Sets" panel |
| 71 |
Then I see "Qto_WallBaseQuantities" |
| 72 |
And I see "NetVolume" |
| 73 |
|
| 74 |
Scenario: Perform quantity take-off - using Blender engine |
| 75 |
Given an empty IFC project |
| 76 |
And I add a cube |
| 77 |
And the object "Cube" is selected |
| 78 |
And I look at the "Class" panel |
| 79 |
And I set the "Products" property to "IfcElement" |
| 80 |
And I set the "Class" property to "IfcWall" |
| 81 |
And I click "Assign IFC Class" |
| 82 |
And I look at the "Quantity Take-off" panel |
| 83 |
When I set the "qto_rule" property to "IFC4 Base Quantities - Blender" |
| 84 |
And I see "Quantifying 1 Selected Objects" |
| 85 |
And I click "Perform Quantity Take-off" |
| 86 |
When I look at the "Quantity Sets" panel |
| 87 |
Then I see "Qto_WallBaseQuantities" |
| 88 |
And I see "NetVolume" |
| 89 |
|
| 90 |
Scenario: Manual quantification |
| 91 |
Given an empty IFC project |
| 92 |
And I add a cube |
| 93 |
And the object "Cube" is selected |
| 94 |
And I look at the "Class" panel |
| 95 |
And I set the "Products" property to "IfcElement" |
| 96 |
And I set the "Class" property to "IfcWall" |
| 97 |
And I click "Assign IFC Class" |
| 98 |
And I look at the "Manual Quantification" panel |
| 99 |
When I set the "qto_name" property to "Foo" |
| 100 |
And I set the "prop_name" property to "Bar" |
| 101 |
And I click "Calculate Single Quantity" |
| 102 |
When I look at the "Quantity Sets" panel |
| 103 |
Then I see "Foo" |
| 104 |
And I see "Bar" |
| 105 |
|
| 106 |
Scenario: Manual quantification - set an engine and function |
| 107 |
Given an empty IFC project |
| 108 |
And I add a cube |
| 109 |
And the object "Cube" is selected |
| 110 |
And I look at the "Class" panel |
| 111 |
And I set the "Products" property to "IfcElement" |
| 112 |
And I set the "Class" property to "IfcWall" |
| 113 |
And I click "Assign IFC Class" |
| 114 |
And I look at the "Manual Quantification" panel |
| 115 |
And I set the "Calculator" property to "IfcOpenShell" |
| 116 |
And I set the "Function" property to "Volume: Net Volume" |
| 117 |
When I set the "qto_name" property to "Foo" |
| 118 |
And I set the "prop_name" property to "Bar" |
| 119 |
And I click "Calculate Single Quantity" |
| 120 |
When I look at the "Quantity Sets" panel |
| 121 |
Then I see "Foo" |
| 122 |
And I see "Bar" |