Salome HOME
Make faces naming is up to this version in tests cgt/Box V_2.1.2
authormpv <mpv@opencascade.com>
Tue, 26 Jan 2016 14:07:32 +0000 (17:07 +0300)
committermpv <mpv@opencascade.com>
Tue, 26 Jan 2016 14:07:32 +0000 (17:07 +0300)
src/PythonAPI/examples/Platine.py

index 063e2c63949ed44e662990a215f38f276949fcf9..420a2c3a0b3fe5086590f635848a3337e90dcb53 100644 (file)
@@ -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()  #!!!