]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Implementation of the "16219: EDF PAL 469: "RemoveFromStudy" Function" issue
authorrnv <rnv@opencascade.com>
Thu, 31 Mar 2011 13:04:11 +0000 (13:04 +0000)
committerrnv <rnv@opencascade.com>
Thu, 31 Mar 2011 13:04:11 +0000 (13:04 +0000)
src/GEOM_SWIG/geompyDC.py

index 80ef991cf1319c276b15258b1943e1d570ff34cf..dc2d6a86f50a1d1267fc5c8fee5089666d6f3ab9 100644 (file)
@@ -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
         ## @}