mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-19 00:10:37 +05:00
Implementation of the "16219: EDF PAL 469: "RemoveFromStudy" Function" issue
This commit is contained in:
parent
448a18a1e0
commit
70bfb7fe11
@ -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
|
||||||
## @}
|
## @}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user