Copying an object / class now also copies pset and qtos

This commit is contained in:
Dion Moult
2021-08-10 11:48:38 +10:00
parent 1d42ce04eb
commit f393c5f1d2
2 changed files with 31 additions and 23 deletions
@@ -117,7 +117,10 @@ def copy(ifc_file, element):
for i, attribute in enumerate(element):
if attribute is None:
continue
new[i] = attribute
if new.attribute_name(i) == "GlobalId":
new[i] = ifcopenshell.guid.new()
else:
new[i] = attribute
return new