diff --git a/src/Mod/Fem/Gui/Command.cpp b/src/Mod/Fem/Gui/Command.cpp index 6891b04940..4d01111cf7 100644 --- a/src/Mod/Fem/Gui/Command.cpp +++ b/src/Mod/Fem/Gui/Command.cpp @@ -1534,6 +1534,18 @@ void CmdFemPostPipelineFromResult::activated(int) Base::Console().Message("Debug: FemResultObject pointer = %p", result ); */ + + // go through active document change some Visibility + Gui::Document* doc = Gui::Application::Instance->activeDocument(); + App::Document* app = doc->getDocument(); + const std::vector obj = app->getObjectsOfType + (App::DocumentObject::getClassTypeId()); + + for (std::vector::const_iterator it=obj.begin();it!=obj.end();++it) { + doCommand(Gui,"Gui.getDocument(\"%s\").getObject(\"%s\").Visibility=False" + , app->getName(), (*it)->getNameInDocument()); + } + std::vector results = getSelection().getObjectsOfType(); if (results.size() == 1) { std::string FeatName = getUniqueObjectName("Pipeline");