mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 19:30:25 +00:00
You can now copy a representation from one object to another
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user