mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Copying an object / class now also copies pset and qtos
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user