From: rnv Date: Thu, 31 Mar 2011 13:04:11 +0000 (+0000) Subject: Implementation of the "16219: EDF PAL 469: "RemoveFromStudy" Function" issue X-Git-Tag: Start_BR_19998_21191~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=70bfb7fe1183197c4b75bf23482188a0314299e9;p=modules%2Fgeom.git Implementation of the "16219: EDF PAL 469: "RemoveFromStudy" Function" issue --- 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 ## @}