mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
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:
committed by
GitHub
parent
fa8fc161da
commit
4e5503002a
@@ -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
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user