From d0d501a34d31963dcf9041ae0205e28af574a605 Mon Sep 17 00:00:00 2001 From: marioalexis Date: Thu, 15 Feb 2024 19:53:21 -0300 Subject: [PATCH] Fem: Run option in examples open and run analysis - fixes #11056 --- src/Mod/Fem/femexamples/examplesgui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Fem/femexamples/examplesgui.py b/src/Mod/Fem/femexamples/examplesgui.py index 32f7cce7e7..2461c0f957 100644 --- a/src/Mod/Fem/femexamples/examplesgui.py +++ b/src/Mod/Fem/femexamples/examplesgui.py @@ -236,10 +236,10 @@ class FemExamples(QtGui.QWidget): # if done this way the Python commands are printed in Python console FreeCADGui.doCommand("from femexamples.manager import run_example") if solver is not None: - FreeCADGui.doCommand("run_example(\"{}\", solver=\"{}\")" + FreeCADGui.doCommand("run_example(\"{}\", solver=\"{}\", run_solver=True)" .format(str(example), str(solver))) else: - FreeCADGui.doCommand("run_example(\"{}\")".format(str(example))) + FreeCADGui.doCommand("run_example(\"{}\", run_solver=True)".format(str(example))) QtGui.QApplication.restoreOverrideCursor() def enable_buttons(self):