From 70bfb7fe1183197c4b75bf23482188a0314299e9 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 31 Mar 2011 13:04:11 +0000 Subject: [PATCH] Implementation of the "16219: EDF PAL 469: "RemoveFromStudy" Function" issue --- src/GEOM_SWIG/geompyDC.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index 80ef991cf..dc2d6a86f 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -384,6 +384,17 @@ class geompyDC(GEOM._objref_GEOM_Gen): return "" return aShape.GetStudyEntry() + ## Unpublish object in study + # + def hideInStudy(self, obj): + ior = salome.orb.object_to_string(obj) + aSObject = self.myStudy.FindObjectIOR(ior) + if aSObject is not None: + genericAttribute = self.myBuilder.FindOrCreateAttribute(aSObject, "AttributeDrawable") + drwAttribute = genericAttribute._narrow(SALOMEDS.AttributeDrawable) + drwAttribute.SetDrawable(False) + pass + # end of l1_geompy_auxiliary ## @} -- 2.39.2