mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Minor fix
This commit is contained in:
@@ -49,7 +49,7 @@ Scenario: Add aggregate
|
|||||||
When I press "bim.add_aggregate"
|
When I press "bim.add_aggregate"
|
||||||
Then the object "IfcWall/Cube" is in the collection "IfcElementAssembly/Assembly"
|
Then the object "IfcWall/Cube" is in the collection "IfcElementAssembly/Assembly"
|
||||||
And the object "IfcElementAssembly/Assembly" is in the collection "IfcElementAssembly/Assembly"
|
And the object "IfcElementAssembly/Assembly" is in the collection "IfcElementAssembly/Assembly"
|
||||||
And the collection "IfcElementAssembly/Assembly" is in the collection "IfcProject/My Project"
|
And the collection "IfcElementAssembly/Assembly" is in the collection "IfcBuildingStorey/My Storey"
|
||||||
|
|
||||||
Scenario: Add aggregate - with the aggregate inheriting the existing spatial collection
|
Scenario: Add aggregate - with the aggregate inheriting the existing spatial collection
|
||||||
Given an empty IFC project
|
Given an empty IFC project
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ Scenario: Add representation
|
|||||||
And I press "bim.assign_class"
|
And I press "bim.assign_class"
|
||||||
And the object "IfcWall/Cube" is selected
|
And the object "IfcWall/Cube" is selected
|
||||||
Then the object "IfcWall/Cube" data is a "Tessellation" representation of "Model/Body/MODEL_VIEW"
|
Then the object "IfcWall/Cube" data is a "Tessellation" representation of "Model/Body/MODEL_VIEW"
|
||||||
When the variable "context" is "{ifc}.by_type('IfcGeometricRepresentationSubContext')[-1].id()"
|
When the variable "context" is "[c for c in {ifc}.by_type('IfcGeometricRepresentationSubContext') if c.TargetView == 'PLAN_VIEW'][0].id()"
|
||||||
And I set "scene.BIMRootProperties.contexts" to "{context}"
|
And I set "scene.BIMRootProperties.contexts" to "{context}"
|
||||||
And I press "bim.add_representation"
|
And I press "bim.add_representation"
|
||||||
Then the object "IfcWall/Cube" data is a "Annotation2D" representation of "Plan/Annotation/PLAN_VIEW"
|
Then the object "IfcWall/Cube" data is a "Annotation2D" representation of "Plan/Annotation/PLAN_VIEW"
|
||||||
@@ -36,7 +36,7 @@ Scenario: Add representation - add a new representation to a typed instance
|
|||||||
Then the object "IfcWall/Wall" data is a "Tessellation" representation of "Model/Body/MODEL_VIEW"
|
Then the object "IfcWall/Wall" data is a "Tessellation" representation of "Model/Body/MODEL_VIEW"
|
||||||
And the object "IfcWall/Wall.001" data is a "Tessellation" representation of "Model/Body/MODEL_VIEW"
|
And the object "IfcWall/Wall.001" data is a "Tessellation" representation of "Model/Body/MODEL_VIEW"
|
||||||
When the object "IfcWall/Wall" is selected
|
When the object "IfcWall/Wall" is selected
|
||||||
And the variable "context" is "{ifc}.by_type('IfcGeometricRepresentationSubContext')[-1].id()"
|
And the variable "context" is "[c for c in {ifc}.by_type('IfcGeometricRepresentationSubContext') if c.TargetView == 'PLAN_VIEW'][0].id()"
|
||||||
And I set "scene.BIMRootProperties.contexts" to "{context}"
|
And I set "scene.BIMRootProperties.contexts" to "{context}"
|
||||||
And I press "bim.add_representation"
|
And I press "bim.add_representation"
|
||||||
Then the object "IfcWall/Wall" data is a "Annotation2D" representation of "Plan/Annotation/PLAN_VIEW"
|
Then the object "IfcWall/Wall" data is a "Annotation2D" representation of "Plan/Annotation/PLAN_VIEW"
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ Scenario: Add type instance - add a mesh where existing instances have changed c
|
|||||||
And I press "bim.add_type_instance"
|
And I press "bim.add_type_instance"
|
||||||
And the object "IfcWall/Wall" data is a "Tessellation" representation of "Model/Body/MODEL_VIEW"
|
And the object "IfcWall/Wall" data is a "Tessellation" representation of "Model/Body/MODEL_VIEW"
|
||||||
And the object "IfcWall/Wall" is selected
|
And the object "IfcWall/Wall" is selected
|
||||||
And the variable "context" is "{ifc}.by_type('IfcGeometricRepresentationSubContext')[-1].id()"
|
And the variable "context" is "[c for c in {ifc}.by_type('IfcGeometricRepresentationSubContext') if c.TargetView == 'PLAN_VIEW'][0].id()"
|
||||||
And I set "scene.BIMRootProperties.contexts" to "{context}"
|
And I set "scene.BIMRootProperties.contexts" to "{context}"
|
||||||
And I press "bim.add_representation"
|
And I press "bim.add_representation"
|
||||||
And the object "IfcWall/Wall" data is a "Annotation2D" representation of "Plan/Annotation/PLAN_VIEW"
|
And the object "IfcWall/Wall" data is a "Annotation2D" representation of "Plan/Annotation/PLAN_VIEW"
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ Scenario: Assign a class to a cube
|
|||||||
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
||||||
And I press "bim.assign_class"
|
And I press "bim.assign_class"
|
||||||
Then the object "IfcWall/Cube" is an "IfcWall"
|
Then the object "IfcWall/Cube" is an "IfcWall"
|
||||||
And the object "IfcWall/Cube" is in the collection "IfcProject/My Project"
|
And the object "IfcWall/Cube" is in the collection "IfcBuildingStorey/My Storey"
|
||||||
And the object "IfcWall/Cube" has a "Tessellation" representation of "Model/Body/MODEL_VIEW"
|
And the object "IfcWall/Cube" has a "Tessellation" representation of "Model/Body/MODEL_VIEW"
|
||||||
|
|
||||||
Scenario: Assign a type class to a cube
|
Scenario: Assign a type class to a cube
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ class TestGetSurfaceRenderingAttributes(NewFile):
|
|||||||
"Green": 0.5,
|
"Green": 0.5,
|
||||||
"Blue": 0.5,
|
"Blue": 0.5,
|
||||||
},
|
},
|
||||||
|
"SpecularColour": 0.0,
|
||||||
"SpecularHighlight": {"IfcSpecularRoughness": 0.2},
|
"SpecularHighlight": {"IfcSpecularRoughness": 0.2},
|
||||||
"ReflectanceMethod": "NOTDEFINED",
|
"ReflectanceMethod": "NOTDEFINED",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user