mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-12 01:30:36 +05:00
21684: EDF 2221 : Display the arguments and the name of the operations
In removeStep(self,step) remove it from a study as well
This commit is contained in:
parent
197ecbaecd
commit
5dd2cb307e
@ -12641,7 +12641,18 @@ class geomField( GEOM._objref_GEOM_Field ):
|
|||||||
## Remove a time step from the field
|
## Remove a time step from the field
|
||||||
def removeStep(self,step):
|
def removeStep(self,step):
|
||||||
"Remove a time step from the field"
|
"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 )
|
self.field.RemoveStep( self, step )
|
||||||
|
if stepSO:
|
||||||
|
geom.myBuilder.RemoveObjectWithChildren( stepSO )
|
||||||
return
|
return
|
||||||
|
|
||||||
## Returns number of time steps in the field
|
## Returns number of time steps in the field
|
||||||
|
Loading…
Reference in New Issue
Block a user