Again some fixes
This commit is contained in:
@@ -176,6 +176,7 @@ class MachiningDistortionWorkbench ( Workbench ):
|
||||
self.setWatchers()
|
||||
FreeCADGui.Control.showTaskView()
|
||||
Msg("MachiningDistortionWorkbench::Activated()\n")
|
||||
|
||||
def Deactivated(self):
|
||||
Msg("MachiningDistortionWorkbench::Deactivated()\n")
|
||||
|
||||
|
||||
@@ -39,9 +39,9 @@ class _CommandAlignment:
|
||||
"the MachDist Alignment command definition"
|
||||
def GetResources(self):
|
||||
return {'Pixmap' : 'MachDist_Align',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Machine-Distortion Alignment"),
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Part Alignment"),
|
||||
'Accel': "A",
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Machine-Distortion Alignment")}
|
||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Part Alignment")}
|
||||
|
||||
def Activated(self):
|
||||
FreeCAD.ActiveDocument.openTransaction("Alignment")
|
||||
|
||||
@@ -45,6 +45,7 @@ class _CommandAnalysis:
|
||||
def Activated(self):
|
||||
FreeCAD.ActiveDocument.openTransaction("Create Analysis")
|
||||
FreeCADGui.addModule("FemGui")
|
||||
FreeCADGui.doCommand("FreeCADGui.ActiveDocument.ActiveView.setAxisCross(True)")
|
||||
FreeCADGui.doCommand("App.activeDocument().addObject('Fem::FemAnalysis','PartDistortion')")
|
||||
FreeCADGui.doCommand("FemGui.setActiveAnalysis(App.activeDocument().ActiveObject)")
|
||||
sel = FreeCADGui.Selection.getSelection()
|
||||
|
||||
Reference in New Issue
Block a user