From: vsr Date: Thu, 6 Dec 2012 09:24:57 +0000 (+0000) Subject: Temporary patch from VSR: geometry created from script is not checked in X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=53a40b72e7b4613b099bbf178aac1befc918f9a1;p=modules%2Fgeom.git Temporary patch from VSR: geometry created from script is not checked in --- diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index b072e7c73..8bdcc378b 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -92,8 +92,12 @@ ShapeType = {"AUTO":-1, "COMPOUND":0, "COMPSOLID":1, "SOLID":2, "SHELL":3, "FACE ## @ingroup l1_geompy_auxiliary def RaiseIfFailed (Method_name, Operation): if Operation.IsDone() == 0 and Operation.GetErrorCode() != "NOT_FOUND_ANY": + Operation.AbortOperation() raise RuntimeError, Method_name + " : " + Operation.GetErrorCode() - + else: + Operation.FinishOperation() + pass + ## Return list of variables value from salome notebook ## @ingroup l1_geompy_auxiliary def ParseParameters(*parameters): @@ -3012,6 +3016,7 @@ class geompyDC(GEOM._objref_GEOM_Gen): New GEOM.GEOM_Object, containing the created compound. """ # Example: see GEOM_TestAll.py + self.ShapesOp.StartOperation() anObj = self.ShapesOp.MakeCompound(theShapes) RaiseIfFailed("MakeCompound", self.ShapesOp) return anObj