small tweak to b8a9674483 - duplicate profile has '_copy' suffix.

This commit is contained in:
Ryan Schultz
2024-04-23 07:42:02 -05:00
parent 998f9c6a1e
commit ae62ac2777
+3 -1
View File
@@ -79,4 +79,6 @@ class Profile(blenderbim.core.tool.Profile):
@classmethod
def duplicate_profile(cls, profile: ifcopenshell.entity_instance) -> ifcopenshell.entity_instance:
return ifcopenshell.util.element.copy_deep(tool.Ifc.get(), profile)
new_profile = ifcopenshell.util.element.copy_deep(tool.Ifc.get(), profile)
new_profile.ProfileName = profile.ProfileName + "_copy"
return new_profile