FEM: Mystran solver, add Gui command to add solver to a document

This commit is contained in:
Bernd Hahnebach
2021-07-26 17:31:30 +02:00
parent 005c66f4ec
commit cfc08b811f
2 changed files with 18 additions and 0 deletions

View File

@@ -337,6 +337,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const
<< "FEM_SolverCalculixCxxtools"
<< "FEM_SolverCalculiX"
<< "FEM_SolverElmer"
<< "FEM_SolverMystran"
<< "FEM_SolverZ88"
<< "Separator"
<< "FEM_EquationElasticity"

View File

@@ -775,6 +775,19 @@ class _SolverElmer(CommandManager):
self.do_activated = "add_obj_on_gui_noset_edit"
class _SolverMystran(CommandManager):
"The FEM_SolverMystran command definition"
def __init__(self):
super(_SolverMystran, self).__init__()
self.pixmap = "FEM_SolverStandard"
self.menuetext = "Solver Mystran"
self.accel = "S, M"
self.tooltip = "Creates a FEM solver Mystran"
self.is_active = "with_analysis"
self.do_activated = "add_obj_on_gui_noset_edit"
class _SolverRun(CommandManager):
"The FEM_SolverRun command definition"
@@ -973,6 +986,10 @@ FreeCADGui.addCommand(
"FEM_SolverElmer",
_SolverElmer()
)
FreeCADGui.addCommand(
"FEM_SolverMystran",
_SolverMystran()
)
FreeCADGui.addCommand(
"FEM_SolverRun",
_SolverRun()