]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0019957: EDF 785 SMESH: Convert Quadratic and Group on GEOM.
authorjfa <jfa@opencascade.com>
Mon, 8 Nov 2010 09:46:54 +0000 (09:46 +0000)
committerjfa <jfa@opencascade.com>
Mon, 8 Nov 2010 09:46:54 +0000 (09:46 +0000)
src/GEOM_SWIG/geompyDC.py

index a9d9babb0f1904af46fffc250b4496e00ad7b792..86ebc2a67d307b1f60551a539518ecaff840bb94 100644 (file)
@@ -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