From: mpv Date: Fri, 26 Aug 2016 07:21:41 +0000 (+0300) Subject: Make the "Platine" test more stable X-Git-Tag: V_2.5.0~129 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a12d66cf245ffaa1b113dc0444005f6b3cc57525;p=modules%2Fshaper.git Make the "Platine" test more stable --- diff --git a/src/PythonAPI/examples/Platine.py b/src/PythonAPI/examples/Platine.py index f0c236b51..3e2de69b1 100644 --- a/src/PythonAPI/examples/Platine.py +++ b/src/PythonAPI/examples/Platine.py @@ -54,8 +54,6 @@ def vertical_body(): # Create extrusion body = model.addExtrusion(part, sketch.selectFace(), "E") - model.do() - return body def bottom_body(): @@ -97,10 +95,9 @@ def bottom_body(): sketch.setCoincident(left_e.startPoint(), left.endPoint()) sketch.setCoincident(left_e.endPoint(), left.startPoint()) - model.do() #!!! - # Dimensions - sketch.setLength(v1, 16) + #sketch.setLength(v1, 16) + sketch.setLength(v2, 32) sketch.setLength(h2, 20) sketch.setLength(right, 16) sketch.setLength(top, "P") @@ -162,8 +159,6 @@ def body_3(): # Create extrusion body = model.addExtrusion(part, sketch.selectFace(), "-(L-22)") - model.do() #!!! - return body def body_4(): @@ -189,8 +184,6 @@ def body_4(): # Create extrusion body = model.addExtrusion(part, sketch.selectFace(), "-12") - model.do() #!!! - return body