mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 05:46:51 +00:00
#2094. You can now add material sets independently of IFC objects in the material manager
This commit is contained in:
@@ -3,20 +3,33 @@ Feature: Material
|
||||
|
||||
Scenario: Load materials
|
||||
Given an empty IFC project
|
||||
And I press "bim.add_default_material"
|
||||
And I press "bim.add_material(obj='')"
|
||||
When I press "bim.load_materials"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Disable editing materials
|
||||
Given an empty IFC project
|
||||
And I press "bim.add_default_material"
|
||||
And I press "bim.add_material(obj='')"
|
||||
And I press "bim.load_materials"
|
||||
When I press "bim.disable_editing_materials"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Load materials - then add material
|
||||
Given an empty IFC project
|
||||
And I press "bim.load_materials"
|
||||
When I press "bim.add_material(obj='')"
|
||||
Then the material "Default" exists
|
||||
|
||||
Scenario: Load materials - then add material set
|
||||
Given an empty IFC project
|
||||
And I set "scene.BIMMaterialProperties.material_type" to "IfcMaterialLayerSet"
|
||||
And I press "bim.load_materials"
|
||||
When I press "bim.add_material_set(set_type='IfcMaterialLayerSet')"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Add default material
|
||||
Given an empty IFC project
|
||||
When I press "bim.add_default_material"
|
||||
When I press "bim.add_material(obj='')"
|
||||
Then the material "Default" exists
|
||||
|
||||
Scenario: Add material
|
||||
@@ -24,7 +37,7 @@ Scenario: Add material
|
||||
And I add a cube
|
||||
And the object "Cube" is selected
|
||||
And I add a material
|
||||
When I press "bim.add_material"
|
||||
When I press "bim.add_material(obj='Material')"
|
||||
Then the material "Material" is an IFC material
|
||||
|
||||
Scenario: Remove material
|
||||
@@ -32,7 +45,7 @@ Scenario: Remove material
|
||||
And I add a cube
|
||||
And the object "Cube" is selected
|
||||
And I add a material
|
||||
And I press "bim.add_material"
|
||||
And I press "bim.add_material(obj='Material')"
|
||||
When I press "bim.remove_material"
|
||||
Then the material "Material" is not an IFC material
|
||||
|
||||
@@ -41,7 +54,7 @@ Scenario: Unlink material
|
||||
And I add a cube
|
||||
And the object "Cube" is selected
|
||||
And I add a material
|
||||
And I press "bim.add_material"
|
||||
And I press "bim.add_material(obj='Material')"
|
||||
When I press "bim.unlink_material"
|
||||
Then the material "Material" is not an IFC material
|
||||
|
||||
@@ -51,7 +64,7 @@ Scenario: Assign material - Assign a material
|
||||
And the object "Cube" is selected
|
||||
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
||||
And I press "bim.assign_class"
|
||||
And I press "bim.add_default_material"
|
||||
And I press "bim.add_material(obj='')"
|
||||
When I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterial"
|
||||
And I press "bim.assign_material"
|
||||
Then the object "IfcWall/Cube" has the material "Default"
|
||||
@@ -67,7 +80,7 @@ Scenario: Assign material - Assign a material layer set
|
||||
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType"
|
||||
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType"
|
||||
And I press "bim.assign_class"
|
||||
And I press "bim.add_default_material"
|
||||
And I press "bim.add_material(obj='')"
|
||||
When I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSet"
|
||||
And I press "bim.assign_material"
|
||||
Then nothing happens
|
||||
@@ -83,7 +96,7 @@ Scenario: Assign material - Assign a material profile set
|
||||
And I set "scene.BIMRootProperties.ifc_product" to "IfcElementType"
|
||||
And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType"
|
||||
And I press "bim.assign_class"
|
||||
And I press "bim.add_default_material"
|
||||
And I press "bim.add_material(obj='')"
|
||||
When I set "active_object.BIMObjectMaterialProperties.material_type" to "IfcMaterialProfileSet"
|
||||
And I press "bim.assign_material"
|
||||
Then nothing happens
|
||||
|
||||
Reference in New Issue
Block a user