Debian Codegraph @

src/bonsai/test/bim/feature/covering.feature

raw
1 @covering
2 Feature: Covering
3 Covers covering tool.
4
5 Scenario: Execute generate flooring coverings from walls
6 Given an empty IFC project
7 And I load the demo construction library
8 And I set "scene.BIMModelProperties.ifc_class" to "IfcWallType"
9 And the variable "element_type" is "[e for e in {ifc}.by_type('IfcWallType') if e.Name == 'WAL100'][0].id()"
10 And I set "scene.BIMModelProperties.relating_type_id" to "{element_type}"
11 # 1st wall
12 And I press "bim.add_occurrence"
13 And the object "IfcWall/Wall" is selected
14 And I press "bim.change_layer_length(length=3.6)"
15 # 2nd wall
16 And the cursor is at "3.6,0.1,3"
17 And I set "scene.BIMModelProperties.length" to "2.0"
18 And I press "bim.add_occurrence"
19 # 3rd wall
20 And the cursor is at "3.5,2.1,3"
21 And I set "scene.BIMModelProperties.length" to "3.5"
22 And I press "bim.add_occurrence"
23 # 4th wall
24 And the cursor is at "0,2.0,0"
25 And I set "scene.BIMModelProperties.length" to "1.9"
26 And I press "bim.add_occurrence"
27 # add_instance_flooring_coverings_from_walls is expecting FLOORING predefined type.
28 And the object "IfcCoveringType/COV30" is selected
29 And I look at the "Attributes" panel
30 And I click "Edit"
31 And I set the "PredefinedType" property to "FLOORING"
32 And I click "Save Attributes"
33 # Run the operator.
34 When the object "IfcWall/Wall" is selected
35 And additionally the object "IfcWall/Wall.001" is selected
36 And additionally the object "IfcWall/Wall.002" is selected
37 And additionally the object "IfcWall/Wall.003" is selected
38 And I set "scene.BIMModelProperties.ifc_class" to "IfcCoveringType"
39 And the variable "element_type" is "[e for e in {ifc}.by_type('IfcCoveringType') if e.Name == 'COV30'][0].id()"
40 And I set "scene.BIMModelProperties.relating_type_id" to "{element_type}"
41 And I press "bim.add_instance_flooring_coverings_from_walls"
42 Then the object "IfcCovering/Covering0" exists
43 And the object "IfcCovering/Covering0" is at "1.8,1.05,0.0"
44 And the object "IfcCovering/Covering0" dimensions are "3.4,1.9,0.03"