Fix #2520. You can now duplicate drawings with or without annotations.

This commit is contained in:
Dion Moult
2023-02-08 21:16:54 +11:00
parent f118c50d1d
commit 93d0ffd459
6 changed files with 44 additions and 16 deletions
+2 -2
View File
@@ -32,13 +32,13 @@ class TestImplementsTool(NewFile):
assert isinstance(subject(), blenderbim.core.tool.Drawing)
class TestCopyDrawingRepresentation(NewFile):
class TestCopyRepresentation(NewFile):
def test_run(self):
ifc = ifcopenshell.file()
tool.Ifc.set(ifc)
source = ifc.createIfcAnnotation(Representation=ifc.createIfcProductDefinitionShape())
dest = ifc.createIfcAnnotation()
subject.copy_drawing_representation(source, dest)
subject.copy_representation(source, dest)
assert dest.Representation.is_a("IfcProductDefinitionShape")