Ejemplo n.º 1
0
 def Activated(self):
     dialog = PathJobDlg.JobCreate()
     dialog.setupTemplate()
     dialog.setupModel()
     if dialog.exec_() == 1:
         models = dialog.getModels()
         if models:
             self.Execute(models, dialog.getTemplate())
             FreeCAD.ActiveDocument.recompute()
Ejemplo n.º 2
0
 def Activated(self):
     job = self.GetJob()
     dialog = PathJobDlg.JobTemplateExport(job)
     if dialog.exec_() == 1:
         self.SaveDialog(job, dialog)