From 9c09a1ab48de3e22fc96df10fd856bea70c71ee5 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 26 Jan 2016 17:07:32 +0300 Subject: [PATCH] Make faces naming is up to this version in tests --- src/PythonAPI/examples/Platine.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/PythonAPI/examples/Platine.py b/src/PythonAPI/examples/Platine.py index 063e2c639..420a2c3a0 100644 --- a/src/PythonAPI/examples/Platine.py +++ b/src/PythonAPI/examples/Platine.py @@ -54,7 +54,7 @@ def vertical_body(): def bottom_body(): # Create XOY sketch - sketch = model.addSketch(part, "Extrusion_1_1/LateralFace_4") + sketch = model.addSketch(part, "Extrusion_1_1/LateralFace_2") # Create base polygon points = [(0, 0), (0, L), (P, L), (P, 16 + 16), (P - 20, 16 + 16), (P - 20, 16), (P, 16), (P, 0)] @@ -87,7 +87,7 @@ def bottom_body(): sketch.setCoincident(arc.endPoint(), h1.startPoint()) # Binding - left_e = sketch.addLine("Extrusion_1_1/LateralFace_4&Extrusion_1_1/ToFace_1") + left_e = sketch.addLine("Extrusion_1_1/LateralFace_2&Extrusion_1_1/ToFace_1") sketch.setCoincident(left_e.startPoint(), left.endPoint()) sketch.setCoincident(left_e.endPoint(), left.startPoint()) @@ -109,7 +109,7 @@ def bottom_body(): def body_3(): # Create XOZ sketch - sketch = model.addSketch(part, "Boolean_1_1/Modified_4") + sketch = model.addSketch(part, "Boolean_1_1/Modified_3") # Create base polygon H, L, l, r = 28, 40, 8, 12 @@ -147,7 +147,7 @@ def body_3(): sketch.setRadius(arc.result(), r) # Binding - bottom_e = sketch.addLine("Boolean_1_1/Modified_1&Boolean_1_1/Modified_4") + bottom_e = sketch.addLine("Boolean_1_1/Modified_1&Boolean_1_1/Modified_3") sketch.setCoincident(bottom_e.result(), bottom.startPoint()) sketch.setCoincident(bottom_e.startPoint(), bottom.endPoint()) @@ -162,7 +162,7 @@ def body_3(): def body_4(): # Create XOZ 2nd sketch - sketch = model.addSketch(part, "Boolean_2_1/Modified_8") + sketch = model.addSketch(part, "Boolean_2_1/Modified_7") # Create base polygon points = [(0, 0), (0, 1), (1, 0)] @@ -175,7 +175,7 @@ def body_4(): sketch.setCoincident(bottom_e.endPoint(), bottom.startPoint()) sketch.setCoincident(bottom_e.startPoint(), left.startPoint()) - left_e = sketch.addLine("Boolean_2_1/Modified_4&Boolean_2_1/Modified_2") + left_e = sketch.addLine("Boolean_2_1/Modified_3&Boolean_2_1/Modified_2") sketch.setCoincident(left_e.startPoint(), left.endPoint()) model.do() #!!! -- 2.39.2