mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +00:00
New feature to select all objects in same container
This commit is contained in:
@@ -103,3 +103,13 @@ class TestSelectContainer:
|
||||
ifc.get_object("container").should_be_called().will_return("container_obj")
|
||||
spatial.set_active_object("container_obj").should_be_called()
|
||||
subject.select_container(ifc, spatial, obj="obj")
|
||||
|
||||
|
||||
class TestSelectSimilarContainer:
|
||||
def test_run(self, ifc, spatial):
|
||||
ifc.get_entity("obj").should_be_called().will_return("element")
|
||||
spatial.get_container("element").should_be_called().will_return("container")
|
||||
spatial.get_decomposed_elements("container").should_be_called().will_return(["contained_element"])
|
||||
ifc.get_object("contained_element").should_be_called().will_return("contained_obj")
|
||||
spatial.select_object("contained_obj").should_be_called()
|
||||
subject.select_similar_container(ifc, spatial, obj="obj")
|
||||
|
||||
Reference in New Issue
Block a user