SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint())
SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.startPoint())
SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint())
-SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_1.result()[0])
-SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_2.result()[0])
-SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_3.result()[0])
-SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_4.result()[0])
+SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_1.result())
+SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_2.result())
+SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_3.result())
+SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_4.result())
model.do()
Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_1f-SketchLine_2f-SketchLine_3f-SketchLine_4f")], model.selection(), 300, 0)
SketchConstraintCoincidence_6 = Sketch_2.setCoincident(SketchLine_5.endPoint(), SketchLine_6.startPoint())
SketchConstraintCoincidence_7 = Sketch_2.setCoincident(SketchLine_6.endPoint(), SketchLine_7.startPoint())
SketchConstraintCoincidence_8 = Sketch_2.setCoincident(SketchLine_7.endPoint(), SketchLine_8.startPoint())
-SketchConstraintHorizontal_3 = Sketch_2.setHorizontal(SketchLine_5.result()[0])
-SketchConstraintVertical_3 = Sketch_2.setVertical(SketchLine_6.result()[0])
-SketchConstraintHorizontal_4 = Sketch_2.setHorizontal(SketchLine_7.result()[0])
-SketchConstraintVertical_4 = Sketch_2.setVertical(SketchLine_8.result()[0])
+SketchConstraintHorizontal_3 = Sketch_2.setHorizontal(SketchLine_5.result())
+SketchConstraintVertical_3 = Sketch_2.setVertical(SketchLine_6.result())
+SketchConstraintHorizontal_4 = Sketch_2.setHorizontal(SketchLine_7.result())
+SketchConstraintVertical_4 = Sketch_2.setVertical(SketchLine_8.result())
ExtrusionCut_1.setNestedSketch(Sketch_2)
model.do()
SketchConstraintCoincidence_10 = Sketch_4.setCoincident(SketchLine_9.endPoint(), SketchLine_10.startPoint())
SketchConstraintCoincidence_11 = Sketch_4.setCoincident(SketchLine_10.endPoint(), SketchLine_11.startPoint())
SketchConstraintCoincidence_12 = Sketch_4.setCoincident(SketchLine_11.endPoint(), SketchLine_12.startPoint())
-SketchConstraintHorizontal_5 = Sketch_4.setHorizontal(SketchLine_9.result()[0])
-SketchConstraintVertical_5 = Sketch_4.setVertical(SketchLine_10.result()[0])
-SketchConstraintHorizontal_6 = Sketch_4.setHorizontal(SketchLine_11.result()[0])
-SketchConstraintVertical_6 = Sketch_4.setVertical(SketchLine_12.result()[0])
+SketchConstraintHorizontal_5 = Sketch_4.setHorizontal(SketchLine_9.result())
+SketchConstraintVertical_5 = Sketch_4.setVertical(SketchLine_10.result())
+SketchConstraintHorizontal_6 = Sketch_4.setHorizontal(SketchLine_11.result())
+SketchConstraintVertical_6 = Sketch_4.setVertical(SketchLine_12.result())
model.do()
ExtrusionCut_3.setNestedSketch(Sketch_4)