Implementation of the "16219: EDF PAL 469: "RemoveFromStudy" Function" issue

This commit is contained in:
rnv 2011-03-31 13:04:11 +00:00
parent 448a18a1e0
commit 70bfb7fe11

View File

@ -384,6 +384,17 @@ class geompyDC(GEOM._objref_GEOM_Gen):
return "" return ""
return aShape.GetStudyEntry() 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 # end of l1_geompy_auxiliary
## @} ## @}