From: eap Date: Tue, 15 Oct 2013 10:30:22 +0000 (+0000) Subject: 21684: EDF 2221 : Display the arguments and the name of the operations X-Git-Tag: BR_hydro_v_0_3_1~89 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5dd2cb307e339a9ac5ec3b81c3432cdfb4ea39bd;p=modules%2Fgeom.git 21684: EDF 2221 : Display the arguments and the name of the operations In removeStep(self,step) remove it from a study as well --- diff --git a/src/GEOM_SWIG/geomBuilder.py b/src/GEOM_SWIG/geomBuilder.py index bcf8ef0f4..7d9ffde95 100644 --- a/src/GEOM_SWIG/geomBuilder.py +++ b/src/GEOM_SWIG/geomBuilder.py @@ -12641,7 +12641,18 @@ class geomField( GEOM._objref_GEOM_Field ): ## Remove a time step from the field def removeStep(self,step): "Remove a time step from the field" + stepSO = None + try: + stepObj = self.field.GetStep( self, step ) + if stepObj: + stepSO = geom.myStudy.FindObjectID( stepObj.GetStudyEntry() ) + except: + #import traceback + #traceback.print_exc() + pass self.field.RemoveStep( self, step ) + if stepSO: + geom.myBuilder.RemoveObjectWithChildren( stepSO ) return ## Returns number of time steps in the field