refactor create spaces from walls

This commit is contained in:
Massimo Fabbro
2023-09-27 21:43:42 +02:00
parent e10b5f6f44
commit fee390c7ed
5 changed files with 49 additions and 55 deletions
@@ -21,13 +21,9 @@ Scenario: Assign container
Given an empty IFC project
And I add a cube
And the object "Cube" is selected
<<<<<<< HEAD
And I press "bim.assign_class(ifc_class='IfcWall', predefined_type='SOLIDWALL')"
=======
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
And I press "bim.assign_class"
>>>>>>> b2f95bfa6 (change tests due to new class assignment workflow ref commit 808ff54)
And the object "IfcWall/Cube" is selected
And I press "bim.enable_editing_container"
And the variable "site" is "tool.Ifc.get().by_type('IfcSite')[0].id()"
@@ -120,17 +116,6 @@ Scenario: Execute generate spaces from walls
When I press "bim.generate_spaces_from_walls"
Then nothing happens
Scenario: Execute generate flooring coverings from walls
Given an empty IFC project
And I load the demo construction library
And I set "scene.BIMModelProperties.ifc_class" to "IfcWallType"
And the variable "element_type" is "[e for e in {ifc}.by_type('IfcWallType') if e.Name == 'WAL100'][0].id()"
And I set "scene.BIMModelProperties.relating_type_id" to "{element_type}"
And I press "bim.add_constr_type_instance"
And the object "IfcWall/Wall" is selected
When I press "bim.generate_flooring_coverings_from_walls"
Then nothing happens
Scenario: Execute toggle space visibility
Given an empty IFC project
And I add a cube