mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
fix materials / styles bim tests #4843
This commit is contained in:
@@ -20,15 +20,20 @@ Scenario: Unlink object
|
||||
Given an empty IFC project
|
||||
And I add a cube
|
||||
And the object "Cube" is selected
|
||||
And I add a material
|
||||
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
|
||||
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
||||
And I press "bim.assign_class"
|
||||
And I press "bim.add_style()"
|
||||
And I press "bim.load_styles(style_type='IfcSurfaceStyle')"
|
||||
And I press "bim.enable_adding_presentation_style"
|
||||
And I set "scene.BIMStylesProperties.style_name" to "Style"
|
||||
And I press "bim.add_presentation_style"
|
||||
And the object "IfcWall/Cube" is selected
|
||||
And the variable "style" is "{ifc}.by_type('IfcSurfaceStyle')[0].id()"
|
||||
And I press "bim.assign_style_to_selected(style_id={style})"
|
||||
When I press "bim.unlink_object(obj='IfcWall/Cube')"
|
||||
Then the object "Cube" is not an IFC element
|
||||
And the material "Material" is an IFC style
|
||||
And the material "Material.001" is not an IFC style
|
||||
And the material "Style" is an IFC style
|
||||
And the material "Style.001" is not an IFC style
|
||||
|
||||
Scenario: Copy class
|
||||
Given an empty IFC project
|
||||
|
||||
Reference in New Issue
Block a user