From: azv Date: Mon, 21 Jan 2019 10:02:35 +0000 (+0300) Subject: Fix naming problems in "big models". X-Git-Tag: Jan2019~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b0afc1e1097876d8adfc7e0410c9184e6a43b132;p=modules%2Fshaper.git Fix naming problems in "big models". --- diff --git a/test.models/CSWA.py b/test.models/CSWA.py index 98409756f..abb91a396 100644 --- a/test.models/CSWA.py +++ b/test.models/CSWA.py @@ -104,13 +104,13 @@ model.do() ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_2/Face-SketchCircle_1_2f_wire")], model.selection(), 0, 13, [model.selection("SOLID", "Extrusion_1_1")]) Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modified_Face&ExtrusionCut_1_1/From_Face")) SketchPoint_3 = Sketch_3.addPoint(model.selection("VERTEX", "ExtrusionCut_1_1/Generated_Vertex&ExtrusionCut_1_1/From_Face")) -SketchLine_11 = Sketch_3.addLine(model.selection("EDGE", "ExtrusionCut_1_1/Generated_Edge&ExtrusionCut_1_1/From_Face&weak_name_2")) +SketchLine_11 = Sketch_3.addLine(model.selection("EDGE", "([ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_1_2][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_9])([Extrusion_1_1/From_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_9])2([Extrusion_1_1/From_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_1_2])2([ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_9])2")) SketchArc_3 = Sketch_3.addArc(-15, 35.00000000000001, -15, 46.0103340429751, -17.02045759563166, 24.17663606626138, True) SketchConstraintCoincidence_16 = Sketch_3.setCoincident(SketchPoint_3.result(), SketchArc_3.center()) SketchConstraintCoincidence_16.setName("SketchConstraintCoincidence_17") SketchConstraintCoincidence_17 = Sketch_3.setCoincident(SketchLine_11.result(), SketchArc_3.startPoint()) SketchConstraintCoincidence_17.setName("SketchConstraintCoincidence_18") -SketchArc_4 = Sketch_3.addArc(model.selection("EDGE", "ExtrusionCut_1_1/Generated_Edge&ExtrusionCut_1_1/From_Face&weak_name_1")) +SketchArc_4 = Sketch_3.addArc(model.selection("EDGE", "([ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_1_2][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_9])([Extrusion_1_1/From_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchLine_9])2([Extrusion_1_1/From_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_1_2])2([ExtrusionCut_1_1/Modified_Face&Extrusion_1_1/To_Face][ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_1_2])2")) SketchConstraintCoincidence_18 = Sketch_3.setCoincident(SketchArc_3.endPoint(), SketchArc_4.results()[1]) SketchConstraintCoincidence_18.setName("SketchConstraintCoincidence_19") SketchLine_12 = Sketch_3.addLine(-15, 46.0103340429751, -15, 35.00000000000001) diff --git a/test.models/angle30.py b/test.models/angle30.py index 020917c8a..95f608999 100644 --- a/test.models/angle30.py +++ b/test.models/angle30.py @@ -29,34 +29,34 @@ Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) SketchLine_1 = Sketch_1.addLine(50, 70, 50, 9.237604307034024) SketchLine_1.setName("SketchLine_10") SketchLine_1.result().setName("SketchLine_10") -SketchLine_2 = Sketch_1.addLine(42, -4.618802153516998, -53.92304845413265, -59.99999999999996) +SketchLine_2 = Sketch_1.addLine(42, -4.618802153516998, -53.92304845413265, -60) SketchLine_2.setName("SketchLine_11") SketchLine_2.result().setName("SketchLine_11") SketchLine_3 = Sketch_1.addLine(50, 70, 50, 0) SketchLine_3.setName("SketchLine_1") SketchLine_3.result().setName("SketchLine_1") SketchLine_3.setAuxiliary(True) -SketchLine_4 = Sketch_1.addLine(50, 0, -53.92304845413265, -59.99999999999996) +SketchLine_4 = Sketch_1.addLine(50, 0, -53.92304845413265, -60) SketchLine_4.setName("SketchLine_2") SketchLine_4.result().setName("SketchLine_2") SketchLine_4.setAuxiliary(True) SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint()) -SketchLine_5 = Sketch_1.addLine(44, 9.237604307034019, 44, 70) +SketchLine_5 = Sketch_1.addLine(44, 9.237604307034037, 44, 70) SketchLine_5.setName("SketchLine_8") SketchLine_5.result().setName("SketchLine_8") -SketchLine_6 = Sketch_1.addLine(-53.92304845413265, -59.99999999999996, -56.92304845413265, -54.80384757729332) +SketchLine_6 = Sketch_1.addLine(-53.92304845413265, -60, -56.92304845413265, -54.80384757729332) SketchLine_6.setName("SketchLine_3") SketchLine_6.result().setName("SketchLine_3") SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_6.startPoint()) -SketchLine_7 = Sketch_1.addLine(-56.92304845413265, -54.80384757729332, 38.99999999999999, 0.5773502691896226) +SketchLine_7 = Sketch_1.addLine(-56.92304845413265, -54.80384757729332, 39, 0.5773502691896394) SketchLine_7.setName("SketchLine_9") SketchLine_7.result().setName("SketchLine_9") -SketchLine_8 = Sketch_1.addLine(-56.92304845413265, -54.80384757729332, 44, 3.464101615137744) +SketchLine_8 = Sketch_1.addLine(-56.92304845413265, -54.80384757729332, 44, 3.464101615137764) SketchLine_8.setName("SketchLine_4") SketchLine_8.result().setName("SketchLine_4") SketchLine_8.setAuxiliary(True) SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_8.startPoint()) -SketchLine_9 = Sketch_1.addLine(44, 3.464101615137744, 44, 70) +SketchLine_9 = Sketch_1.addLine(44, 3.464101615137764, 44, 70) SketchLine_9.setName("SketchLine_5") SketchLine_9.result().setName("SketchLine_5") SketchLine_9.setAuxiliary(True) @@ -74,7 +74,7 @@ SketchLine_11 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OZ")) SketchLine_11.setName("SketchLine_7") SketchLine_11.result().setName("SketchLine_7") SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_3.startPoint(), SketchLine_11.result(), 50, False) -SketchArc_1 = Sketch_1.addArc(34, 9.237604307034017, 38.99999999999999, 0.5773502691896226, 44, 9.237604307034019, False) +SketchArc_1 = Sketch_1.addArc(34, 9.237604307034037, 39, 0.5773502691896394, 44, 9.237604307034037, False) SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_7.endPoint()) SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_5.startPoint()) SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_5.result()) @@ -101,21 +101,17 @@ SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_4.startPoint(), Ske SketchLine_12 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OY")) SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_4.startPoint(), SketchLine_12.result()) SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_2.results()[1], 16) -SketchConstraintRadius_1.setName("SketchConstraintRadius_3") SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_1.results()[1], 10) -SketchConstraintRadius_2.setName("SketchConstraintRadius_4") model.do() Sketch_2 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) SketchCircle_1 = Sketch_2.addCircle(0, 0, 17.5) SketchPoint_1 = Sketch_2.addPoint(model.selection("VERTEX", "PartSet/Origin")) SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchPoint_1.result()) SketchConstraintRadius_3 = Sketch_2.setRadius(SketchCircle_1.results()[1], 17.5) -SketchConstraintRadius_3.setName("SketchConstraintRadius_1") SketchCircle_2 = Sketch_2.addCircle(0, 0, 14.5) SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchCircle_2.center()) SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchPoint_1.coordinates(), SketchCircle_2.center()) SketchConstraintRadius_4 = Sketch_2.setRadius(SketchCircle_2.results()[1], 14.5) -SketchConstraintRadius_4.setName("SketchConstraintRadius_2") model.do() Sketch_3 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) SketchLine_13 = Sketch_3.addLine(-22, 70, -22, -35.79571668975675) @@ -142,7 +138,7 @@ Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_2/ Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), 22, 22) Common_1 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1")], [model.selection("SOLID", "Extrusion_2_1")]) Sketch_4 = model.addSketch(Part_1_doc, model.standardPlane("XOY")) -SketchLine_20 = Sketch_4.addLine(-4, 38.00000000000001, -4, 21.26617031813674) +SketchLine_20 = Sketch_4.addLine(-4, 38, -4, 21.26617031813674) SketchLine_20.setName("SketchLine_36") SketchLine_20.result().setName("SketchLine_36") SketchArc_3 = Sketch_4.addArc(0, 0, -8.5, 15.2970585407786, -7.446808510638298, 15.83650981137842, True) @@ -153,58 +149,52 @@ SketchArc_4 = Sketch_4.addArc(0, 0, 7.446808510638299, 15.83650981137842, 8.5, 1 SketchArc_4.setName("SketchArc_8") SketchArc_4.result().setName("SketchArc_8") SketchArc_4.results()[1].setName("SketchArc_8_2") -SketchLine_21 = Sketch_4.addLine(4, 21.26617031813674, 4, 37.99999998819019) +SketchLine_21 = Sketch_4.addLine(4, 21.26617031813674, 4, 38) SketchLine_21.setName("SketchLine_38") SketchLine_21.result().setName("SketchLine_38") -SketchLine_22 = Sketch_4.addLine(-8.5, 15.2970585407786, -8.499999999999998, 12) +SketchLine_22 = Sketch_4.addLine(-8.5, 15.2970585407786, -8.5, 12) SketchLine_22.setName("SketchLine_22") SketchLine_22.result().setName("SketchLine_22") -SketchLine_23 = Sketch_4.addLine(-10.1, 44.00000000000001, -9.999999999999854, 44.00000000000001) +SketchLine_23 = Sketch_4.addLine(-10.1, 44, -10, 44) SketchLine_23.setName("SketchLine_37") SketchLine_23.result().setName("SketchLine_37") -SketchLine_24 = Sketch_4.addLine(9.99999999990029, 43.99999998819102, 10.1, 44) +SketchLine_24 = Sketch_4.addLine(10, 44, 10.1, 44) SketchLine_24.setName("SketchLine_39") SketchLine_24.result().setName("SketchLine_39") SketchLine_25 = Sketch_4.addLine(8.5, 12, 8.5, 15.29705854077835) SketchLine_25.setName("SketchLine_24") SketchLine_25.result().setName("SketchLine_24") -SketchLine_26 = Sketch_4.addLine(4, 44.00000000000001, 10.1, 44) +SketchLine_26 = Sketch_4.addLine(4, 44, 10.1, 44) SketchLine_26.setName("SketchLine_26") SketchLine_26.result().setName("SketchLine_26") SketchLine_26.setAuxiliary(True) -SketchLine_27 = Sketch_4.addLine(4, 17.03672503740084, 4, 44.00000000000001) +SketchLine_27 = Sketch_4.addLine(4, 17.03672503740084, 4, 44) SketchLine_27.setName("SketchLine_27") SketchLine_27.result().setName("SketchLine_27") SketchLine_27.setAuxiliary(True) SketchConstraintCoincidence_27 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_26.startPoint()) -SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_33") -SketchLine_28 = Sketch_4.addLine(10.1, 44, 10.1, 45.00000000000001) +SketchLine_28 = Sketch_4.addLine(10.1, 44, 10.1, 45) SketchLine_28.setName("SketchLine_28") SketchLine_28.result().setName("SketchLine_28") SketchConstraintCoincidence_28 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_28.startPoint()) -SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_34") -SketchLine_29 = Sketch_4.addLine(10.1, 45.00000000000001, -10.1, 45) +SketchLine_29 = Sketch_4.addLine(10.1, 45, -10.1, 45) SketchLine_29.setName("SketchLine_29") SketchLine_29.result().setName("SketchLine_29") SketchConstraintCoincidence_29 = Sketch_4.setCoincident(SketchLine_28.endPoint(), SketchLine_29.startPoint()) -SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_35") -SketchLine_30 = Sketch_4.addLine(-10.1, 45, -10.1, 44.00000000000001) +SketchLine_30 = Sketch_4.addLine(-10.1, 45, -10.1, 44) SketchLine_30.setName("SketchLine_30") SketchLine_30.result().setName("SketchLine_30") SketchConstraintCoincidence_30 = Sketch_4.setCoincident(SketchLine_29.endPoint(), SketchLine_30.startPoint()) -SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_36") -SketchLine_31 = Sketch_4.addLine(-10.1, 44.00000000000001, -4, 44.00000000000001) +SketchLine_31 = Sketch_4.addLine(-10.1, 44, -4, 44) SketchLine_31.setName("SketchLine_31") SketchLine_31.result().setName("SketchLine_31") SketchLine_31.setAuxiliary(True) SketchConstraintCoincidence_31 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint()) -SketchConstraintCoincidence_31.setName("SketchConstraintCoincidence_37") -SketchLine_32 = Sketch_4.addLine(-4, 44.00000000000001, -4.000000000000001, 17.03672503740078) +SketchLine_32 = Sketch_4.addLine(-4, 44, -4, 17.03672503740078) SketchLine_32.setName("SketchLine_20") SketchLine_32.result().setName("SketchLine_20") SketchLine_32.setAuxiliary(True) SketchConstraintCoincidence_32 = Sketch_4.setCoincident(SketchLine_32.startPoint(), SketchLine_31.endPoint()) -SketchConstraintCoincidence_32.setName("SketchConstraintCoincidence_38") SketchConstraintVertical_5 = Sketch_4.setVertical(SketchLine_32.result()) SketchConstraintVertical_6 = Sketch_4.setVertical(SketchLine_27.result()) SketchConstraintHorizontal_3 = Sketch_4.setHorizontal(SketchLine_29.result()) @@ -218,156 +208,110 @@ SketchLine_33 = Sketch_4.addLine(model.selection("EDGE", "PartSet/OY")) SketchLine_33.setName("SketchLine_32") SketchLine_33.result().setName("SketchLine_32") SketchConstraintDistance_10 = Sketch_4.setDistance(SketchLine_22.startPoint(), SketchLine_32.result(), 4.5, False) -SketchConstraintDistance_10.setName("SketchConstraintDistance_13") -SketchLine_34 = Sketch_4.addLine(-8.499999999999998, 12, 8.5, 12) +SketchLine_34 = Sketch_4.addLine(-8.5, 12, 8.5, 12) SketchLine_34.setName("SketchLine_33") SketchLine_34.result().setName("SketchLine_33") SketchConstraintCoincidence_33 = Sketch_4.setCoincident(SketchLine_22.endPoint(), SketchLine_34.startPoint()) -SketchConstraintCoincidence_33.setName("SketchConstraintCoincidence_39") SketchConstraintHorizontal_6 = Sketch_4.setHorizontal(SketchLine_34.result()) SketchPoint_2 = Sketch_4.addPoint(model.selection("VERTEX", "PartSet/Origin")) -SketchArc_5 = Sketch_4.addArc(-1.190531714553335e-011, 2.149585003540736e-011, -8.5, 15.2970585407786, -4.000000000000001, 17.03672503740078, True) +SketchArc_5 = Sketch_4.addArc(0, 0, -8.5, 15.29705854, -4, 17.0367250374, True) SketchArc_5.setName("SketchArc_4") SketchArc_5.result().setName("SketchArc_4") SketchArc_5.results()[1].setName("SketchArc_4_2") SketchArc_5.setAuxiliary(True) SketchConstraintCoincidence_34 = Sketch_4.setCoincident(SketchLine_22.startPoint(), SketchArc_5.startPoint()) -SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_41") -SketchArc_6 = Sketch_4.addArc(-2.234785556504386e-013, -4.022299956989981e-013, 4, 17.03672503740084, 8.5, 15.29705854077835, True) +SketchArc_6 = Sketch_4.addArc(0, 0, 4, 17.0367250374, 8.5, 15.29705854, True) SketchArc_6.setName("SketchArc_5") SketchArc_6.result().setName("SketchArc_5") SketchArc_6.results()[1].setName("SketchArc_5_2") SketchArc_6.setAuxiliary(True) SketchConstraintCoincidence_35 = Sketch_4.setCoincident(SketchLine_25.endPoint(), SketchArc_6.endPoint()) -SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_42") -SketchPoint_3 = Sketch_4.addPoint(-4.000000000000001, 17.03672503740078) +SketchPoint_3 = Sketch_4.addPoint(-4, 17.03672503740078) SketchPoint_4 = Sketch_4.addPoint(4, 17.03672503740084) SketchConstraintCoincidence_36 = Sketch_4.setCoincident(SketchArc_5.endPoint(), SketchPoint_3.coordinates()) -SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_46") SketchConstraintCoincidence_37 = Sketch_4.setCoincident(SketchArc_6.startPoint(), SketchPoint_4.coordinates()) -SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_48") SketchConstraintCoincidence_38 = Sketch_4.setCoincident(SketchArc_5.endPoint(), SketchLine_32.endPoint()) -SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_40") SketchConstraintCoincidence_39 = Sketch_4.setCoincident(SketchPoint_4.coordinates(), SketchLine_27.startPoint()) -SketchConstraintCoincidence_39.setName("SketchConstraintCoincidence_43") SketchArc_7 = Sketch_4.addArc(-10, 21.26617031813674, -7.446808510638298, 15.83650981137842, -4, 21.26617031813674, False) SketchArc_7.setName("SketchArc_7") SketchArc_7.result().setName("SketchArc_7") SketchArc_7.results()[1].setName("SketchArc_7_2") SketchConstraintCoincidence_40 = Sketch_4.setCoincident(SketchArc_7.startPoint(), SketchArc_3.endPoint()) -SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_44") -SketchLine_35 = Sketch_4.addLine(-4, 44.00000000000001, -4, 21.26617031813674) +SketchLine_35 = Sketch_4.addLine(-4, 44, -4, 21.26617031813674) SketchLine_35.setName("SketchLine_34") SketchLine_35.result().setName("SketchLine_34") SketchLine_35.setAuxiliary(True) SketchConstraintCoincidence_41 = Sketch_4.setCoincident(SketchArc_7.endPoint(), SketchLine_35.endPoint()) -SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_45") SketchConstraintTangent_5 = Sketch_4.setTangent(SketchArc_7.results()[1], SketchLine_35.result()) SketchConstraintTangent_6 = Sketch_4.setTangent(SketchArc_7.results()[1], SketchArc_3.results()[1]) SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_32.startPoint(), SketchLine_35.startPoint()) -SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_47") SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchArc_5.startPoint(), SketchArc_3.startPoint()) -SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_49") SketchConstraintTangent_7 = Sketch_4.setTangent(SketchArc_5.results()[1], SketchArc_3.results()[1]) SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_35.endPoint(), SketchLine_32.result()) -SketchConstraintCoincidence_44.setName("SketchConstraintCoincidence_50") SketchConstraintCoincidence_45 = Sketch_4.setCoincident(SketchArc_3.endPoint(), SketchArc_5.results()[1]) -SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_51") SketchArc_8 = Sketch_4.addArc(10, 21.26617031813674, 4, 21.26617031813674, 7.446808510638299, 15.83650981137842, False) SketchArc_8.setName("SketchArc_9") SketchArc_8.result().setName("SketchArc_9") SketchArc_8.results()[1].setName("SketchArc_9_2") -SketchLine_36 = Sketch_4.addLine(4, 21.26617031813674, 4, 44.00000000000001) +SketchLine_36 = Sketch_4.addLine(4, 21.26617031813674, 4, 44) SketchLine_36.setName("SketchLine_35") SketchLine_36.result().setName("SketchLine_35") SketchLine_36.setAuxiliary(True) SketchConstraintCoincidence_46 = Sketch_4.setCoincident(SketchArc_8.startPoint(), SketchLine_36.startPoint()) -SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_52") SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchArc_8.endPoint(), SketchArc_4.startPoint()) -SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_53") SketchConstraintTangent_8 = Sketch_4.setTangent(SketchArc_8.results()[1], SketchArc_4.results()[1]) SketchConstraintTangent_9 = Sketch_4.setTangent(SketchArc_8.results()[1], SketchLine_36.result()) SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchArc_6.endPoint(), SketchArc_4.endPoint()) -SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_54") SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_36.endPoint()) -SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_55") SketchConstraintTangent_10 = Sketch_4.setTangent(SketchArc_6.results()[1], SketchArc_4.results()[1]) SketchConstraintCoincidence_50 = Sketch_4.setCoincident(SketchArc_4.startPoint(), SketchArc_6.results()[1]) -SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_56") SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_36.startPoint(), SketchLine_27.result()) -SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_57") SketchConstraintCoincidence_52 = Sketch_4.setCoincident(SketchLine_25.startPoint(), SketchLine_34.endPoint()) -SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_58") SketchCircle_3 = Sketch_4.addCircle(model.selection("EDGE", "Sketch_2/SketchCircle_1_2")) SketchConstraintCoincidence_53 = Sketch_4.setCoincident(SketchLine_22.startPoint(), SketchCircle_3.results()[1]) -SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_59") SketchConstraintCoincidence_54 = Sketch_4.setCoincident(SketchArc_4.endPoint(), SketchCircle_3.results()[1]) -SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_60") SketchConstraintRadius_5 = Sketch_4.setRadius(SketchArc_7.results()[1], 6) SketchConstraintRadius_6 = Sketch_4.setRadius(SketchArc_8.results()[1], 6) SketchConstraintDistance_11 = Sketch_4.setDistance(SketchLine_25.endPoint(), SketchLine_36.result(), 4.5, False) -SketchConstraintDistance_11.setName("SketchConstraintDistance_11") SketchConstraintDistance_12 = Sketch_4.setDistance(SketchArc_8.startPoint(), SketchLine_33.result(), 4, False) -SketchConstraintDistance_12.setName("SketchConstraintDistance_12") SketchConstraintDistance_13 = Sketch_4.setDistance(SketchArc_7.endPoint(), SketchLine_33.result(), 4, False) -SketchConstraintDistance_13.setName("SketchConstraintDistance_14") -SketchArc_9 = Sketch_4.addArc(-10, 38.00000000000001, -4, 38.00000000000001, -9.999999999999854, 44.00000000000001, False) +SketchArc_9 = Sketch_4.addArc(-10, 38, -4, 38, -10, 44, False) SketchArc_9.setName("SketchArc_10") SketchArc_9.result().setName("SketchArc_10") SketchArc_9.results()[1].setName("SketchArc_10_2") SketchConstraintCoincidence_55 = Sketch_4.setCoincident(SketchArc_9.startPoint(), SketchLine_20.startPoint()) -SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_61") SketchConstraintCoincidence_56 = Sketch_4.setCoincident(SketchArc_9.endPoint(), SketchLine_23.endPoint()) -SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_62") SketchConstraintTangent_11 = Sketch_4.setTangent(SketchArc_9.results()[1], SketchLine_20.result()) SketchConstraintTangent_12 = Sketch_4.setTangent(SketchArc_9.results()[1], SketchLine_23.result()) SketchConstraintCoincidence_57 = Sketch_4.setCoincident(SketchLine_35.endPoint(), SketchLine_20.endPoint()) -SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_63") SketchConstraintCoincidence_58 = Sketch_4.setCoincident(SketchLine_31.startPoint(), SketchLine_23.startPoint()) -SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_64") SketchConstraintCoincidence_59 = Sketch_4.setCoincident(SketchLine_20.startPoint(), SketchLine_35.result()) -SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_65") SketchConstraintCoincidence_60 = Sketch_4.setCoincident(SketchLine_23.endPoint(), SketchLine_31.result()) -SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_66") -SketchArc_10 = Sketch_4.addArc(10, 37.99999999999996, 9.99999999990029, 43.99999998819102, 4, 37.99999998819019, False) +SketchArc_10 = Sketch_4.addArc(10, 38, 10, 44, 4, 38, False) SketchArc_10.setName("SketchArc_11") SketchArc_10.result().setName("SketchArc_11") SketchArc_10.results()[1].setName("SketchArc_11_2") SketchConstraintCoincidence_61 = Sketch_4.setCoincident(SketchArc_10.startPoint(), SketchLine_24.startPoint()) -SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_67") SketchConstraintCoincidence_62 = Sketch_4.setCoincident(SketchArc_10.endPoint(), SketchLine_21.endPoint()) -SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_68") SketchConstraintTangent_13 = Sketch_4.setTangent(SketchArc_10.results()[1], SketchLine_21.result()) SketchConstraintTangent_14 = Sketch_4.setTangent(SketchArc_10.results()[1], SketchLine_24.result()) SketchConstraintCoincidence_63 = Sketch_4.setCoincident(SketchLine_36.startPoint(), SketchLine_21.startPoint()) -SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_69") SketchConstraintCoincidence_64 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_24.endPoint()) -SketchConstraintCoincidence_64.setName("SketchConstraintCoincidence_70") SketchConstraintCoincidence_65 = Sketch_4.setCoincident(SketchLine_21.endPoint(), SketchLine_36.result()) -SketchConstraintCoincidence_65.setName("SketchConstraintCoincidence_71") SketchConstraintCoincidence_66 = Sketch_4.setCoincident(SketchLine_24.startPoint(), SketchLine_26.result()) -SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_72") SketchConstraintRadius_7 = Sketch_4.setRadius(SketchArc_9.results()[1], 6) SketchConstraintRadius_8 = Sketch_4.setRadius(SketchArc_10.results()[1], 6) SketchConstraintDistance_14 = Sketch_4.setDistance(SketchLine_23.startPoint(), SketchLine_29.result(), 1, False) -SketchConstraintDistance_14.setName("SketchConstraintDistance_15") SketchConstraintDistance_15 = Sketch_4.setDistance(SketchLine_24.endPoint(), SketchLine_29.result(), 1, False) -SketchConstraintDistance_15.setName("SketchConstraintDistance_16") SketchLine_37 = Sketch_4.addLine(model.selection("EDGE", "PartSet/OX")) SketchLine_37.setName("SketchLine_40") SketchLine_37.result().setName("SketchLine_40") SketchConstraintDistance_16 = Sketch_4.setDistance(SketchArc_10.startPoint(), SketchLine_37.result(), 44, False) -SketchConstraintDistance_16.setName("SketchConstraintDistance_17") SketchConstraintDistance_17 = Sketch_4.setDistance(SketchLine_21.result(), SketchLine_24.endPoint(), 6.1, False) -SketchConstraintDistance_17.setName("SketchConstraintDistance_18") SketchConstraintDistance_18 = Sketch_4.setDistance(SketchLine_30.endPoint(), SketchLine_20.result(), 6.1, False) -SketchConstraintDistance_18.setName("SketchConstraintDistance_19") SketchConstraintCoincidence_67 = Sketch_4.setCoincident(SketchArc_3.center(), SketchCircle_3.center()) -SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_149") SketchConstraintCoincidence_68 = Sketch_4.setCoincident(SketchArc_4.center(), SketchArc_3.center()) -SketchConstraintCoincidence_68.setName("SketchConstraintCoincidence_150") SketchConstraintDistance_19 = Sketch_4.setDistance(SketchArc_4.center(), SketchLine_34.result(), 12, False) -SketchConstraintDistance_19.setName("SketchConstraintDistance_43") model.do() Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_4")], model.selection(), 50, 30) Extrusion_4 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), 22, 22) @@ -376,78 +320,68 @@ Extrusion_5 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketc Extrusion_6 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchCircle_2_2f")], model.selection(), 75, 40) Common_3 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Extrusion_6_1")], [model.selection("SOLID", "Extrusion_5_1")]) Sketch_5 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ")) -SketchLine_38 = Sketch_5.addLine(44, 3.464101615137744, 16.50000000000003, 51.09549882328188) +SketchLine_38 = Sketch_5.addLine(44, 3.464101615137764, 16.5, 51.0954988232819) SketchLine_38.setName("SketchLine_41") SketchLine_38.result().setName("SketchLine_41") SketchPoint_5 = Sketch_5.addPoint(model.selection("VERTEX", "Sketch_1/SketchLine_4_EndVertex")) SketchConstraintCoincidence_69 = Sketch_5.setCoincident(SketchLine_38.startPoint(), SketchPoint_5.result()) -SketchConstraintCoincidence_69.setName("SketchConstraintCoincidence_73") SketchLine_39 = Sketch_5.addLine(model.selection("EDGE", "Sketch_1/SketchLine_4")) SketchLine_39.setName("SketchLine_42") SketchLine_39.result().setName("SketchLine_42") SketchConstraintPerpendicular_2 = Sketch_5.setPerpendicular(SketchLine_38.result(), SketchLine_39.result()) SketchConstraintLength_1 = Sketch_5.setLength(SketchLine_38.result(), 55) -SketchConstraintLength_1.setName("SketchConstraintLength_6") model.do() Axis_4 = model.addAxis(Part_1_doc, model.selection("FACE", "Sketch_1/Face-SketchLine_6r-SketchLine_8r-SketchArc_1_2r-SketchLine_9r-SketchLine_3r-SketchLine_11r-SketchArc_2_2f-SketchLine_10r"), model.selection("VERTEX", "Sketch_1/SketchLine_4_EndVertex")) Plane_4 = model.addPlane(Part_1_doc, model.selection("EDGE", "Axis_1"), model.selection("VERTEX", "Sketch_5/SketchLine_41_EndVertex"), False) Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1")) -SketchLine_40 = Sketch_6.addLine(3.999999999999999, 13.00000000002605, 4, 12.89999999999998) +SketchLine_40 = Sketch_6.addLine(4, 13, 4, 12.9) SketchLine_40.setName("SketchLine_55") SketchLine_40.result().setName("SketchLine_55") -SketchLine_41 = Sketch_6.addLine(4, 12.89999999999998, -4, 12.89999999999998) +SketchLine_41 = Sketch_6.addLine(4, 12.9, -4, 12.9) SketchLine_41.setName("SketchLine_44") SketchLine_41.result().setName("SketchLine_44") -SketchLine_42 = Sketch_6.addLine(4, 19.00000000002614, 4, 12.89999999999998) +SketchLine_42 = Sketch_6.addLine(4, 19, 4, 12.9) SketchLine_42.setName("SketchLine_43") SketchLine_42.result().setName("SketchLine_43") SketchLine_42.setAuxiliary(True) SketchConstraintCoincidence_70 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_41.startPoint()) -SketchConstraintCoincidence_70.setName("SketchConstraintCoincidence_74") -SketchLine_43 = Sketch_6.addLine(-4, 12.89999999999998, -4.000000000000001, 13.00000000002612) +SketchLine_43 = Sketch_6.addLine(-4, 12.9, -4, 13) SketchLine_43.setName("SketchLine_52") SketchLine_43.result().setName("SketchLine_52") -SketchLine_44 = Sketch_6.addLine(-9.999999999999867, 19.00000000002614, -10.09999999999998, 19.00000000002614) +SketchLine_44 = Sketch_6.addLine(-10, 19, -10.1, 19) SketchLine_44.setName("SketchLine_53") SketchLine_44.result().setName("SketchLine_53") -SketchLine_45 = Sketch_6.addLine(-4, 12.89999999999998, -4, 19.00000000002614) +SketchLine_45 = Sketch_6.addLine(-4, 12.9, -4, 19) SketchLine_45.setName("SketchLine_45") SketchLine_45.result().setName("SketchLine_45") SketchLine_45.setAuxiliary(True) SketchConstraintCoincidence_71 = Sketch_6.setCoincident(SketchLine_41.endPoint(), SketchLine_45.startPoint()) -SketchConstraintCoincidence_71.setName("SketchConstraintCoincidence_75") -SketchLine_46 = Sketch_6.addLine(10.09999999999999, 19.00000000002614, 9.999999999999858, 19.00000000002614) +SketchLine_46 = Sketch_6.addLine(10.1, 19, 10, 19) SketchLine_46.setName("SketchLine_54") SketchLine_46.result().setName("SketchLine_54") -SketchLine_47 = Sketch_6.addLine(-4, 19.00000000002614, -10.09999999999998, 19.00000000002614) +SketchLine_47 = Sketch_6.addLine(-4, 19, -10.1, 19) SketchLine_47.setName("SketchLine_46") SketchLine_47.result().setName("SketchLine_46") SketchLine_47.setAuxiliary(True) SketchConstraintCoincidence_72 = Sketch_6.setCoincident(SketchLine_45.endPoint(), SketchLine_47.startPoint()) -SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_76") -SketchLine_48 = Sketch_6.addLine(-10.09999999999998, 19.00000000002614, -10.09999999999998, 19.80000000002615) +SketchLine_48 = Sketch_6.addLine(-10.1, 19, -10.1, 19.8) SketchLine_48.setName("SketchLine_47") SketchLine_48.result().setName("SketchLine_47") SketchConstraintCoincidence_73 = Sketch_6.setCoincident(SketchLine_47.endPoint(), SketchLine_48.startPoint()) -SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_77") -SketchLine_49 = Sketch_6.addLine(-10.09999999999998, 19.80000000002615, 10.09999999999999, 19.80000000002615) +SketchLine_49 = Sketch_6.addLine(-10.1, 19.8, 10.1, 19.8) SketchLine_49.setName("SketchLine_48") SketchLine_49.result().setName("SketchLine_48") SketchConstraintCoincidence_74 = Sketch_6.setCoincident(SketchLine_48.endPoint(), SketchLine_49.startPoint()) -SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_78") -SketchLine_50 = Sketch_6.addLine(10.09999999999999, 19.80000000002615, 10.09999999999999, 19.00000000002614) +SketchLine_50 = Sketch_6.addLine(10.1, 19.8, 10.1, 19) SketchLine_50.setName("SketchLine_49") SketchLine_50.result().setName("SketchLine_49") SketchConstraintCoincidence_75 = Sketch_6.setCoincident(SketchLine_49.endPoint(), SketchLine_50.startPoint()) -SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_79") -SketchLine_51 = Sketch_6.addLine(10.09999999999999, 19.00000000002614, 4, 19.00000000002614) +SketchLine_51 = Sketch_6.addLine(10.1, 19, 4, 19) SketchLine_51.setName("SketchLine_50") SketchLine_51.result().setName("SketchLine_50") SketchLine_51.setAuxiliary(True) SketchConstraintCoincidence_76 = Sketch_6.setCoincident(SketchLine_50.endPoint(), SketchLine_51.startPoint()) -SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_80") SketchConstraintCoincidence_77 = Sketch_6.setCoincident(SketchLine_42.startPoint(), SketchLine_51.endPoint()) -SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_81") SketchConstraintVertical_11 = Sketch_6.setVertical(SketchLine_45.result()) SketchConstraintVertical_12 = Sketch_6.setVertical(SketchLine_42.result()) SketchConstraintHorizontal_7 = Sketch_6.setHorizontal(SketchLine_41.result()) @@ -456,66 +390,46 @@ SketchConstraintHorizontal_9 = Sketch_6.setHorizontal(SketchLine_51.result()) SketchConstraintHorizontal_10 = Sketch_6.setHorizontal(SketchLine_49.result()) SketchConstraintVertical_13 = Sketch_6.setVertical(SketchLine_50.result()) SketchConstraintDistance_20 = Sketch_6.setDistance(SketchLine_48.startPoint(), SketchLine_49.result(), 0.8, False) -SketchConstraintDistance_20.setName("SketchConstraintDistance_20") SketchConstraintDistance_21 = Sketch_6.setDistance(SketchLine_51.startPoint(), SketchLine_49.result(), 0.8, False) -SketchConstraintDistance_21.setName("SketchConstraintDistance_21") SketchLine_52 = Sketch_6.addLine(model.selection("EDGE", "Sketch_5/SketchLine_41")) SketchLine_52.setName("SketchLine_51") SketchLine_52.result().setName("SketchLine_51") SketchConstraintDistance_22 = Sketch_6.setDistance(SketchLine_45.startPoint(), SketchLine_52.result(), 4, False) -SketchConstraintDistance_22.setName("SketchConstraintDistance_22") SketchConstraintDistance_23 = Sketch_6.setDistance(SketchLine_42.endPoint(), SketchLine_52.result(), 4, False) -SketchConstraintDistance_23.setName("SketchConstraintDistance_23") -SketchArc_11 = Sketch_6.addArc(-10, 13.00000000002614, -4.000000000000001, 13.00000000002612, -9.999999999999867, 19.00000000002614, False) +SketchArc_11 = Sketch_6.addArc(-10, 13, -4, 13, -10, 19, False) SketchArc_11.setName("SketchArc_12") SketchArc_11.result().setName("SketchArc_12") SketchArc_11.results()[1].setName("SketchArc_12_2") SketchConstraintCoincidence_78 = Sketch_6.setCoincident(SketchArc_11.startPoint(), SketchLine_43.endPoint()) -SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_82") SketchConstraintCoincidence_79 = Sketch_6.setCoincident(SketchArc_11.endPoint(), SketchLine_44.startPoint()) -SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_83") SketchConstraintTangent_15 = Sketch_6.setTangent(SketchArc_11.results()[1], SketchLine_43.result()) SketchConstraintTangent_16 = Sketch_6.setTangent(SketchArc_11.results()[1], SketchLine_44.result()) SketchConstraintCoincidence_80 = Sketch_6.setCoincident(SketchLine_45.startPoint(), SketchLine_43.startPoint()) -SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_84") SketchConstraintCoincidence_81 = Sketch_6.setCoincident(SketchLine_47.endPoint(), SketchLine_44.endPoint()) -SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_85") SketchConstraintCoincidence_82 = Sketch_6.setCoincident(SketchLine_43.endPoint(), SketchLine_45.result()) -SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_86") SketchConstraintCoincidence_83 = Sketch_6.setCoincident(SketchLine_44.startPoint(), SketchLine_47.result()) -SketchConstraintCoincidence_83.setName("SketchConstraintCoincidence_87") -SketchArc_12 = Sketch_6.addArc(9.999999999999998, 13.00000000002614, 9.999999999999858, 19.00000000002614, 3.999999999999999, 13.00000000002605, False) +SketchArc_12 = Sketch_6.addArc(10, 13, 10, 19, 4, 13, False) SketchArc_12.setName("SketchArc_13") SketchArc_12.result().setName("SketchArc_13") SketchArc_12.results()[1].setName("SketchArc_13_2") SketchConstraintCoincidence_84 = Sketch_6.setCoincident(SketchArc_12.startPoint(), SketchLine_46.endPoint()) -SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_88") SketchConstraintCoincidence_85 = Sketch_6.setCoincident(SketchArc_12.endPoint(), SketchLine_40.startPoint()) -SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_89") SketchConstraintTangent_17 = Sketch_6.setTangent(SketchArc_12.results()[1], SketchLine_46.result()) SketchConstraintTangent_18 = Sketch_6.setTangent(SketchArc_12.results()[1], SketchLine_40.result()) SketchConstraintCoincidence_86 = Sketch_6.setCoincident(SketchLine_51.startPoint(), SketchLine_46.startPoint()) -SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_90") SketchConstraintCoincidence_87 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_40.endPoint()) -SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_91") SketchConstraintCoincidence_88 = Sketch_6.setCoincident(SketchLine_46.endPoint(), SketchLine_51.result()) -SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_92") SketchConstraintCoincidence_89 = Sketch_6.setCoincident(SketchLine_40.startPoint(), SketchLine_42.result()) -SketchConstraintCoincidence_89.setName("SketchConstraintCoincidence_93") SketchConstraintRadius_9 = Sketch_6.setRadius(SketchArc_11.results()[1], 6) SketchConstraintRadius_10 = Sketch_6.setRadius(SketchArc_12.results()[1], 6) SketchConstraintDistance_24 = Sketch_6.setDistance(SketchLine_40.result(), SketchLine_46.startPoint(), 6.1, False) -SketchConstraintDistance_24.setName("SketchConstraintDistance_24") SketchConstraintDistance_25 = Sketch_6.setDistance(SketchLine_48.startPoint(), SketchLine_43.result(), 6.1, False) -SketchConstraintDistance_25.setName("SketchConstraintDistance_25") SketchConstraintVertical_14 = Sketch_6.setVertical(SketchLine_48.result()) SketchConstraintDistance_26 = Sketch_6.setDistance(SketchLine_41.result(), SketchArc_12.startPoint(), 6.1, False) -SketchConstraintDistance_26.setName("SketchConstraintDistance_26") SketchLine_53 = Sketch_6.addLine(model.selection("EDGE", "Axis_1")) SketchLine_53.setName("SketchLine_56") SketchLine_53.result().setName("SketchLine_56") SketchConstraintCoincidence_90 = Sketch_6.setCoincident(SketchArc_12.startPoint(), SketchLine_53.result()) -SketchConstraintCoincidence_90.setName("SketchConstraintCoincidence_94") model.do() Extrusion_7 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_6/Face-SketchArc_13_2r-SketchLine_54r-SketchLine_49r-SketchLine_48r-SketchLine_47r-SketchLine_53r-SketchArc_12_2r-SketchLine_52r-SketchLine_44r-SketchLine_55r")], model.selection(), 0, 40) Fuse_1 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Common_1_1")], [model.selection("SOLID", "Common_2_1")]) @@ -532,11 +446,9 @@ SketchLine_55.setName("SketchLine_57") SketchLine_55.result().setName("SketchLine_57") SketchLine_55.setAuxiliary(True) SketchConstraintCoincidence_91 = Sketch_7.setCoincident(SketchLine_55.startPoint(), SketchPoint_6.result()) -SketchConstraintCoincidence_91.setName("SketchConstraintCoincidence_95") SketchPoint_7 = Sketch_7.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_8_1/To_Face]")) SketchConstraintCoincidence_92 = Sketch_7.setCoincident(SketchLine_55.endPoint(), SketchPoint_7.result()) -SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_96") -SketchLine_56 = Sketch_7.addLine(45.00000000000001, -70, -45.00000000000001, -70) +SketchLine_56 = Sketch_7.addLine(45, -70, -45, -70) SketchLine_56.setName("SketchLine_67") SketchLine_56.result().setName("SketchLine_67") SketchLine_57 = Sketch_7.addLine(55, -70, -55, -70) @@ -544,11 +456,9 @@ SketchLine_57.setName("SketchLine_58") SketchLine_57.result().setName("SketchLine_58") SketchLine_57.setAuxiliary(True) SketchConstraintCoincidence_93 = Sketch_7.setCoincident(SketchLine_55.endPoint(), SketchLine_57.startPoint()) -SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_97") SketchPoint_8 = Sketch_7.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_8_1/From_Face]")) SketchConstraintCoincidence_94 = Sketch_7.setCoincident(SketchLine_57.endPoint(), SketchPoint_8.result()) -SketchConstraintCoincidence_94.setName("SketchConstraintCoincidence_98") -SketchLine_58 = Sketch_7.addLine(-55.00000000000001, -59.99999999999999, -55, -9.237604307034024) +SketchLine_58 = Sketch_7.addLine(-55, -60, -55, -9.237604307034024) SketchLine_58.setName("SketchLine_68") SketchLine_58.result().setName("SketchLine_68") SketchLine_59 = Sketch_7.addLine(-55, -70, -55, -9.237604307034024) @@ -556,117 +466,86 @@ SketchLine_59.setName("SketchLine_59") SketchLine_59.result().setName("SketchLine_59") SketchLine_59.setAuxiliary(True) SketchConstraintCoincidence_95 = Sketch_7.setCoincident(SketchLine_57.endPoint(), SketchLine_59.startPoint()) -SketchConstraintCoincidence_95.setName("SketchConstraintCoincidence_99") SketchPoint_9 = Sketch_7.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10][Extrusion_8_1/From_Face]")) SketchConstraintCoincidence_96 = Sketch_7.setCoincident(SketchLine_59.endPoint(), SketchPoint_9.result()) -SketchConstraintCoincidence_96.setName("SketchConstraintCoincidence_100") -SketchLine_60 = Sketch_7.addLine(-55, -9.237604307034024, -60.00000000000001, -9.237604307034024) +SketchLine_60 = Sketch_7.addLine(-55, -9.237604307034024, -60, -9.237604307034024) SketchLine_60.setName("SketchLine_60") SketchLine_60.result().setName("SketchLine_60") SketchConstraintCoincidence_97 = Sketch_7.setCoincident(SketchLine_59.endPoint(), SketchLine_60.startPoint()) -SketchConstraintCoincidence_97.setName("SketchConstraintCoincidence_101") -SketchLine_61 = Sketch_7.addLine(-60.00000000000001, -9.237604307034024, -60.00000000000001, -79.23760430703402) +SketchLine_61 = Sketch_7.addLine(-60, -9.237604307034024, -60, -79.23760430703402) SketchLine_61.setName("SketchLine_61") SketchLine_61.result().setName("SketchLine_61") SketchConstraintCoincidence_98 = Sketch_7.setCoincident(SketchLine_60.endPoint(), SketchLine_61.startPoint()) -SketchConstraintCoincidence_98.setName("SketchConstraintCoincidence_102") -SketchLine_62 = Sketch_7.addLine(-60.00000000000001, -79.23760430703402, 60, -79.23760430703402) +SketchLine_62 = Sketch_7.addLine(-60, -79.23760430703402, 60, -79.23760430703402) SketchLine_62.setName("SketchLine_62") SketchLine_62.result().setName("SketchLine_62") SketchConstraintCoincidence_99 = Sketch_7.setCoincident(SketchLine_61.endPoint(), SketchLine_62.startPoint()) -SketchConstraintCoincidence_99.setName("SketchConstraintCoincidence_103") SketchLine_63 = Sketch_7.addLine(60, -79.23760430703402, 60, -9.237604307034024) SketchLine_63.setName("SketchLine_63") SketchLine_63.result().setName("SketchLine_63") SketchConstraintCoincidence_100 = Sketch_7.setCoincident(SketchLine_62.endPoint(), SketchLine_63.startPoint()) -SketchConstraintCoincidence_100.setName("SketchConstraintCoincidence_104") SketchLine_64 = Sketch_7.addLine(60, -9.237604307034024, 55, -9.237604307034024) SketchLine_64.setName("SketchLine_64") SketchLine_64.result().setName("SketchLine_64") SketchConstraintCoincidence_101 = Sketch_7.setCoincident(SketchLine_63.endPoint(), SketchLine_64.startPoint()) -SketchConstraintCoincidence_101.setName("SketchConstraintCoincidence_105") SketchConstraintCoincidence_102 = Sketch_7.setCoincident(SketchLine_55.startPoint(), SketchLine_64.endPoint()) -SketchConstraintCoincidence_102.setName("SketchConstraintCoincidence_106") SketchConstraintCoincidence_103 = Sketch_7.setCoincident(SketchPoint_6.coordinates(), SketchLine_64.endPoint()) -SketchConstraintCoincidence_103.setName("SketchConstraintCoincidence_107") SketchConstraintHorizontal_11 = Sketch_7.setHorizontal(SketchLine_64.result()) SketchConstraintHorizontal_12 = Sketch_7.setHorizontal(SketchLine_60.result()) SketchConstraintHorizontal_13 = Sketch_7.setHorizontal(SketchLine_62.result()) SketchConstraintVertical_15 = Sketch_7.setVertical(SketchLine_61.result()) SketchConstraintVertical_16 = Sketch_7.setVertical(SketchLine_63.result()) -SketchArc_13 = Sketch_7.addArc(45, -60, 45.00000000000001, -70, 55, -60, False) +SketchArc_13 = Sketch_7.addArc(45, -60, 45, -70, 55, -60, False) SketchArc_13.setName("SketchArc_14") SketchArc_13.result().setName("SketchArc_14") SketchArc_13.results()[1].setName("SketchArc_14_2") -SketchLine_65 = Sketch_7.addLine(45.00000000000001, -70, -55, -70) +SketchLine_65 = Sketch_7.addLine(45, -70, -55, -70) SketchLine_65.setName("SketchLine_65") SketchLine_65.result().setName("SketchLine_65") SketchLine_65.setAuxiliary(True) SketchConstraintCoincidence_104 = Sketch_7.setCoincident(SketchArc_13.startPoint(), SketchLine_65.startPoint()) -SketchConstraintCoincidence_104.setName("SketchConstraintCoincidence_108") SketchConstraintCoincidence_105 = Sketch_7.setCoincident(SketchArc_13.endPoint(), SketchLine_54.endPoint()) -SketchConstraintCoincidence_105.setName("SketchConstraintCoincidence_109") SketchConstraintTangent_19 = Sketch_7.setTangent(SketchArc_13.results()[1], SketchLine_65.result()) SketchConstraintTangent_20 = Sketch_7.setTangent(SketchArc_13.results()[1], SketchLine_54.result()) SketchConstraintCoincidence_106 = Sketch_7.setCoincident(SketchLine_57.endPoint(), SketchLine_65.endPoint()) -SketchConstraintCoincidence_106.setName("SketchConstraintCoincidence_110") SketchConstraintCoincidence_107 = Sketch_7.setCoincident(SketchLine_55.startPoint(), SketchLine_54.startPoint()) -SketchConstraintCoincidence_107.setName("SketchConstraintCoincidence_111") SketchConstraintCoincidence_108 = Sketch_7.setCoincident(SketchLine_65.startPoint(), SketchLine_57.result()) -SketchConstraintCoincidence_108.setName("SketchConstraintCoincidence_112") SketchConstraintCoincidence_109 = Sketch_7.setCoincident(SketchLine_54.endPoint(), SketchLine_55.result()) -SketchConstraintCoincidence_109.setName("SketchConstraintCoincidence_113") -SketchArc_14 = Sketch_7.addArc(-45.00000000000001, -60.00000000000004, -55.00000000000001, -59.99999999999999, -45.00000000000001, -70, False) +SketchArc_14 = Sketch_7.addArc(-45, -60, -55, -60, -45, -70, False) SketchArc_14.setName("SketchArc_15") SketchArc_14.result().setName("SketchArc_15") SketchArc_14.results()[1].setName("SketchArc_15_2") SketchConstraintCoincidence_110 = Sketch_7.setCoincident(SketchArc_14.startPoint(), SketchLine_58.startPoint()) -SketchConstraintCoincidence_110.setName("SketchConstraintCoincidence_114") SketchConstraintCoincidence_111 = Sketch_7.setCoincident(SketchArc_14.endPoint(), SketchLine_56.endPoint()) -SketchConstraintCoincidence_111.setName("SketchConstraintCoincidence_115") SketchConstraintTangent_21 = Sketch_7.setTangent(SketchArc_14.results()[1], SketchLine_56.result()) SketchConstraintTangent_22 = Sketch_7.setTangent(SketchArc_14.results()[1], SketchLine_58.result()) SketchConstraintCoincidence_112 = Sketch_7.setCoincident(SketchLine_65.startPoint(), SketchLine_56.startPoint()) -SketchConstraintCoincidence_112.setName("SketchConstraintCoincidence_116") SketchConstraintCoincidence_113 = Sketch_7.setCoincident(SketchLine_59.endPoint(), SketchLine_58.endPoint()) -SketchConstraintCoincidence_113.setName("SketchConstraintCoincidence_117") SketchConstraintCoincidence_114 = Sketch_7.setCoincident(SketchLine_56.endPoint(), SketchLine_65.result()) -SketchConstraintCoincidence_114.setName("SketchConstraintCoincidence_118") SketchConstraintCoincidence_115 = Sketch_7.setCoincident(SketchLine_58.startPoint(), SketchLine_59.result()) -SketchConstraintCoincidence_115.setName("SketchConstraintCoincidence_119") SketchConstraintRadius_11 = Sketch_7.setRadius(SketchArc_13.results()[1], 10) SketchConstraintRadius_12 = Sketch_7.setRadius(SketchArc_14.results()[1], 10) SketchCircle_4 = Sketch_7.addCircle(44, -59, 5) -SketchCircle_5 = Sketch_7.addCircle(-43.99999999999999, -58.99999999999999, 5) +SketchCircle_5 = Sketch_7.addCircle(-44, -59, 5) SketchConstraintRadius_13 = Sketch_7.setRadius(SketchCircle_4.results()[1], 5) SketchConstraintRadius_14 = Sketch_7.setRadius(SketchCircle_5.results()[1], 5) SketchConstraintDistance_27 = Sketch_7.setDistance(SketchCircle_4.center(), SketchLine_56.result(), 11, False) -SketchConstraintDistance_27.setName("SketchConstraintDistance_27") SketchConstraintDistance_28 = Sketch_7.setDistance(SketchCircle_4.center(), SketchLine_54.result(), 11, False) -SketchConstraintDistance_28.setName("SketchConstraintDistance_28") SketchConstraintDistance_29 = Sketch_7.setDistance(SketchCircle_5.center(), SketchLine_56.result(), 11, False) -SketchConstraintDistance_29.setName("SketchConstraintDistance_29") SketchConstraintDistance_30 = Sketch_7.setDistance(SketchCircle_5.center(), SketchLine_58.result(), 11, False) -SketchConstraintDistance_30.setName("SketchConstraintDistance_30") SketchCircle_6 = Sketch_7.addCircle(44, -20.23760430703402, 5) SketchConstraintRadius_15 = Sketch_7.setRadius(SketchCircle_6.results()[1], 5) SketchCircle_7 = Sketch_7.addCircle(-44, -20.23760430703402, 5) SketchConstraintRadius_16 = Sketch_7.setRadius(SketchCircle_7.results()[1], 5) SketchConstraintDistance_31 = Sketch_7.setDistance(SketchCircle_6.center(), SketchLine_54.result(), 11, False) -SketchConstraintDistance_31.setName("SketchConstraintDistance_31") SketchLine_66 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_2_2][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_10]")) SketchLine_66.setName("SketchLine_69") SketchLine_66.result().setName("SketchLine_69") SketchConstraintDistance_32 = Sketch_7.setDistance(SketchCircle_6.center(), SketchLine_66.result(), 11, False) -SketchConstraintDistance_32.setName("SketchConstraintDistance_32") SketchConstraintDistance_33 = Sketch_7.setDistance(SketchCircle_7.center(), SketchLine_58.result(), 11, False) -SketchConstraintDistance_33.setName("SketchConstraintDistance_33") SketchConstraintDistance_34 = Sketch_7.setDistance(SketchCircle_7.center(), SketchLine_66.result(), 11, False) -SketchConstraintDistance_34.setName("SketchConstraintDistance_34") SketchConstraintLength_2 = Sketch_7.setLength(SketchLine_62.result(), 120) -SketchConstraintLength_2.setName("SketchConstraintLength_7") SketchConstraintLength_3 = Sketch_7.setLength(SketchLine_61.result(), 70) -SketchConstraintLength_3.setName("SketchConstraintLength_8") SketchConstraintDistanceHorizontal_1 = Sketch_7.setHorizontalDistance(SketchPoint_7.coordinates(), SketchLine_62.endPoint(), 5) model.do() ExtrusionCut_1_objects_1 = [model.selection("WIRE", "Sketch_7/Face-SketchLine_66r-SketchArc_14_2r-SketchLine_67f-SketchArc_15_2r-SketchLine_68f-SketchLine_60f-SketchLine_61f-SketchLine_62f-SketchLine_63f-SketchLine_64f_wire"), model.selection("FACE", "Sketch_7/Face-SketchCircle_4_2f"), model.selection("FACE", "Sketch_7/Face-SketchCircle_5_2f"), model.selection("FACE", "Sketch_7/Face-SketchCircle_7_2f"), model.selection("FACE", "Sketch_7/Face-SketchCircle_6_2f")] @@ -681,11 +560,9 @@ SketchLine_68.setName("SketchLine_70") SketchLine_68.result().setName("SketchLine_70") SketchLine_68.setAuxiliary(True) SketchConstraintCoincidence_116 = Sketch_8.setCoincident(SketchLine_68.startPoint(), SketchPoint_10.result()) -SketchConstraintCoincidence_116.setName("SketchConstraintCoincidence_120") SketchPoint_11 = Sketch_8.addPoint(model.selection("VERTEX", "[Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11][(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_1_1/Generated_Face&Sketch_7/SketchLine_66)(Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_1_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_9)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3)][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3]")) SketchConstraintCoincidence_117 = Sketch_8.setCoincident(SketchLine_68.endPoint(), SketchPoint_11.result()) -SketchConstraintCoincidence_117.setName("SketchConstraintCoincidence_121") -SketchLine_69 = Sketch_8.addLine(45, 76.69872981077805, -44.9999999570576, 76.69872981077805) +SketchLine_69 = Sketch_8.addLine(45, 76.69872981077805, -45, 76.69872981077805) SketchLine_69.setName("SketchLine_80") SketchLine_69.result().setName("SketchLine_80") SketchLine_70 = Sketch_8.addLine(55, 76.69872981077803, -55, 76.69872981077803) @@ -693,10 +570,8 @@ SketchLine_70.setName("SketchLine_71") SketchLine_70.result().setName("SketchLine_71") SketchLine_70.setAuxiliary(True) SketchConstraintCoincidence_118 = Sketch_8.setCoincident(SketchLine_68.endPoint(), SketchLine_70.startPoint()) -SketchConstraintCoincidence_118.setName("SketchConstraintCoincidence_122") SketchPoint_12 = Sketch_8.addPoint(model.selection("VERTEX", "[(ExtrusionCut_1_1/Generated_Face&Sketch_7/SketchLine_68)(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_1_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_9)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3)][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3]")) SketchConstraintCoincidence_119 = Sketch_8.setCoincident(SketchLine_70.endPoint(), SketchPoint_12.result()) -SketchConstraintCoincidence_119.setName("SketchConstraintCoincidence_123") SketchLine_71 = Sketch_8.addLine(-55, 66.69872976783566, -55, -34.06366588218793) SketchLine_71.setName("SketchLine_81") SketchLine_71.result().setName("SketchLine_81") @@ -705,39 +580,30 @@ SketchLine_72.setName("SketchLine_72") SketchLine_72.result().setName("SketchLine_72") SketchLine_72.setAuxiliary(True) SketchConstraintCoincidence_120 = Sketch_8.setCoincident(SketchLine_70.endPoint(), SketchLine_72.startPoint()) -SketchConstraintCoincidence_120.setName("SketchConstraintCoincidence_124") SketchPoint_13 = Sketch_8.addPoint(model.selection("VERTEX", "[ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2][(ExtrusionCut_1_1/Generated_Face&Sketch_7/SketchLine_68)(ExtrusionCut_1_1/Modified_Face&Sketch_1/SketchArc_2_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchArc_1_2)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_9)(Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_3)][Extrusion_8_1/Generated_Face&Sketch_1/SketchLine_11]")) SketchConstraintCoincidence_121 = Sketch_8.setCoincident(SketchLine_72.endPoint(), SketchPoint_13.result()) -SketchConstraintCoincidence_121.setName("SketchConstraintCoincidence_125") SketchLine_73 = Sketch_8.addLine(-55, -34.06366588218793, -83.25521566485324, -34.06366588218793) SketchLine_73.setName("SketchLine_73") SketchLine_73.result().setName("SketchLine_73") SketchConstraintCoincidence_122 = Sketch_8.setCoincident(SketchLine_72.endPoint(), SketchLine_73.startPoint()) -SketchConstraintCoincidence_122.setName("SketchConstraintCoincidence_126") SketchLine_74 = Sketch_8.addLine(-83.25521566485324, -34.06366588218793, -83.25521566485298, 92.00148393088952) SketchLine_74.setName("SketchLine_74") SketchLine_74.result().setName("SketchLine_74") SketchConstraintCoincidence_123 = Sketch_8.setCoincident(SketchLine_73.endPoint(), SketchLine_74.startPoint()) -SketchConstraintCoincidence_123.setName("SketchConstraintCoincidence_127") SketchLine_75 = Sketch_8.addLine(-83.25521566485298, 92.00148393088952, 87.50975635635101, 92.00148393088952) SketchLine_75.setName("SketchLine_75") SketchLine_75.result().setName("SketchLine_75") SketchConstraintCoincidence_124 = Sketch_8.setCoincident(SketchLine_74.endPoint(), SketchLine_75.startPoint()) -SketchConstraintCoincidence_124.setName("SketchConstraintCoincidence_128") SketchLine_76 = Sketch_8.addLine(87.50975635635101, 92.00148393088952, 87.50975635635101, -34.06366588218793) SketchLine_76.setName("SketchLine_76") SketchLine_76.result().setName("SketchLine_76") SketchConstraintCoincidence_125 = Sketch_8.setCoincident(SketchLine_75.endPoint(), SketchLine_76.startPoint()) -SketchConstraintCoincidence_125.setName("SketchConstraintCoincidence_129") SketchLine_77 = Sketch_8.addLine(87.50975635635101, -34.06366588218793, 55, -34.06366588218793) SketchLine_77.setName("SketchLine_77") SketchLine_77.result().setName("SketchLine_77") SketchConstraintCoincidence_126 = Sketch_8.setCoincident(SketchLine_76.endPoint(), SketchLine_77.startPoint()) -SketchConstraintCoincidence_126.setName("SketchConstraintCoincidence_130") SketchConstraintCoincidence_127 = Sketch_8.setCoincident(SketchLine_68.startPoint(), SketchLine_77.endPoint()) -SketchConstraintCoincidence_127.setName("SketchConstraintCoincidence_131") SketchConstraintCoincidence_128 = Sketch_8.setCoincident(SketchPoint_10.coordinates(), SketchLine_77.endPoint()) -SketchConstraintCoincidence_128.setName("SketchConstraintCoincidence_132") SketchConstraintHorizontal_14 = Sketch_8.setHorizontal(SketchLine_77.result()) SketchConstraintHorizontal_15 = Sketch_8.setHorizontal(SketchLine_73.result()) SketchConstraintHorizontal_16 = Sketch_8.setHorizontal(SketchLine_75.result()) @@ -748,103 +614,70 @@ SketchArc_15.setName("SketchArc_16") SketchArc_15.result().setName("SketchArc_16") SketchArc_15.results()[1].setName("SketchArc_16_2") SketchConstraintCoincidence_129 = Sketch_8.setCoincident(SketchArc_15.startPoint(), SketchLine_67.endPoint()) -SketchConstraintCoincidence_129.setName("SketchConstraintCoincidence_133") SketchLine_78 = Sketch_8.addLine(45, 76.69872981077805, -55, 76.69872981077803) SketchLine_78.setName("SketchLine_78") SketchLine_78.result().setName("SketchLine_78") SketchLine_78.setAuxiliary(True) SketchConstraintCoincidence_130 = Sketch_8.setCoincident(SketchArc_15.endPoint(), SketchLine_78.startPoint()) -SketchConstraintCoincidence_130.setName("SketchConstraintCoincidence_134") SketchConstraintTangent_23 = Sketch_8.setTangent(SketchArc_15.results()[1], SketchLine_78.result()) SketchConstraintTangent_24 = Sketch_8.setTangent(SketchArc_15.results()[1], SketchLine_67.result()) SketchConstraintCoincidence_131 = Sketch_8.setCoincident(SketchLine_70.endPoint(), SketchLine_78.endPoint()) -SketchConstraintCoincidence_131.setName("SketchConstraintCoincidence_135") SketchConstraintCoincidence_132 = Sketch_8.setCoincident(SketchLine_68.startPoint(), SketchLine_67.startPoint()) -SketchConstraintCoincidence_132.setName("SketchConstraintCoincidence_136") SketchConstraintCoincidence_133 = Sketch_8.setCoincident(SketchLine_78.startPoint(), SketchLine_70.result()) -SketchConstraintCoincidence_133.setName("SketchConstraintCoincidence_137") SketchConstraintCoincidence_134 = Sketch_8.setCoincident(SketchLine_67.endPoint(), SketchLine_68.result()) -SketchConstraintCoincidence_134.setName("SketchConstraintCoincidence_138") -SketchArc_16 = Sketch_8.addArc(-44.9999999570576, 66.69872976783566, -44.9999999570576, 76.69872981077805, -55, 66.69872976783566, False) +SketchArc_16 = Sketch_8.addArc(-45, 66.69872976783566, -45, 76.69872981077805, -55, 66.69872976783566, False) SketchArc_16.setName("SketchArc_17") SketchArc_16.result().setName("SketchArc_17") SketchArc_16.results()[1].setName("SketchArc_17_2") SketchConstraintCoincidence_135 = Sketch_8.setCoincident(SketchArc_16.startPoint(), SketchLine_69.endPoint()) -SketchConstraintCoincidence_135.setName("SketchConstraintCoincidence_139") SketchConstraintCoincidence_136 = Sketch_8.setCoincident(SketchArc_16.endPoint(), SketchLine_71.startPoint()) -SketchConstraintCoincidence_136.setName("SketchConstraintCoincidence_140") SketchConstraintTangent_25 = Sketch_8.setTangent(SketchArc_16.results()[1], SketchLine_69.result()) SketchConstraintTangent_26 = Sketch_8.setTangent(SketchArc_16.results()[1], SketchLine_71.result()) SketchConstraintCoincidence_137 = Sketch_8.setCoincident(SketchLine_78.startPoint(), SketchLine_69.startPoint()) -SketchConstraintCoincidence_137.setName("SketchConstraintCoincidence_141") SketchConstraintCoincidence_138 = Sketch_8.setCoincident(SketchLine_72.endPoint(), SketchLine_71.endPoint()) -SketchConstraintCoincidence_138.setName("SketchConstraintCoincidence_142") SketchConstraintCoincidence_139 = Sketch_8.setCoincident(SketchLine_69.endPoint(), SketchLine_78.result()) -SketchConstraintCoincidence_139.setName("SketchConstraintCoincidence_143") SketchConstraintCoincidence_140 = Sketch_8.setCoincident(SketchLine_71.startPoint(), SketchLine_72.result()) -SketchConstraintCoincidence_140.setName("SketchConstraintCoincidence_144") SketchConstraintRadius_17 = Sketch_8.setRadius(SketchArc_15.results()[1], 10) SketchConstraintRadius_18 = Sketch_8.setRadius(SketchArc_16.results()[1], 10) SketchCircle_8 = Sketch_8.addCircle(-44, 51.69872981077802, 5) SketchConstraintRadius_19 = Sketch_8.setRadius(SketchCircle_8.results()[1], 5) SketchConstraintDistance_35 = Sketch_8.setDistance(SketchCircle_8.center(), SketchLine_69.result(), 25, False) -SketchConstraintDistance_35.setName("SketchConstraintDistance_35") SketchConstraintDistance_36 = Sketch_8.setDistance(SketchCircle_8.center(), SketchLine_71.result(), 11, False) -SketchConstraintDistance_36.setName("SketchConstraintDistance_36") SketchCircle_9 = Sketch_8.addCircle(-44, 16.69872981077805, 5) SketchConstraintRadius_20 = Sketch_8.setRadius(SketchCircle_9.results()[1], 5) SketchConstraintDistance_37 = Sketch_8.setDistance(SketchCircle_9.center(), SketchLine_71.result(), 11, False) -SketchConstraintDistance_37.setName("SketchConstraintDistance_37") SketchConstraintDistance_38 = Sketch_8.setDistance(SketchCircle_9.center(), SketchLine_69.result(), 60, False) -SketchConstraintDistance_38.setName("SketchConstraintDistance_38") -SketchArc_17 = Sketch_8.addArc(44, 16.69872981077803, 49, 16.69872981077806, 39, 16.69872981077804, True) +SketchArc_17 = Sketch_8.addArc(44, 16.69872981077805, 49, 16.69872981077805, 39, 16.69872981077805, True) SketchArc_17.setName("SketchArc_19") SketchArc_17.result().setName("SketchArc_19") SketchArc_17.results()[1].setName("SketchArc_19_2") SketchConstraintRadius_21 = Sketch_8.setRadius(SketchArc_17.results()[1], 5) -SketchConstraintRadius_21.setName("SketchConstraintRadius_22") SketchConstraintDistance_39 = Sketch_8.setDistance(SketchArc_17.center(), SketchLine_69.result(), 60, False) -SketchConstraintDistance_39.setName("SketchConstraintDistance_41") -SketchArc_18 = Sketch_8.addArc(44, 51.69872981077805, 49, 51.69872981077805, 39.00000000000002, 51.69873025170988, False) +SketchArc_18 = Sketch_8.addArc(44, 51.69872981077805, 49, 51.69872981077805, 39, 51.69872981077805, False) SketchArc_18.setName("SketchArc_18") SketchArc_18.result().setName("SketchArc_18") SketchArc_18.results()[1].setName("SketchArc_18_2") -SketchLine_79 = Sketch_8.addLine(49, 16.69872981077806, 49, 51.69872981077805) +SketchLine_79 = Sketch_8.addLine(49, 16.69872981077805, 49, 51.69872981077805) SketchLine_79.setName("SketchLine_82") SketchLine_79.result().setName("SketchLine_82") SketchConstraintCoincidence_141 = Sketch_8.setCoincident(SketchArc_18.startPoint(), SketchLine_79.endPoint()) -SketchConstraintCoincidence_141.setName("SketchConstraintCoincidence_145") SketchConstraintCoincidence_142 = Sketch_8.setCoincident(SketchLine_79.startPoint(), SketchArc_17.startPoint()) -SketchConstraintCoincidence_142.setName("SketchConstraintCoincidence_146") -SketchLine_80 = Sketch_8.addLine(39, 16.69872981077804, 39.00000000000002, 51.69873025170988) +SketchLine_80 = Sketch_8.addLine(39, 16.69872981077805, 39, 51.69872981077805) SketchLine_80.setName("SketchLine_83") SketchLine_80.result().setName("SketchLine_83") SketchConstraintCoincidence_143 = Sketch_8.setCoincident(SketchArc_17.endPoint(), SketchLine_80.startPoint()) -SketchConstraintCoincidence_143.setName("SketchConstraintCoincidence_147") SketchConstraintCoincidence_144 = Sketch_8.setCoincident(SketchArc_18.endPoint(), SketchLine_80.endPoint()) -SketchConstraintCoincidence_144.setName("SketchConstraintCoincidence_148") SketchConstraintDistance_40 = Sketch_8.setDistance(SketchArc_17.center(), SketchLine_67.result(), 11, False) -SketchConstraintDistance_40.setName("SketchConstraintDistance_40") SketchConstraintDistance_41 = Sketch_8.setDistance(SketchLine_69.result(), SketchArc_18.center(), 25, False) -SketchConstraintDistance_41.setName("SketchConstraintDistance_42") SketchConstraintDistance_42 = Sketch_8.setDistance(SketchArc_18.center(), SketchLine_67.result(), 11, False) -SketchConstraintDistance_42.setName("SketchConstraintDistance_44") SketchConstraintRadius_22 = Sketch_8.setRadius(SketchArc_18.results()[1], 5) -SketchConstraintRadius_22.setName("SketchConstraintRadius_23") SketchConstraintLength_4 = Sketch_8.setLength(SketchLine_80.result(), 35.000000440932) -SketchConstraintLength_4.setName("SketchConstraintLength_1") SketchConstraintLength_5 = Sketch_8.setLength(SketchLine_79.result(), 35) -SketchConstraintLength_5.setName("SketchConstraintLength_2") SketchConstraintLength_6 = Sketch_8.setLength(SketchLine_75.result(), 170.764972021204) -SketchConstraintLength_6.setName("SketchConstraintLength_3") SketchConstraintLength_7 = Sketch_8.setLength(SketchLine_77.result(), 32.509756356351) -SketchConstraintLength_7.setName("SketchConstraintLength_4") SketchConstraintLength_8 = Sketch_8.setLength(SketchLine_76.result(), 126.065149813077) -SketchConstraintLength_8.setName("SketchConstraintLength_5") SketchConstraintDistance_43 = Sketch_8.setDistance(SketchArc_18.endPoint(), SketchLine_69.result(), 24.999999559068, False) -SketchConstraintDistance_43.setName("SketchConstraintDistance_45") SketchConstraintDistance_44 = Sketch_8.setDistance(SketchArc_18.startPoint(), SketchLine_69.result(), 25, False) -SketchConstraintDistance_44.setName("SketchConstraintDistance_46") model.do() ExtrusionCut_2_objects_1 = [model.selection("FACE", "Sketch_8/Face-SketchLine_77r-SketchLine_76r-SketchLine_75r-SketchLine_74r-SketchLine_73r-SketchLine_81r-SketchArc_17_2r-SketchLine_80r-SketchArc_16_2r-SketchLine_79r"), model.selection("WIRE", "Sketch_8/Face-SketchCircle_8_2f_wire"), model.selection("WIRE", "Sketch_8/Face-SketchCircle_9_2f_wire"), model.selection("WIRE", "Sketch_8/Face-SketchArc_19_2f-SketchLine_82f-SketchArc_18_2f-SketchLine_83r_wire")] ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_2_objects_1, model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_1_1")]) @@ -867,6 +700,6 @@ model.testNbSubShapes(Fuse_3, GeomAPI_Shape.FACE, [50]) # unstable numbers #model.testNbSubShapes(Fuse_3, GeomAPI_Shape.EDGE, [266]) #model.testNbSubShapes(Fuse_3, GeomAPI_Shape.VERTEX, [532]) -model.testResultsVolumes(Fuse_3, [156999.209584889642428606748580933]) +model.testResultsVolumes(Fuse_3, [156999.196618517889874055981636]) assert(model.checkPythonDump()) diff --git a/test.models/case24.py b/test.models/case24.py index 3c003a303..9b45e3823 100644 --- a/test.models/case24.py +++ b/test.models/case24.py @@ -652,7 +652,7 @@ Sketch_10 = model.addSketch(Part_1_doc, model.standardPlane("XOY")) SketchLine_77 = Sketch_10.addLine(64, 20, 89, 20) SketchLine_77.setName("SketchLine_76") SketchLine_77.result().setName("SketchLine_76") -SketchPoint_4 = Sketch_10.addPoint(model.selection("VERTEX", "[RevolutionFuse_3_1/Modified_Face&Sketch_1/SketchLine_1&weak_name_2][RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8][RevolutionFuse_3_1/Modified_Face&Sketch_4/SketchLine_22&weak_name_2][RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27]")) +SketchPoint_4 = Sketch_10.addPoint(model.selection("VERTEX", "[(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)(ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)2(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchArc_1_2)2(RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27)2(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_2_1/From_Face)2_ExtrusionCut_2_1][RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8][(RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27)(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_2_1/From_Face)(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_3_1/Modified_Face&Sketch_4/SketchArc_4_2)2(ExtrusionCut_2_1/Modified_Face&Sketch_5/SketchLine_40)2][RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27]")) SketchConstraintCoincidence_122 = Sketch_10.setCoincident(SketchLine_77.startPoint(), SketchPoint_4.result()) SketchConstraintCoincidence_122.setName("SketchConstraintCoincidence_120") SketchPoint_5 = Sketch_10.addPoint(model.selection("VERTEX", "Sketch_1/SketchLine_1_StartVertex")) @@ -661,10 +661,10 @@ SketchConstraintCoincidence_123.setName("SketchConstraintCoincidence_121") SketchLine_78 = Sketch_10.addLine(64, -20, 89, -20) SketchLine_78.setName("SketchLine_77") SketchLine_78.result().setName("SketchLine_77") -SketchPoint_6 = Sketch_10.addPoint(model.selection("VERTEX", "[RevolutionFuse_3_1/Modified_Face&Sketch_2/SketchLine_9&weak_name_2][RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14][RevolutionFuse_3_1/Modified_Face&Sketch_3/SketchLine_15&weak_name_2][RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20]")) +SketchPoint_6 = Sketch_10.addPoint(model.selection("VERTEX", "[(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)(ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchArc_2_2)2(RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20)2(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_1_1/To_Face)2_ExtrusionCut_2_1][RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14][(RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20)(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_1_1/To_Face)(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)2(RevolutionFuse_3_1/Modified_Face&Sketch_3/SketchArc_3_2)2(ExtrusionCut_2_1/Modified_Face&Sketch_5/SketchLine_40)2][RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20]")) SketchConstraintCoincidence_124 = Sketch_10.setCoincident(SketchLine_78.startPoint(), SketchPoint_6.result()) SketchConstraintCoincidence_124.setName("SketchConstraintCoincidence_122") -SketchPoint_7 = Sketch_10.addPoint(model.selection("VERTEX", "[ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_1&weak_name_2][ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8][RevolutionFuse_3_1/Modified_Face&Sketch_2/SketchLine_9&weak_name_2][RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14]")) +SketchPoint_7 = Sketch_10.addPoint(model.selection("VERTEX", "[(ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)(ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchArc_1_2)2(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)2(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2_ExtrusionCut_2_1][ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8][(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)(ExtrusionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchArc_2_2)2(RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20)2(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_1_1/To_Face)2_ExtrusionCut_2_1][RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14]")) SketchConstraintCoincidence_125 = Sketch_10.setCoincident(SketchLine_78.endPoint(), SketchPoint_7.result()) SketchConstraintCoincidence_125.setName("SketchConstraintCoincidence_123") SketchArc_10 = Sketch_10.addArc(89, 0, 89, -20, 89, 20, False) @@ -687,7 +687,7 @@ SketchConstraintCoincidence_129 = Sketch_10.setCoincident(SketchArc_11.startPoin SketchConstraintCoincidence_129.setName("SketchConstraintCoincidence_127") SketchConstraintTangent_19 = Sketch_10.setTangent(SketchArc_11.results()[1], SketchLine_78.result()) SketchConstraintTangent_19.setName("SketchConstraintTangent_24") -SketchPoint_8 = Sketch_10.addPoint(model.selection("VERTEX", "[RevolutionFuse_3_1/Modified_Face&Sketch_3/SketchLine_15&weak_name_2][RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20][RevolutionFuse_3_1/Modified_Face&RevolutionFuse_1_1/To_Face]")) +SketchPoint_8 = Sketch_10.addPoint(model.selection("VERTEX", "[(RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20)(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_1_1/To_Face)(RevolutionFuse_1_1/Modified_Face&Sketch_2/SketchLine_14)2(RevolutionFuse_3_1/Modified_Face&Sketch_3/SketchArc_3_2)2(ExtrusionCut_2_1/Modified_Face&Sketch_5/SketchLine_40)2][RevolutionFuse_1_1/Generated_Face&Sketch_3/SketchLine_20][RevolutionFuse_3_1/Modified_Face&RevolutionFuse_1_1/To_Face]")) SketchConstraintCoincidence_130 = Sketch_10.setCoincident(SketchArc_11.endPoint(), SketchPoint_8.result()) SketchConstraintCoincidence_130.setName("SketchConstraintCoincidence_128") SketchArc_12 = Sketch_10.addArc(64.00001789135865, 23.01137360115889, 64, 20, 61.15622559702543, 22.02080994708722, True) @@ -698,7 +698,7 @@ SketchConstraintCoincidence_131 = Sketch_10.setCoincident(SketchArc_12.startPoin SketchConstraintCoincidence_131.setName("SketchConstraintCoincidence_129") SketchConstraintTangent_20 = Sketch_10.setTangent(SketchArc_12.results()[1], SketchLine_77.result()) SketchConstraintTangent_20.setName("SketchConstraintTangent_25") -SketchPoint_9 = Sketch_10.addPoint(model.selection("VERTEX", "[RevolutionFuse_3_1/Modified_Face&Sketch_4/SketchLine_22&weak_name_2][RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27][RevolutionFuse_3_1/Modified_Face&RevolutionFuse_2_1/From_Face]")) +SketchPoint_9 = Sketch_10.addPoint(model.selection("VERTEX", "[(RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27)(RevolutionFuse_3_1/Modified_Face&RevolutionFuse_2_1/From_Face)(RevolutionFuse_2_1/Modified_Face&Sketch_1/SketchLine_8)2(RevolutionFuse_3_1/Modified_Face&Sketch_4/SketchArc_4_2)2(ExtrusionCut_2_1/Modified_Face&Sketch_5/SketchLine_40)2][RevolutionFuse_2_1/Generated_Face&Sketch_4/SketchLine_27][RevolutionFuse_3_1/Modified_Face&RevolutionFuse_2_1/From_Face]")) SketchConstraintCoincidence_132 = Sketch_10.setCoincident(SketchArc_12.endPoint(), SketchPoint_9.result()) SketchConstraintCoincidence_132.setName("SketchConstraintCoincidence_130") SketchLine_79 = Sketch_10.addLine(61.15622559702543, 22.02080994708722, 59.81204392543111, 22.0208099470871)