You can now copy a representation from one object to another

This commit is contained in:
Dion Moult
2021-10-15 13:21:31 +11:00
parent d666a687dc
commit 07bfe296dd
5 changed files with 49 additions and 15 deletions
@@ -1,6 +1,5 @@
@geometry
Feature: Geometry
Covers geometry and coordinate manipulation
Scenario: Edit object placement
Given an empty IFC project
@@ -11,3 +10,17 @@ Scenario: Edit object placement
And the object "IfcWall/Cube" is selected
When I press "bim.edit_object_placement"
Then nothing happens
Scenario: Copy representation
Given an empty IFC project
And I add a cube
And the object "Cube" is selected
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
And I press "bim.assign_class"
And I add a cube
And the object "Cube" is selected
And I press "bim.assign_class"
And the object "IfcWall/Cube" is selected
And additionally the object "IfcWall/Cube.001" is selected
When I press "bim.copy_representation"
Then nothing happens
+1
View File
@@ -105,6 +105,7 @@ def the_object_name_is_selected(name):
additionally_the_object_name_is_selected(name)
@given(parsers.parse('additionally the object "{name}" is selected'))
@when(parsers.parse('additionally the object "{name}" is selected'))
def additionally_the_object_name_is_selected(name):
obj = bpy.context.scene.objects.get(name)