From 53a40b72e7b4613b099bbf178aac1befc918f9a1 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 6 Dec 2012 09:24:57 +0000 Subject: [PATCH] Temporary patch from VSR: geometry created from script is not checked in --- src/GEOM_SWIG/geompyDC.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.2