FEM: ccx tools solver, get rid of no longer needed and confusing attribute

This commit is contained in:
Bernd Hahnebach
2018-01-25 07:17:04 +01:00
committed by Yorik van Havre
parent 05fbc0f8bf
commit 7d250a5355
4 changed files with 8 additions and 9 deletions

View File

@@ -35,13 +35,10 @@ class _FemSolverCalculix():
"""The Fem::FemSolver's Proxy python type, add solver specific properties
"""
def __init__(self, obj):
self.Type = "Fem::FemSolverCalculix"
self.Type = "Fem::FemSolverCalculixCcxTools"
self.Object = obj # keep a ref to the DocObj for nonGui usage
obj.Proxy = self # link between App::DocumentObject to this object
obj.addProperty("App::PropertyString", "SolverType", "Base", "Type of the solver", 1) # the 1 set the property to ReadOnly
obj.SolverType = 'FemSolverCalculix'
# fem_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem/General") # not needed ATM
ccx_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem/Ccx")