#SketchProjection_1 = Sketch_1.addProjection(model.selection("VERTEX", "Origin"), False) #SketchPoint_1 = SketchProjection_1.createdFeature() #SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchAPI_Point(SketchPoint_1).coordinates()) model.do() Part_1 = model.addPart(partSet) Part_1_doc = Part_1.document() Face_1 = model.addFace(Part_1_doc, [ model.selection( "FACE", "PartSet/Sketch_1/Face-SketchLine_12r-SketchLine_11r-SketchLine_10r-SketchLine_9r-SketchLine_8r-SketchLine_7r-SketchLine_6r-SketchLine_5r-SketchLine_4r-SketchLine_3r-SketchLine_2r-SketchLine_1r" ) ]) Extrusion_1 = model.addExtrusion(Part_1_doc, [ model.selection( "FACE", "PartSet/Sketch_1/Face-SketchLine_12r-SketchLine_11r-SketchLine_10r-SketchLine_9r-SketchLine_8r-SketchLine_7r-SketchLine_6r-SketchLine_5r-SketchLine_4r-SketchLine_3r-SketchLine_2r-SketchLine_1r" ) ], model.selection(), F, 0) Fillet_1 = model.addFillet(Part_1_doc, [ model.selection( "EDGE", "[Extrusion_1_1/Generated_Face&PartSet/Sketch_1/SketchLine_7][Extrusion_1_1/To_Face]" ) ], R1) Fillet_2 = model.addFillet(Part_1_doc, [ model.selection( "EDGE", "[Fillet_1_1/MF:Fillet&Extrusion_1_1/To_Face][Extrusion_1_1/Generated_Face&PartSet/Sketch_1/SketchLine_5]" ) ], R1) Fillet_3 = model.addFillet(Part_1_doc, [
SketchConstraintCoincidence_5 = Sketch_1.setCoincident( SketchLine_2.endPoint(), SketchAPI_Point(SketchPoint_1).coordinates()) model.do() Part_1 = model.addPart(partSet) Part_1_doc = Part_1.document() Face_1 = model.addFace(Part_1_doc, [ model.selection( "FACE", "PartSet/Sketch_1/Face-SketchLine_1r-SketchLine_2f-SketchLine_3f-SketchLine_4f" ) ]) Extrusion_1 = model.addExtrusion(Part_1_doc, [ model.selection( "FACE", "PartSet/Sketch_1/Face-SketchLine_1r-SketchLine_2f-SketchLine_3f-SketchLine_4f" ) ], model.selection(), C, 0) Sketch_2 = model.addSketch( Part_1_doc, model.selection( "FACE", "Extrusion_1_1/Generated_Face&PartSet/Sketch_1/SketchLine_1")) SketchCircle_1 = Sketch_2.addCircle(A / 2, -C / 2, D1 / 2) SketchCircle_2 = Sketch_2.addCircle(A / 2, -C / 2, D1 / 2) SketchConstraintCoincidence_6 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchCircle_2.center()) SketchConstraintRadius_1 = Sketch_2.setRadius(SketchCircle_1.results()[1], D1 / 2) SketchConstraintRadius_2 = Sketch_2.setRadius(SketchCircle_2.results()[1], D2 / 2) SketchProjection_2 = Sketch_2.addProjection(