Fix bug where you couldn't filter imported subelements without also selecting their parents

This commit is contained in:
Dion Moult
2021-10-14 18:47:48 +11:00
parent 199be3363f
commit 68fd0c0cf5
4 changed files with 7 additions and 1 deletions
@@ -23,6 +23,7 @@ class TestCopyClass(test.bootstrap.IFC4):
new = ifcopenshell.api.run("root.copy_class", self.file, product=element)
assert subelement.ObjectPlacement.PlacementRelTo == element.ObjectPlacement
assert subelement.ObjectPlacement.PlacementRelTo != new.ObjectPlacement
assert element.ObjectPlacement.RelativePlacement != new.ObjectPlacement.RelativePlacement
def test_copying_psets_so_changing_properties_of_the_new_element_does_not_affect_the_old(self):
element = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcWall")