FEM: Change the way set_analysis_type works - use FEM prefs

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt 2015-09-29 14:54:42 +01:00 committed by wmayer
parent 26d18db2d3
commit f33f573199

View File

@ -308,10 +308,11 @@ class FemTools(QtCore.QRunnable, QtCore.QObject):
# - static
# - frequency
def set_analysis_type(self, analysis_type=None):
if analysis_type is None:
self.analysis_type = "static"
else:
if analysis_type is not None:
self.analysis_type = analysis_type
else:
self.fem_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem")
self.analysis_type = self.fem_prefs.GetString("AnalysisType", "static")
## Sets working dir for ccx execution. Called with no working_dir uses WorkingDir from FEM preferences
# @param self The python object self