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)]
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())
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
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())
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)]
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() #!!!