def show_results_on_mesh(self):
     # FIXME proprer mesh refreshing as per FreeCAD.FEM_dialog settings required
     # or confirmation that it's safe to call restore_result_dialog
     # FIXME if an analysis has multiple results (frequence) the first result object found is restored
     import _TaskPanelShowResult
     tp = _TaskPanelShowResult._TaskPanelShowResult()
     tp.restore_result_dialog()
Beispiel #2
0
    def Activated(self):
        self.result_object = get_results_object(FreeCADGui.Selection.getSelection())

        if not self.result_object:
            QtGui.QMessageBox.critical(None, "Missing prerequisite", "No result found in active Analysis")
            return

        self.hide_parts_constraints_show_meshes()

        import _TaskPanelShowResult
        taskd = _TaskPanelShowResult._TaskPanelShowResult()
        FreeCADGui.Control.showDialog(taskd)
    def Activated(self):
        self.result_object = get_results_object(FreeCADGui.Selection.getSelection())

        if not self.result_object:
            QtGui.QMessageBox.critical(None, "Missing prerequisite", "No result found in active Analysis")
            return

        self.hide_parts_constraints_show_meshes()

        import _TaskPanelShowResult
        taskd = _TaskPanelShowResult._TaskPanelShowResult()
        FreeCADGui.Control.showDialog(taskd)
 def setEdit(self, vobj, mode=0):
     import _TaskPanelShowResult
     taskd = _TaskPanelShowResult._TaskPanelShowResult(self.Object)
     taskd.obj = vobj.Object
     FreeCADGui.Control.showDialog(taskd)
     return True