From: jfa Date: Mon, 8 Nov 2010 09:46:54 +0000 (+0000) Subject: 0019957: EDF 785 SMESH: Convert Quadratic and Group on GEOM. X-Git-Tag: V5_1_5rc2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ccbd05f5f7880880750b435aa1570779a19cf398;p=modules%2Fgeom.git 0019957: EDF 785 SMESH: Convert Quadratic and Group on GEOM. --- diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index a9d9babb0..86ebc2a67 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -3988,7 +3988,9 @@ class geompyDC(GEOM._objref_GEOM_Gen): def AddObject(self,theGroup, theSubShapeID): # Example: see GEOM_TestOthers.py self.GroupOp.AddObject(theGroup, theSubShapeID) - RaiseIfFailed("AddObject", self.GroupOp) + if self.GroupOp.GetErrorCode() != "PAL_ELEMENT_ALREADY_PRESENT": + RaiseIfFailed("AddObject", self.GroupOp) + pass pass ## Removes a sub object with ID \a theSubShapeId from the group