From adebabe3a5c1fed42c69121270a865ad850cc2d0 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Fri, 3 Jun 2016 06:30:09 +0100 Subject: [PATCH] FEM: only deactivate and activate visibility for FEMmeshes inside analysis container --- src/Mod/Fem/FemCommands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Fem/FemCommands.py b/src/Mod/Fem/FemCommands.py index 5eb9d60f4..7acfc6af2 100644 --- a/src/Mod/Fem/FemCommands.py +++ b/src/Mod/Fem/FemCommands.py @@ -100,7 +100,7 @@ class FemCommands(object): def hide_parts_constraints_show_meshes(self): if FreeCAD.GuiUp: - for acnstrmesh in FreeCAD.activeDocument().Objects: + for acnstrmesh in FemGui.getActiveAnalysis().Member: #if "Constraint" in acnstrmesh.TypeId: # acnstrmesh.ViewObject.Visibility = False if "Mesh" in acnstrmesh.TypeId: @@ -112,7 +112,7 @@ class FemCommands(object): def hide_meshes_show_parts_constraints(self): if FreeCAD.GuiUp: - for acnstrmesh in FreeCAD.activeDocument().Objects: + for acnstrmesh in FemGui.getActiveAnalysis().Member: if "Constraint" in acnstrmesh.TypeId: acnstrmesh.ViewObject.Visibility = True if "Mesh" in acnstrmesh.TypeId: