Construction Type Browser, polishing of 2nd iteration (#2336)

* Polish a bit the type browser UI

* Remove SELECT from type browser

* model and geometry module tests fixed

* Polishing of type authoring layout redesign

* Further polishing of type authoring layout
This commit is contained in:
Carlos Villagrasa
2022-08-10 13:23:13 +02:00
committed by GitHub
parent fa8fc161da
commit 4e5503002a
5 changed files with 16 additions and 29 deletions
+4 -10
View File
@@ -51,9 +51,7 @@ Scenario: Add type instance - add a mesh where existing instances have changed c
Scenario: Preview one type on the Construction Type Browser
Given an empty IFC project
And I load the demo construction library
When I display the construction type browser
And I preview only one asset on the construction type browser
And I set "scene.BIMModelProperties.ifc_class" to "IfcColumnType"
When I set "scene.BIMModelProperties.ifc_class" to "IfcColumnType"
And I set "scene.BIMModelProperties.relating_type" to "DEMO2"
Then construction type is DEMO2
And objects starting with "IfcColumn/" do not exist
@@ -63,18 +61,14 @@ Scenario: Preview one class on the construction type browser
Given an empty IFC project
And I load the demo construction library
When I display the construction type browser
And I preview all available assets on the construction type browser
And I set "scene.BIMModelProperties.ifc_class" to "IfcWallType"
Then "scene.BIMModelProperties.ifc_class" is "IfcWallType"
And objects starting with "IfcWall/" do not exist
And I set "scene.BIMModelProperties.ifc_class_browser" to "IfcWallType"
Then objects starting with "IfcWall/" do not exist
And all construction types for "IfcWallType" have a preview
Scenario: Add one type from the Construction Type Browser
Given an empty IFC project
And I load the demo construction library
When I display the construction type browser
And I preview only one asset on the construction type browser
And I set "scene.BIMModelProperties.ifc_class" to "IfcColumnType"
When I set "scene.BIMModelProperties.ifc_class" to "IfcColumnType"
And I set "scene.BIMModelProperties.relating_type" to "DEMO2"
And I add the construction type
Then the object "IfcColumn/Column" exists
-12
View File
@@ -629,18 +629,6 @@ def i_display_the_construction_type_browser():
bpy.ops.bim.display_constr_types("INVOKE_DEFAULT")
@given("I preview only one asset on the construction type browser")
@when("I preview only one asset on the construction type browser")
def i_preview_one_construction_type():
bpy.context.scene.BIMModelProperties.unfold_relating_types = False
@given("I preview all available assets on the construction type browser")
@when("I preview all available assets on the construction type browser")
def i_preview_all_construction_types():
bpy.context.scene.BIMModelProperties.unfold_relating_types = True
@given("I add the construction type")
@when("I add the construction type")
def i_add_the_active_construction_type():