Arch: Added right-click option to BuildingParts to clone level and contents

This commit is contained in:
Yorik van Havre
2019-04-18 19:10:35 -03:00
parent 612f5206c1
commit fbdeb442db
3 changed files with 39 additions and 5 deletions

View File

@@ -2587,6 +2587,8 @@ def clone(obj,delta=None,forcedraft=False):
elif len(obj) == 1:
cl.Placement = obj[0].Placement
formatObject(cl,obj[0])
if hasattr(cl,"LongName") and hasattr(obj[0],"LongName"):
cl.LongName = obj[0].LongName
if gui and (len(obj) > 1):
cl.ViewObject.Proxy.resetColors(cl.ViewObject)
select(cl)