FEM: solver Z88, fix in object attributes
This commit is contained in:
parent
4130f845e2
commit
37db5ab428
|
@ -27,7 +27,7 @@ __url__ = "http://www.freecadweb.org"
|
|||
## @package FemSolverZ88
|
||||
# \ingroup FEM
|
||||
|
||||
import FreeCAD
|
||||
# import FreeCAD
|
||||
import FemToolsZ88
|
||||
|
||||
|
||||
|
@ -42,15 +42,15 @@ class _FemSolverZ88():
|
|||
obj.addProperty("App::PropertyString", "SolverType", "Base", "Type of the solver", 1) # the 1 set the property to ReadOnly
|
||||
obj.SolverType = str(self.Type)
|
||||
|
||||
fem_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem/General")
|
||||
# fem_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem/General") # not needed ATM
|
||||
|
||||
obj.addProperty("App::PropertyPath", "WorkingDir", "Fem", "Working directory for calculations")
|
||||
obj.WorkingDir = fem_prefs.GetString("WorkingDir", "")
|
||||
obj.addProperty("App::PropertyPath", "WorkingDir", "Fem", "Working directory for calculations, will only be used it is left blank in preferences")
|
||||
# the working directory is not set, the solver working directory is only used if the preferences working directory is left blank
|
||||
|
||||
obj.addProperty("App::PropertyEnumeration", "AnalysisType", "Fem", "Type of the analysis")
|
||||
obj.AnalysisType = FemToolsZ88.FemToolsZ88.known_analysis_types
|
||||
analysis_type = fem_prefs.GetInt("AnalysisType", 0)
|
||||
obj.AnalysisType = FemToolsZ88.FemToolsZ88.known_analysis_types[analysis_type]
|
||||
known_analysis_types = FemToolsZ88.FemToolsZ88.known_analysis_types
|
||||
obj.AnalysisType = known_analysis_types
|
||||
obj.AnalysisType = known_analysis_types[0]
|
||||
|
||||
def execute(self, obj):
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user