mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
small tweak to b8a9674483 - duplicate profile has '_copy' suffix.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user