def Activated(self): for sel in FreeCADGui.Selection.getSelectionEx(): jobname = findParentJob(sel.Object).Name addToJob(FreeCAD.ActiveDocument.copyObject(sel.Object, False), jobname)
def Activated(self): obj = FreeCADGui.Selection.getSelectionEx()[0].Object jobname = findParentJob(obj).Name addToJob(FreeCAD.ActiveDocument.copyObject(obj, False), jobname)
def Activated(self): obj = FreeCADGui.Selection.getSelectionEx()[0].Object jobname = findParentJob(obj).Name addToJob(FreeCAD.ActiveDocument.copyObject(obj, False), jobname)