Skip to content

Commit

Permalink
FEM: GUI: pref: move CalculiX related preferences to CalculiX tab
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and wwmayer committed Aug 4, 2016
1 parent 4ea7fc6 commit 9aa9664
Show file tree
Hide file tree
Showing 7 changed files with 380 additions and 434 deletions.
5 changes: 5 additions & 0 deletions src/Mod/Fem/FemCommands.py
Expand Up @@ -103,6 +103,11 @@ def hide_parts_constraints_show_meshes(self):
for acnstrmesh in FemGui.getActiveAnalysis().Member:
# if "Constraint" in acnstrmesh.TypeId:
# acnstrmesh.ViewObject.Visibility = False
fem_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem")
hide_constraints = fem_prefs.GetBool("HideConstraint", False)
if hide_constraints:
if "Constraint" in acnstrmesh.TypeId:
acnstrmesh.ViewObject.Visibility = False
if "Mesh" in acnstrmesh.TypeId:
aparttoshow = acnstrmesh.Name.replace("_Mesh", "")
for apart in FreeCAD.activeDocument().Objects:
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/FemToolsCcx.py
Expand Up @@ -110,8 +110,8 @@ def write_inp_file(self):
def setup_ccx(self, ccx_binary=None, ccx_binary_sig="CalculiX"):
from platform import system
if not ccx_binary:
self.fem_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem")
ccx_binary = self.fem_prefs.GetString("ccxBinaryPath", "")
self.ccx_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Ccx")
ccx_binary = self.ccx_prefs.GetString("ccxBinaryPath", "")
if not ccx_binary:
if system() == "Linux":
ccx_binary = "ccx"
Expand Down

0 comments on commit 9aa9664

Please sign in to comment.