partSet = model.moduleDocument()
Part_1 = model.addPart(partSet)
Part_1_doc = Part_1.document()
+Parameter_H = model.addParameter(Part_1_doc, "H", "0.3")
Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ"))
SketchLine_1 = Sketch_1.addLine(55.1, 10.3, 55.1, 0.3)
-SketchLine_2 = Sketch_1.addLine(55.1, 0.3, 2.300000098190561, 0.3)
+SketchLine_2 = Sketch_1.addLine(55.1, 0.3, 2.3, 0.3)
SketchLine_2.setName("SketchLine_10")
SketchLine_2.result().setName("SketchLine_10")
SketchLine_3 = Sketch_1.addLine(55.1, 0.3, 0.3, 0.3)
SketchLine_3.result().setName("SketchLine_2")
SketchLine_3.setAuxiliary(True)
SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_3.startPoint())
-SketchLine_4 = Sketch_1.addLine(0.3, 2.299999958617008, 0.3, 10.3)
+SketchLine_4 = Sketch_1.addLine(0.3, 2.3, 0.3, 10.3)
SketchLine_4.setName("SketchLine_11")
SketchLine_4.result().setName("SketchLine_11")
-SketchLine_5 = Sketch_1.addLine(2.299981065494142, -1.390467145968888e-034, 55.4, -3.349267313974575e-033)
+SketchLine_5 = Sketch_1.addLine(2.3, 0, 55.4, 0)
SketchLine_5.setName("SketchLine_12")
SketchLine_5.result().setName("SketchLine_12")
SketchLine_6 = Sketch_1.addLine(0.3, 0.3, 0.3, 10.3)
SketchLine_6.result().setName("SketchLine_3")
SketchLine_6.setAuxiliary(True)
SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_6.startPoint())
-SketchLine_7 = Sketch_1.addLine(0, 10.3, 0, 2.300013086422291)
+SketchLine_7 = Sketch_1.addLine(0, 10.3, 0, 2.3)
SketchLine_7.setName("SketchLine_13")
SketchLine_7.result().setName("SketchLine_13")
SketchLine_8 = Sketch_1.addLine(0.3, 10.3, 0, 10.3)
SketchLine_9.setName("SketchLine_5")
SketchLine_9.result().setName("SketchLine_5")
SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.result())
-SketchLine_10 = Sketch_1.addLine(0, 10.3, 0, -3.349267313974575e-033)
+SketchLine_10 = Sketch_1.addLine(0, 10.3, 0, 0)
SketchLine_10.setName("SketchLine_6")
SketchLine_10.result().setName("SketchLine_6")
SketchLine_10.setAuxiliary(True)
SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_10.startPoint())
-SketchLine_11 = Sketch_1.addLine(0, -3.349267313974575e-033, 55.4, -3.349267313974575e-033)
+SketchLine_11 = Sketch_1.addLine(0, 0, 55.4, 0)
SketchLine_11.setName("SketchLine_7")
SketchLine_11.result().setName("SketchLine_7")
SketchLine_11.setAuxiliary(True)
SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchLine_11.startPoint())
-SketchLine_12 = Sketch_1.addLine(55.4, -3.349267313974575e-033, 55.4, 10.3)
+SketchLine_12 = Sketch_1.addLine(55.4, 0, 55.4, 10.3)
SketchLine_12.setName("SketchLine_8")
SketchLine_12.result().setName("SketchLine_8")
SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchLine_12.startPoint())
SketchConstraintLength_3 = Sketch_1.setLength(SketchLine_11.result(), 55.4)
SketchConstraintLength_3.setName("SketchConstraintLength_5")
SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_10.result())
-SketchConstraintLength_4 = Sketch_1.setLength(SketchLine_8.result(), 0.3)
-SketchArc_1 = Sketch_1.addArc(2.3, 2.3, 0.3, 2.299999958617008, 2.300000098190561, 0.3, False)
+SketchConstraintLength_4 = Sketch_1.setLength(SketchLine_8.result(), "H")
+SketchArc_1 = Sketch_1.addArc(2.3, 2.3, 0.3, 2.3, 2.3, 0.3, False)
SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_4.startPoint())
SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_2.endPoint())
SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_2.result())
SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_4.endPoint())
SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.result())
SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchLine_4.startPoint(), SketchLine_6.result())
-SketchArc_2 = Sketch_1.addArc(2.3, 2.3, 0, 2.300013086422291, 2.299981065494142, -1.390467145968888e-034, False)
+SketchArc_2 = Sketch_1.addArc(2.3, 2.3, 0, 2.3, 2.3, 0, False)
SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchLine_7.endPoint())
SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_5.startPoint())
SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_5.result())
Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_1/Wire-SketchLine_1f-SketchLine_10f-SketchLine_11f-SketchLine_12f-SketchLine_13f-SketchLine_4f-SketchLine_8f-SketchLine_9f-SketchArc_1_2r-SketchArc_2_2f")], model.selection(), "307/2.", "307/2.")
Extrusion_1.setName("Profil")
Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face_7"))
-SketchLine_14 = Sketch_2.addLine(149.5, -2.299981065494, 153.5, -2.299981065494142)
+SketchLine_14 = Sketch_2.addLine(149.5, -2.3, 153.5, -2.3)
SketchPoint_1 = Sketch_2.addPoint(model.selection("VERTEX", "Extrusion_1_1/Generated_Face_7&Extrusion_1_1/Generated_Face_6&Extrusion_1_1/To_Face_1"))
SketchConstraintCoincidence_24 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchPoint_1.result())
-SketchLine_15 = Sketch_2.addLine(153.5, -2.299981065494142, 153.5, 7.700018934505839)
-SketchLine_16 = Sketch_2.addLine(153.5, 7.700018934505839, 149.5, 7.700018934505839)
-SketchLine_17 = Sketch_2.addLine(149.5, 7.700018934505839, 149.5, -2.299981065494)
+SketchLine_15 = Sketch_2.addLine(153.5, -2.3, 153.5, 7.7)
+SketchLine_16 = Sketch_2.addLine(153.5, 7.7, 149.5, 7.7)
+SketchLine_17 = Sketch_2.addLine(149.5, 7.7, 149.5, -2.3)
SketchConstraintCoincidence_25 = Sketch_2.setCoincident(SketchLine_17.endPoint(), SketchLine_14.startPoint())
SketchConstraintCoincidence_26 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchLine_15.startPoint())
SketchConstraintCoincidence_27 = Sketch_2.setCoincident(SketchLine_15.endPoint(), SketchLine_16.startPoint())
SketchConstraintVertical_5 = Sketch_2.setVertical(SketchLine_15.result())
SketchConstraintHorizontal_6 = Sketch_2.setHorizontal(SketchLine_16.result())
SketchConstraintVertical_6 = Sketch_2.setVertical(SketchLine_17.result())
-SketchLine_18 = Sketch_2.addLine(-149.5, -2.299981065494142, -153.5, -2.299981065494142)
-SketchLine_19 = Sketch_2.addLine(-153.5, -2.299981065494142, -153.5, 7.700018934505858)
-SketchLine_20 = Sketch_2.addLine(-153.5, 7.700018934505858, -149.5, 7.700018934505858)
-SketchLine_21 = Sketch_2.addLine(-149.5, 7.700018934505858, -149.5, -2.299981065494142)
+SketchLine_18 = Sketch_2.addLine(-149.5, -2.3142, -153.5, -2.3142)
+SketchLine_19 = Sketch_2.addLine(-153.5, -2.3142, -153.5, 7.7)
+SketchLine_20 = Sketch_2.addLine(-153.5, 7.7, -149.5, 7.7)
+SketchLine_21 = Sketch_2.addLine(-149.5, 7.7, -149.5, -2.3142)
SketchConstraintCoincidence_29 = Sketch_2.setCoincident(SketchLine_21.endPoint(), SketchLine_18.startPoint())
SketchConstraintCoincidence_30 = Sketch_2.setCoincident(SketchLine_18.endPoint(), SketchLine_19.startPoint())
SketchConstraintCoincidence_31 = Sketch_2.setCoincident(SketchLine_19.endPoint(), SketchLine_20.startPoint())
ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_2")], model.selection(), model.selection("FACE", "Extrusion_1_1/Generated_Face_4"), 0, model.selection(), 0, [model.selection("SOLID", "Extrusion_1_1")])
ExtrusionCut_1.setName("Decoupe_Angle")
Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face_8"))
-SketchLine_22 = Sketch_3.addLine(153.5, -10.3, 153.5, -8.300000000000011)
+SketchLine_22 = Sketch_3.addLine(153.5, -10.3, 153.5, -8.3)
SketchLine_22.setName("SketchLine_29")
SketchLine_22.result().setName("SketchLine_29")
SketchPoint_3 = Sketch_3.addPoint(model.selection("VERTEX", "Extrusion_1_1/Generated_Face_9&ExtrusionCut_1_1/Modfied_1&Extrusion_1_1/Generated_Face_8"))
SketchLine_23.result().setName("SketchLine_30")
SketchConstraintCoincidence_36 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_23.result())
SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_41")
-SketchLine_24 = Sketch_3.addLine(153.5, -8.300000000000011, 151.5, -10.3)
+SketchLine_24 = Sketch_3.addLine(153.5, -8.3, 151.5, -10.3)
SketchLine_24.setName("SketchLine_31")
SketchLine_24.result().setName("SketchLine_31")
SketchConstraintCoincidence_37 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_24.startPoint())
Sketch_3.result().setName("Sketch_4")
ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_4")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_1_1")])
ExtrusionCut_2.setName("Chamfrein_1")
-Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modfied_6"))
-SketchLine_30 = Sketch_4.addLine(-149.5, 10.3, -149.5, 8.300000000000003)
+Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modfied_7"))
+SketchLine_30 = Sketch_4.addLine(-149.5, 10.3, -149.5, 8.3)
SketchLine_30.setName("SketchLine_35")
SketchLine_30.result().setName("SketchLine_35")
-SketchPoint_4 = Sketch_4.addPoint(model.selection("VERTEX", "ExtrusionCut_1_1/Modfied_10&ExtrusionCut_1_1/Modfied_6&ExtrusionCut_1_1/Modfied_5"))
+SketchPoint_4 = Sketch_4.addPoint(model.selection("VERTEX", "ExtrusionCut_1_1/Modfied_11&ExtrusionCut_1_1/Modfied_7&ExtrusionCut_1_1/Modfied_6"))
SketchPoint_4.setName("SketchPoint_6")
SketchPoint_4.result().setName("SketchPoint_6")
SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_30.startPoint(), SketchPoint_4.result())
SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_43")
-SketchLine_31 = Sketch_4.addLine(model.selection("EDGE", "ExtrusionCut_1_1/Modfied_10&ExtrusionCut_1_1/Modfied_6"))
+SketchLine_31 = Sketch_4.addLine(model.selection("EDGE", "ExtrusionCut_1_1/Modfied_11&ExtrusionCut_1_1/Modfied_7"))
SketchLine_31.setName("SketchLine_36")
SketchLine_31.result().setName("SketchLine_36")
SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_31.result())
SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_48")
-SketchLine_32 = Sketch_4.addLine(-149.5, 8.300000000000003, -147.5, 10.3)
+SketchLine_32 = Sketch_4.addLine(-149.5, 8.3, -147.5, 10.3)
SketchLine_32.setName("SketchLine_37")
SketchLine_32.result().setName("SketchLine_37")
SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_32.startPoint())
model.do()
Sketch_4.setName("Sketch_5")
Sketch_4.result().setName("Sketch_5")
-ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_5")], model.selection(), model.selection("FACE", "ExtrusionCut_1_1/Modfied_4"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_2_1")])
-Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modfied_8"))
+ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_5")], model.selection(), model.selection("FACE", "ExtrusionCut_1_1/Modfied_5"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_2_1")])
+Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modfied_9"))
SketchLine_40 = Sketch_5.addLine(152.2999838762584, -21.04999053274691, 153.5, -21.04999053274714)
SketchLine_40.setName("SketchLine_58")
SketchLine_40.result().setName("SketchLine_58")
SketchLine_41 = Sketch_5.addLine(152.2999838292651, -45.04999053274704, 153.5, -45.04999053274702)
SketchLine_41.setName("SketchLine_57")
SketchLine_41.result().setName("SketchLine_57")
-SketchLine_42 = Sketch_5.addLine(model.selection("EDGE", "ExtrusionCut_2_1/Modfied_2&ExtrusionCut_1_1/Modfied_8"))
+SketchLine_42 = Sketch_5.addLine(model.selection("EDGE", "ExtrusionCut_2_1/Modfied_2&ExtrusionCut_1_1/Modfied_9"))
SketchLine_42.setName("SketchLine_46")
SketchLine_42.result().setName("SketchLine_46")
SketchLine_43 = Sketch_5.addLine(150.8, -45.04999053274702, 153.5, -45.04999053274702)
SketchLine_44 = Sketch_5.addLine(153.5, -45.04999053274702, 153.5, -37.04999053274702)
SketchLine_44.setName("SketchLine_47")
SketchLine_44.result().setName("SketchLine_47")
-SketchLine_45 = Sketch_5.addLine(150.8000000000001, -14.54997391609652, 150.8000000000001, -19.54999029833178)
+SketchLine_45 = Sketch_5.addLine(150.8, -14.54997391609652, 150.8, -19.54999029833178)
SketchLine_45.setName("SketchLine_61")
SketchLine_45.result().setName("SketchLine_61")
SketchLine_46 = Sketch_5.addLine(153.5, -13.04999053274714, 152.2999838654776, -13.04999053274697)
SketchLine_49 = Sketch_5.addLine(153.5, -37.04999053274702, 152.2999989299055, -37.04999053274738)
SketchLine_49.setName("SketchLine_62")
SketchLine_49.result().setName("SketchLine_62")
-SketchLine_50 = Sketch_5.addLine(150.8, -38.54997391988981, 150.8000000000001, -43.54998998548124)
+SketchLine_50 = Sketch_5.addLine(150.8, -38.54997391988981, 150.8, -43.54998998548124)
SketchLine_50.setName("SketchLine_63")
SketchLine_50.result().setName("SketchLine_63")
-SketchLine_51 = Sketch_5.addLine(150.7999999999999, -21.04999053274714, 153.5, -21.04999053274714)
+SketchLine_51 = Sketch_5.addLine(150.8, -21.04999053274714, 153.5, -21.04999053274714)
SketchLine_51.setName("SketchLine_50")
SketchLine_51.result().setName("SketchLine_50")
SketchLine_51.setAuxiliary(True)
SketchLine_52 = Sketch_5.addLine(153.5, -21.04999053274714, 153.5, -13.04999053274714)
SketchLine_52.setName("SketchLine_51")
SketchLine_52.result().setName("SketchLine_51")
-SketchLine_53 = Sketch_5.addLine(150.7999999999999, -13.04999053274714, 150.7999999999999, -21.04999053274714)
+SketchLine_53 = Sketch_5.addLine(150.8, -13.04999053274714, 150.8, -21.04999053274714)
SketchLine_53.setAuxiliary(True)
SketchConstraintCoincidence_61 = Sketch_5.setCoincident(SketchLine_53.endPoint(), SketchLine_51.startPoint())
SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_66")
SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchLine_51.endPoint(), SketchLine_52.startPoint())
SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_67")
-SketchLine_54 = Sketch_5.addLine(153.5, -13.04999053274714, 150.7999999999999, -13.04999053274714)
+SketchLine_54 = Sketch_5.addLine(153.5, -13.04999053274714, 150.8, -13.04999053274714)
SketchLine_54.setName("SketchLine_52")
SketchLine_54.result().setName("SketchLine_52")
SketchLine_54.setAuxiliary(True)
SketchLine_55.setAuxiliary(True)
SketchConstraintCoincidence_66 = Sketch_5.setCoincident(SketchPoint_5.coordinates(), SketchLine_55.startPoint())
SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_71")
-SketchLine_56 = Sketch_5.addLine(model.selection("EDGE", "ExtrusionCut_2_1/Modfied_3&ExtrusionCut_1_1/Modfied_8"))
+SketchLine_56 = Sketch_5.addLine(model.selection("EDGE", "ExtrusionCut_2_1/Modfied_3&ExtrusionCut_1_1/Modfied_9"))
SketchLine_56.setName("SketchLine_55")
SketchLine_56.result().setName("SketchLine_55")
SketchConstraintCoincidence_67 = Sketch_5.setCoincident(SketchLine_55.endPoint(), SketchLine_56.result())
SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_72")
SketchConstraintHorizontal_15 = Sketch_5.setHorizontal(SketchLine_55.result())
-SketchConstraintDistance_8 = Sketch_5.setDistance(SketchLine_48.result(), SketchPoint_5.coordinates(), 8.199999999999999)
+SketchConstraintDistance_8 = Sketch_5.setDistance(SketchLine_48.result(), SketchPoint_5.coordinates(), 8.2)
SketchConstraintDistance_9 = Sketch_5.setDistance(SketchLine_51.result(), SketchPoint_5.coordinates(), 7.8)
-SketchArc_3 = Sketch_5.addArc(152.3, -43.54999053274682, 150.8000000000001, -43.54998998548124, 152.2999838292651, -45.04999053274704, False)
-SketchLine_57 = Sketch_5.addLine(150.8, -37.04999053274702, 150.8000000000001, -43.54998998548124)
+SketchArc_3 = Sketch_5.addArc(152.3, -43.54999053274682, 150.8, -43.54998998548124, 152.2999838292651, -45.04999053274704, False)
+SketchLine_57 = Sketch_5.addLine(150.8, -37.04999053274702, 150.8, -43.54998998548124)
SketchLine_57.setName("SketchLine_56")
SketchLine_57.result().setName("SketchLine_56")
SketchLine_57.setAuxiliary(True)
SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_77")
SketchConstraintCoincidence_73 = Sketch_5.setCoincident(SketchLine_41.startPoint(), SketchLine_43.result())
SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_78")
-SketchArc_4 = Sketch_5.addArc(152.3, -19.54999053274696, 150.8000000000001, -19.54999029833178, 152.2999838762584, -21.04999053274691, False)
-SketchLine_58 = Sketch_5.addLine(150.7999999999999, -13.04999053274714, 150.8000000000001, -19.54999029833178)
+SketchArc_4 = Sketch_5.addArc(152.3, -19.54999053274696, 150.8, -19.54999029833178, 152.2999838762584, -21.04999053274691, False)
+SketchLine_58 = Sketch_5.addLine(150.8, -13.04999053274714, 150.8, -19.54999029833178)
SketchLine_58.setName("SketchLine_59")
SketchLine_58.result().setName("SketchLine_59")
SketchLine_58.setAuxiliary(True)
SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_83")
SketchConstraintCoincidence_79 = Sketch_5.setCoincident(SketchLine_58.endPoint(), SketchLine_53.result())
SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_84")
-SketchArc_5 = Sketch_5.addArc(152.2999999999999, -14.54999053274707, 152.2999838654776, -13.04999053274697, 150.8000000000001, -14.54997391609652, False)
+SketchArc_5 = Sketch_5.addArc(152.3, -14.54999053274707, 152.2999838654776, -13.04999053274697, 150.8, -14.54997391609652, False)
SketchConstraintCoincidence_80 = Sketch_5.setCoincident(SketchArc_5.startPoint(), SketchLine_46.endPoint())
SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_85")
SketchConstraintCoincidence_81 = Sketch_5.setCoincident(SketchArc_5.endPoint(), SketchLine_45.startPoint())
model.do()
Sketch_5.setName("Sketch_6")
Sketch_5.result().setName("Sketch_6")
-ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_6/Face-SketchArc_9_2f-SketchArc_10_2f-SketchLine_73r-SketchLine_74r-SketchLine_75r-SketchLine_76r"), model.selection("WIRE", "Sketch_6/Wire-SketchLine_58f-SketchLine_61f-SketchLine_60f-SketchLine_51f-SketchArc_4_2f-SketchArc_5_2f"), model.selection("WIRE", "Sketch_6/Wire-SketchLine_57f-SketchLine_47f-SketchLine_62f-SketchLine_63f-SketchArc_3_2f-SketchArc_6_2f")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_3_1")])
+ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_6/Wire-SketchArc_9_2f-SketchArc_10_2f-SketchLine_73r-SketchLine_74r-SketchLine_75r-SketchLine_76r"), model.selection("WIRE", "Sketch_6/Wire-SketchLine_58f-SketchLine_61f-SketchLine_60f-SketchLine_51f-SketchArc_4_2f-SketchArc_5_2f"), model.selection("WIRE", "Sketch_6/Wire-SketchLine_57f-SketchLine_47f-SketchLine_62f-SketchLine_63f-SketchArc_3_2f-SketchArc_6_2f")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_3_1")])
Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_4_1/Modfied_1"))
-SketchArc_11 = Sketch_6.addArc(44.88999999999999, -23.54999053274703, 43.88999999999999, -23.54999053274703, 44.88999999999999, -22.54999053274703, False)
-SketchArc_12 = Sketch_6.addArc(44.88999999999999, -13.54999053274703, 44.88999999999999, -14.54999053274703, 43.88999999999999, -13.54999053274703, False)
+SketchArc_11 = Sketch_6.addArc(44.89, -23.54999053274703, 43.89, -23.54999053274703, 44.89, -22.54999053274703, False)
+SketchArc_12 = Sketch_6.addArc(44.89, -13.54999053274703, 44.89, -14.54999053274703, 43.89, -13.54999053274703, False)
SketchArc_13 = Sketch_6.addArc(5.89, -13.54999053274703, 6.89, -13.54999053274703, 5.89, -14.54999053274703, False)
SketchArc_13.setName("SketchArc_14")
SketchArc_13.result().setName("SketchArc_14")
SketchArc_13.results()[1].setName("SketchArc_14_2")
-SketchLine_76 = Sketch_6.addLine(6.890000000000002, -23.54999053274703, 43.88999999999999, -23.54999053274703)
+SketchLine_76 = Sketch_6.addLine(6.89, -23.54999053274703, 43.89, -23.54999053274703)
SketchLine_76.setName("SketchLine_81")
SketchLine_76.result().setName("SketchLine_81")
SketchConstraintCoincidence_92 = Sketch_6.setCoincident(SketchArc_11.startPoint(), SketchLine_76.endPoint())
SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_98")
-SketchLine_77 = Sketch_6.addLine(6.89, -13.54999053274703, 43.88999999999999, -13.54999053274703)
+SketchLine_77 = Sketch_6.addLine(6.89, -13.54999053274703, 43.89, -13.54999053274703)
SketchLine_77.setName("SketchLine_82")
SketchLine_77.result().setName("SketchLine_82")
SketchConstraintCoincidence_93 = Sketch_6.setCoincident(SketchArc_13.startPoint(), SketchLine_77.startPoint())
SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_99")
-SketchLine_78 = Sketch_6.addLine(44.88999999999999, -22.54999053274703, 44.88999999999999, -14.54999053274703)
+SketchLine_78 = Sketch_6.addLine(44.89, -22.54999053274703, 44.89, -14.54999053274703)
SketchLine_78.setName("SketchLine_83")
SketchLine_78.result().setName("SketchLine_83")
SketchConstraintCoincidence_94 = Sketch_6.setCoincident(SketchArc_12.startPoint(), SketchLine_78.endPoint())
SketchLine_81.setName("SketchLine_86")
SketchLine_81.result().setName("SketchLine_86")
SketchConstraintDistance_13 = Sketch_6.setDistance(SketchLine_76.endPoint(), SketchLine_81.result(), 5.3)
-SketchArc_14 = Sketch_6.addArc(5.890000000000002, -23.54999053274703, 5.89, -22.54999053274703, 6.890000000000002, -23.54999053274703, False)
+SketchArc_14 = Sketch_6.addArc(5.89, -23.54999053274703, 5.89, -22.54999053274703, 6.89, -23.54999053274703, False)
SketchArc_14.setName("SketchArc_15")
SketchArc_14.result().setName("SketchArc_15")
SketchArc_14.results()[1].setName("SketchArc_15_2")
SketchArc_23.setName("SketchArc_24")
SketchArc_23.result().setName("SketchArc_24")
SketchArc_23.results()[1].setName("SketchArc_24_2")
-SketchPoint_9 = Sketch_6.addPoint(1.460819920296274e-014, -49.84999053274704)
+SketchPoint_9 = Sketch_6.addPoint(0, -49.84999053274704)
SketchPoint_9.setName("SketchPoint_11")
SketchPoint_9.result().setName("SketchPoint_11")
SketchConstraintCoincidence_112 = Sketch_6.setCoincident(SketchPoint_9.coordinates(), SketchLine_80.result())
model.do()
Sketch_6.setName("Sketch_7")
Sketch_6.result().setName("Sketch_7")
-ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_7/Wire-SketchArc_20_2f-SketchArc_21_2f-SketchArc_22_2f-SketchArc_23_2f-SketchLine_91r-SketchLine_92f-SketchLine_93r-SketchLine_94f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_52_2f-SketchArc_53_2f-SketchArc_56_2f-SketchArc_57_2f-SketchLine_114r-SketchLine_115f-SketchLine_116r-SketchLine_121f"), model.selection("FACE", "Sketch_7/Face-SketchArc_44_2f-SketchArc_45_2f-SketchArc_48_2f-SketchArc_49_2f-SketchLine_107f-SketchLine_113f-SketchLine_117r-SketchLine_123r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_16_2f-SketchArc_17_2f-SketchArc_18_2f-SketchArc_19_2f-SketchLine_87f-SketchLine_88f-SketchLine_89r-SketchLine_90r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_11_2f-SketchArc_12_2f-SketchArc_14_2f-SketchLine_81f-SketchLine_82r-SketchLine_83f-SketchLine_84r-SketchArc_15_2f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_36_2f-SketchArc_38_2f-SketchArc_40_2f-SketchArc_41_2f-SketchLine_108r-SketchLine_119r-SketchLine_127f-SketchLine_129f"), model.selection("FACE", "Sketch_7/Face-SketchArc_37_2f-SketchArc_39_2f-SketchArc_42_2f-SketchArc_43_2f-SketchLine_118r-SketchLine_120f-SketchLine_122r-SketchLine_130f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_24_2f-SketchArc_25_2f-SketchArc_26_2f-SketchArc_27_2f-SketchLine_98f-SketchLine_100r-SketchLine_101f-SketchLine_103r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_30_2f-SketchArc_31_2f-SketchArc_34_2f-SketchArc_35_2f-SketchLine_95f-SketchLine_96r-SketchLine_97f-SketchLine_105r"), model.selection("FACE", "Sketch_7/Face-SketchArc_46_2f-SketchArc_47_2f-SketchArc_50_2f-SketchArc_51_2f-SketchLine_124f-SketchLine_125r-SketchLine_126f-SketchLine_128r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_54_2f-SketchArc_55_2f-SketchArc_58_2f-SketchArc_59_2f-SketchLine_109f-SketchLine_110r-SketchLine_111r-SketchLine_112f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_28_2f-SketchArc_29_2f-SketchArc_32_2f-SketchArc_33_2f-SketchLine_99r-SketchLine_102f-SketchLine_104f-SketchLine_106r")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_4_1")])
+ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_7/Wire-SketchArc_20_2f-SketchArc_21_2f-SketchArc_22_2f-SketchArc_23_2f-SketchLine_91r-SketchLine_92f-SketchLine_93r-SketchLine_94f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_52_2f-SketchArc_53_2f-SketchArc_56_2f-SketchArc_57_2f-SketchLine_114r-SketchLine_115f-SketchLine_116r-SketchLine_121f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_44_2f-SketchArc_45_2f-SketchArc_48_2f-SketchArc_49_2f-SketchLine_107f-SketchLine_113f-SketchLine_117r-SketchLine_123r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_16_2f-SketchArc_17_2f-SketchArc_18_2f-SketchArc_19_2f-SketchLine_87f-SketchLine_88f-SketchLine_89r-SketchLine_90r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_11_2f-SketchArc_12_2f-SketchArc_14_2f-SketchLine_81f-SketchLine_82r-SketchLine_83f-SketchLine_84r-SketchArc_15_2f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_36_2f-SketchArc_38_2f-SketchArc_40_2f-SketchArc_41_2f-SketchLine_108r-SketchLine_119r-SketchLine_127f-SketchLine_129f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_37_2f-SketchArc_39_2f-SketchArc_42_2f-SketchArc_43_2f-SketchLine_118r-SketchLine_120f-SketchLine_122r-SketchLine_130f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_24_2f-SketchArc_25_2f-SketchArc_26_2f-SketchArc_27_2f-SketchLine_98f-SketchLine_100r-SketchLine_101f-SketchLine_103r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_30_2f-SketchArc_31_2f-SketchArc_34_2f-SketchArc_35_2f-SketchLine_95f-SketchLine_96r-SketchLine_97f-SketchLine_105r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_46_2f-SketchArc_47_2f-SketchArc_50_2f-SketchArc_51_2f-SketchLine_124f-SketchLine_125r-SketchLine_126f-SketchLine_128r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_54_2f-SketchArc_55_2f-SketchArc_58_2f-SketchArc_59_2f-SketchLine_109f-SketchLine_110r-SketchLine_111r-SketchLine_112f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_28_2f-SketchArc_29_2f-SketchArc_32_2f-SketchArc_33_2f-SketchLine_99r-SketchLine_102f-SketchLine_104f-SketchLine_106r")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_4_1")])
Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_5_1/Modfied_1"))
SketchLine_126 = Sketch_7.addLine(-153.5, -37.049990532747, -152.3000099350335, -37.0499905327475)
SketchLine_126.setName("SketchLine_135")
SketchLine_126.result().setName("SketchLine_135")
-SketchLine_127 = Sketch_7.addLine(-150.7999999999999, -38.54999290880026, -150.8, -43.54999111476925)
+SketchLine_127 = Sketch_7.addLine(-150.8, -38.54999290880026, -150.8, -43.54999111476925)
SketchLine_127.setName("SketchLine_138")
SketchLine_127.result().setName("SketchLine_138")
SketchPoint_10 = Sketch_7.addPoint(model.selection("VERTEX", "Sketch_6/Vertex-SketchLine_67s-SketchLine_68e-SketchLine_69e"))
SketchPoint_11.result().setName("SketchPoint_13")
SketchConstraintCoincidence_118 = Sketch_7.setCoincident(SketchLine_132.endPoint(), SketchPoint_11.result())
SketchConstraintCoincidence_118.setName("SketchConstraintCoincidence_125")
-SketchArc_59 = Sketch_7.addArc(-152.3, -38.54999053274712, -150.7999999999999, -38.54999290880026, -152.3000099350335, -37.0499905327475, False)
+SketchArc_59 = Sketch_7.addArc(-152.3, -38.54999053274712, -150.8, -38.54999290880026, -152.3000099350335, -37.0499905327475, False)
SketchArc_59.setName("SketchArc_60")
SketchArc_59.result().setName("SketchArc_60")
SketchArc_59.results()[1].setName("SketchArc_60_2")
-SketchLine_133 = Sketch_7.addLine(-150.7999999999999, -38.54999290880026, -150.8, -45.049990532747)
+SketchLine_133 = Sketch_7.addLine(-150.8, -38.54999290880026, -150.8, -45.049990532747)
SketchLine_133.setName("SketchLine_136")
SketchLine_133.result().setName("SketchLine_136")
SketchLine_133.setAuxiliary(True)
Sketch_7.result().setName("Sketch_8")
ExtrusionCut_6 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_8")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_5_1")])
Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_6_1/Modfied_2"))
-SketchLine_134 = Sketch_8.addLine(0.8499999999999983, 50.75, -0.8500000000000015, 50.75)
+SketchLine_134 = Sketch_8.addLine(0.85, 50.75, -0.85, 50.75)
SketchLine_134.setName("SketchLine_139")
SketchLine_134.result().setName("SketchLine_139")
-SketchLine_135 = Sketch_8.addLine(-0.8500000000000015, 47.45, 0.8499999999999983, 47.45)
+SketchLine_135 = Sketch_8.addLine(-0.85, 47.45, 0.85, 47.45)
SketchLine_135.setName("SketchLine_141")
SketchLine_135.result().setName("SketchLine_141")
SketchConstraintHorizontal_20 = Sketch_8.setHorizontal(SketchLine_134.result())
SketchConstraintHorizontal_21 = Sketch_8.setHorizontal(SketchLine_135.result())
-SketchArc_61 = Sketch_8.addArc(0.8499999999999999, 49.1, 0.8499999999999983, 47.45, 0.8499999999999983, 50.75, False)
+SketchArc_61 = Sketch_8.addArc(0.85, 49.1, 0.85, 47.45, 0.85, 50.75, False)
SketchArc_61.setName("SketchArc_63")
SketchArc_61.result().setName("SketchArc_63")
SketchArc_61.results()[1].setName("SketchArc_63_2")
SketchConstraintCoincidence_132 = Sketch_8.setCoincident(SketchArc_61.startPoint(), SketchLine_135.endPoint())
SketchConstraintCoincidence_132.setName("SketchConstraintCoincidence_148")
SketchConstraintDistance_17 = Sketch_8.setDistance(SketchLine_134.result(), SketchLine_135.endPoint(), 3.3)
-SketchLine_136 = Sketch_8.addLine(0.8499999999999983, 50.75, 0.8499999999999983, 47.45)
+SketchLine_136 = Sketch_8.addLine(0.85, 50.75, 0.85, 47.45)
SketchLine_136.setName("SketchLine_140")
SketchLine_136.result().setName("SketchLine_140")
SketchLine_136.setAuxiliary(True)
SketchConstraintCoincidence_135.setName("SketchConstraintCoincidence_140")
SketchConstraintCoincidence_136 = Sketch_8.setCoincident(SketchArc_61.startPoint(), SketchLine_136.endPoint())
SketchConstraintCoincidence_136.setName("SketchConstraintCoincidence_141")
-SketchLine_137 = Sketch_8.addLine(-0.8500000000000015, 50.75, -0.8500000000000015, 47.45)
+SketchLine_137 = Sketch_8.addLine(-0.85, 50.75, -0.85, 47.45)
SketchLine_137.setName("SketchLine_142")
SketchLine_137.result().setName("SketchLine_142")
SketchLine_137.setAuxiliary(True)
SketchConstraintLength_10.setName("SketchConstraintLength_11")
SketchConstraintVertical_17 = Sketch_8.setVertical(SketchLine_137.result())
SketchConstraintVertical_18 = Sketch_8.setVertical(SketchLine_136.result())
-SketchLine_138 = Sketch_8.addLine(0.8499999999999983, 50.75, -0.8500000000000015, 47.45)
+SketchLine_138 = Sketch_8.addLine(0.85, 50.75, -0.85, 47.45)
SketchLine_138.setName("SketchLine_143")
SketchLine_138.result().setName("SketchLine_143")
SketchLine_138.setAuxiliary(True)
SketchLine_139.result().setName("SketchLine_144")
SketchConstraintCoincidence_145 = Sketch_8.setCoincident(SketchPoint_12.coordinates(), SketchLine_139.result())
SketchConstraintCoincidence_145.setName("SketchConstraintCoincidence_157")
-SketchArc_62 = Sketch_8.addArc(-0.8500000000000004, 49.1, -0.8500000000000015, 50.75, -0.8500000000000015, 47.45, False)
+SketchArc_62 = Sketch_8.addArc(-0.85, 49.1, -0.85, 50.75, -0.85, 47.45, False)
SketchConstraintCoincidence_146 = Sketch_8.setCoincident(SketchLine_135.startPoint(), SketchArc_62.endPoint())
SketchConstraintCoincidence_146.setName("SketchConstraintCoincidence_149")
SketchConstraintCoincidence_147 = Sketch_8.setCoincident(SketchLine_137.endPoint(), SketchArc_62.endPoint())
Sketch_8.result().setName("Sketch_9")
ExtrusionCut_7 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_9/Face-SketchLine_147f-SketchLine_148f-SketchArc_64_2f-SketchArc_65_2f"), model.selection("FACE", "Sketch_9/Face-SketchLine_139f-SketchLine_141f-SketchArc_63_2f-SketchArc_62_2f"), model.selection("FACE", "Sketch_9/Face-SketchArc_66_2f-SketchArc_67_2f-SketchLine_149r-SketchLine_150r")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_6_1")])
model.do()
+
+# Test reexecution after parameter change
+Parameter_H.setValue(0.4)
+model.do()
+model.testResultsVolumes(ExtrusionCut_7, [5641.450357292746048187837004662])
+Parameter_H.setValue(0.3)
model.end()
from GeomAPI import GeomAPI_Shape
model.testNbSubResults(ExtrusionCut_7, [0])
model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.SOLID, [1])
model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.FACE, [156])
-model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.EDGE, [920])
-model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.VERTEX, [1840])
-model.testResultsVolumes(ExtrusionCut_7, [5345.689532925511230132542550564])
+model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.EDGE, [916])
+model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.VERTEX, [1832])
+model.testResultsVolumes(ExtrusionCut_7, [5345.689484659372283203992992640])
assert(model.checkPythonDump)