From: dbv Date: Tue, 15 Nov 2016 13:55:04 +0000 (+0300) Subject: Issue #1773: Script python does not work X-Git-Tag: V_2.6.0~83^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=075177feab4dc988e7ef2ec1825b8b6dbbc0c431;p=modules%2Fshaper.git Issue #1773: Script python does not work Fix for test. --- diff --git a/src/ConnectorAPI/Test/TestExportToGEOM.py b/src/ConnectorAPI/Test/TestExportToGEOM.py index 9dd2af283..5ae5996bd 100644 --- a/src/ConnectorAPI/Test/TestExportToGEOM.py +++ b/src/ConnectorAPI/Test/TestExportToGEOM.py @@ -14,12 +14,12 @@ SketchLine_4 = Sketch_1.addLine(50, 0, 0, 0) SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint()) SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_1.startPoint()) SketchConstraintRigid_1 = Sketch_1.setFixed(SketchLine_1.startPoint()) -SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_1.result()[0]) -SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_4.result()[0], 50) -SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_1.result()[0], 50) -SketchConstraintParallel_1 = Sketch_1.setParallel(SketchLine_1.result()[0], SketchLine_3.result()[0]) -SketchConstraintParallel_2 = Sketch_1.setParallel(SketchLine_2.result()[0], SketchLine_4.result()[0]) -SketchConstraintPerpendicular_1 = Sketch_1.setPerpendicular(SketchLine_1.result()[0], SketchLine_4.result()[0]) +SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_1.result()) +SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_4.result(), 50) +SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_1.result(), 50) +SketchConstraintParallel_1 = Sketch_1.setParallel(SketchLine_1.result(), SketchLine_3.result()) +SketchConstraintParallel_2 = Sketch_1.setParallel(SketchLine_2.result(), SketchLine_4.result()) +SketchConstraintPerpendicular_1 = Sketch_1.setPerpendicular(SketchLine_1.result(), SketchLine_4.result()) model.do() Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_1r-SketchLine_2r-SketchLine_3r-SketchLine_4r")], model.selection(), 50, 0) model.end()