From: mpv Date: Wed, 11 Jul 2018 08:23:58 +0000 (+0300) Subject: Make angle30.py big model working in the current version X-Git-Tag: SHAPER_V9_1_0RC1~137 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4ffd788e11975bcd23b03cf864d1fc71cda102ed;p=modules%2Fshaper.git Make angle30.py big model working in the current version --- diff --git a/test.models/angle30.py b/test.models/angle30.py index 2873a942a..da333d57a 100644 --- a/test.models/angle30.py +++ b/test.models/angle30.py @@ -41,22 +41,22 @@ 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.237604307034236, 44, 70) +SketchLine_5 = Sketch_1.addLine(44, 9.237604307034019, 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.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, 39.00000000000029, 0.5773502691898111) +SketchLine_7 = Sketch_1.addLine(-56.92304845413265, -54.80384757729332, 38.99999999999999, 0.5773502691896226) SketchLine_7.setName("SketchLine_9") SketchLine_7.result().setName("SketchLine_9") -SketchLine_8 = Sketch_1.addLine(-56.92304845413265, -54.80384757729332, 44, 3.464101615137769) +SketchLine_8 = Sketch_1.addLine(-56.92304845413265, -54.80384757729332, 44, 3.464101615137744) 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.464101615137769, 44, 70) +SketchLine_9 = Sketch_1.addLine(44, 3.464101615137744, 44, 70) SketchLine_9.setName("SketchLine_5") SketchLine_9.result().setName("SketchLine_5") SketchLine_9.setAuxiliary(True) @@ -69,12 +69,12 @@ SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_3.startPoint() SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_3.result()) SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_9.result()) SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_10.result()) -SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_3.startPoint(), SketchLine_9.result(), "H") +SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_3.startPoint(), SketchLine_9.result(), "H", False) 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) -SketchArc_1 = Sketch_1.addArc(34, 9.237604307034236, 39.00000000000029, 0.5773502691898111, 44, 9.237604307034236, False) +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) 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()) @@ -92,12 +92,12 @@ SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_3.startPoint( SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_2.endPoint()) SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_3.result()) SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_2.startPoint(), SketchLine_4.result()) -SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_4.startPoint(), 70) +SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_4.startPoint(), 70, False) SketchConstraintPerpendicular_1 = Sketch_1.setPerpendicular(SketchLine_2.result(), SketchLine_6.result()) -SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_6.endPoint(), SketchLine_2.result(), 6) +SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_6.endPoint(), SketchLine_2.result(), 6, False) SketchConstraintParallel_1 = Sketch_1.setParallel(SketchLine_2.result(), SketchLine_7.result()) SketchConstraintAngle_1 = Sketch_1.setAngle(SketchLine_1.result(), SketchLine_2.result(), 119.9999999999999) -SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_4.startPoint(), SketchLine_6.startPoint(), 120) +SketchConstraintDistance_5 = Sketch_1.setDistance(SketchLine_4.startPoint(), SketchLine_6.startPoint(), 120, False) 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) @@ -131,17 +131,17 @@ SketchConstraintVertical_3 = Sketch_3.setVertical(SketchLine_15.result()) SketchConstraintVertical_4 = Sketch_3.setVertical(SketchLine_13.result()) SketchLine_17 = Sketch_3.addLine(model.selection("EDGE", "Sketch_1/Edge-SketchLine_4")) SketchConstraintParallel_2 = Sketch_3.setParallel(SketchLine_14.result(), SketchLine_17.result()) -SketchConstraintDistance_6 = Sketch_3.setDistance(SketchLine_14.endPoint(), SketchLine_17.result(), 1) +SketchConstraintDistance_6 = Sketch_3.setDistance(SketchLine_14.endPoint(), SketchLine_17.result(), 1, False) SketchLine_18 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OZ")) -SketchConstraintDistance_7 = Sketch_3.setDistance(SketchLine_16.startPoint(), SketchLine_18.result(), 55) -SketchConstraintDistance_8 = Sketch_3.setDistance(SketchLine_13.startPoint(), SketchLine_18.result(), 22) +SketchConstraintDistance_7 = Sketch_3.setDistance(SketchLine_16.startPoint(), SketchLine_18.result(), 55, False) +SketchConstraintDistance_8 = Sketch_3.setDistance(SketchLine_13.startPoint(), SketchLine_18.result(), 22, False) SketchLine_19 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OY")) -SketchConstraintDistance_9 = Sketch_3.setDistance(SketchLine_15.endPoint(), SketchLine_19.result(), 70) +SketchConstraintDistance_9 = Sketch_3.setDistance(SketchLine_15.endPoint(), SketchLine_19.result(), 70, False) model.do() Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_2/Wire-SketchCircle_1_2f")], model.selection(), 75, 45) Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), 22, 22) -Boolean_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.selection("FACE", "PartSet/XOY")) +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.setName("SketchLine_36") SketchLine_20.result().setName("SketchLine_36") @@ -157,6 +157,8 @@ SketchLine_21 = Sketch_4.addLine(4, 21.26617031813674, 4, 37.99999998819019) 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.setName("SketchLine_22") +SketchLine_22.result().setName("SketchLine_22") SketchLine_23 = Sketch_4.addLine(-10.1, 44.00000000000001, -9.999999999999854, 44.00000000000001) SketchLine_23.setName("SketchLine_37") SketchLine_23.result().setName("SketchLine_37") @@ -167,21 +169,33 @@ 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.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.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.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.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.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.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") @@ -203,7 +217,7 @@ SketchConstraintVertical_10 = Sketch_4.setVertical(SketchLine_22.result()) 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) +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.setName("SketchLine_33") @@ -237,6 +251,9 @@ 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) @@ -288,9 +305,11 @@ SketchConstraintCoincidence_54 = Sketch_4.setCoincident(SketchArc_4.endPoint(), 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) -SketchConstraintDistance_12 = Sketch_4.setDistance(SketchArc_8.startPoint(), SketchLine_33.result(), 4) -SketchConstraintDistance_13 = Sketch_4.setDistance(SketchArc_7.endPoint(), SketchLine_33.result(), 4) +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.setName("SketchArc_10") @@ -330,34 +349,34 @@ SketchConstraintCoincidence_66 = Sketch_4.setCoincident(SketchLine_24.startPoint 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) +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) +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) +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) +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) +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) +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) -Boolean_2 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Extrusion_3_1")], [model.selection("SOLID", "Extrusion_4_1")]) +Common_2 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Extrusion_3_1")], [model.selection("SOLID", "Extrusion_4_1")]) Extrusion_5 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection(), 22, 22) Extrusion_6 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchCircle_2_2f")], model.selection(), 75, 40) -Boolean_3 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Extrusion_6_1")], [model.selection("SOLID", "Extrusion_5_1")]) +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.464101615137769, 17.52573586555855, 49.31887218898888) +SketchLine_38 = Sketch_5.addLine(44, 3.464101615137744, 16.50000000000003, 51.09549882328188) SketchLine_38.setName("SketchLine_41") SketchLine_38.result().setName("SketchLine_41") SketchPoint_5 = Sketch_5.addPoint(model.selection("VERTEX", "Sketch_1/Vertex-SketchLine_5s-SketchLine_4e")) @@ -367,6 +386,8 @@ SketchLine_39 = Sketch_5.addLine(model.selection("EDGE", "Sketch_1/Edge-SketchLi 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_10r-SketchLine_11r-SketchLine_8r-SketchLine_3r-SketchLine_9r-SketchLine_6r-SketchArc_1_2r-SketchArc_2_2f"), model.selection("VERTEX", "Sketch_1/Vertex-SketchLine_5s-SketchLine_4e")) Plane_4 = model.addPlane(Part_1_doc, model.selection("EDGE", "Axis_1"), model.selection("VERTEX", "Sketch_5/Vertex-SketchLine_41e"), False) @@ -390,6 +411,8 @@ SketchLine_44 = Sketch_6.addLine(-9.999999999999867, 19.00000000002614, -10.0999 SketchLine_44.setName("SketchLine_53") SketchLine_44.result().setName("SketchLine_53") SketchLine_45 = Sketch_6.addLine(-4, 12.89999999999998, -4, 19.00000000002614) +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") @@ -432,13 +455,17 @@ SketchConstraintHorizontal_8 = Sketch_6.setHorizontal(SketchLine_47.result()) 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) -SketchConstraintDistance_21 = Sketch_6.setDistance(SketchLine_51.startPoint(), SketchLine_49.result(), 0.8) +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/Edge-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) -SketchConstraintDistance_23 = Sketch_6.setDistance(SketchLine_42.endPoint(), SketchLine_52.result(), 4) +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.setName("SketchArc_12") SketchArc_11.result().setName("SketchArc_12") @@ -477,10 +504,13 @@ SketchConstraintCoincidence_89 = Sketch_6.setCoincident(SketchLine_40.startPoint 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) -SketchConstraintDistance_25 = Sketch_6.setDistance(SketchLine_48.startPoint(), SketchLine_43.result(), 6.1) +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) +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") @@ -488,9 +518,9 @@ SketchConstraintCoincidence_90 = Sketch_6.setCoincident(SketchArc_12.startPoint( SketchConstraintCoincidence_90.setName("SketchConstraintCoincidence_94") model.do() Extrusion_7 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_6/Face-SketchLine_55r-SketchLine_44r-SketchLine_52r-SketchLine_53r-SketchLine_54r-SketchLine_47r-SketchLine_48r-SketchLine_49r-SketchArc_12_2r-SketchArc_13_2r")], model.selection(), 0, 40) -Boolean_4 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Boolean_1_1")], [model.selection("SOLID", "Boolean_2_1")]) -Boolean_5 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Boolean_4_1")], [model.selection("SOLID", "Extrusion_7_1")]) -Boolean_6 = model.addCut(Part_1_doc, [model.selection("SOLID", "Boolean_5_1")], [model.selection("SOLID", "Boolean_3_1")]) +Fuse_1 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Common_1_1")], [model.selection("SOLID", "Common_2_1")]) +Fuse_2 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Fuse_1_1")], [model.selection("SOLID", "Extrusion_7_1")]) +Cut_1 = model.addCut(Part_1_doc, [model.selection("SOLID", "Fuse_2_1")], [model.selection("SOLID", "Common_3_1")]) Extrusion_8 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_1/Wire-SketchLine_10r-SketchLine_11r-SketchLine_8r-SketchLine_3r-SketchLine_9r-SketchLine_6r-SketchArc_1_2r-SketchArc_2_2f")], model.selection(), 55, 55) Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_8_1/Generated_Face_1")) SketchLine_54 = Sketch_7.addLine(55, -9.237604307034024, 55, -60) @@ -522,25 +552,37 @@ SketchLine_58 = Sketch_7.addLine(-55.00000000000001, -59.99999999999999, -55, -9 SketchLine_58.setName("SketchLine_68") SketchLine_58.result().setName("SketchLine_68") SketchLine_59 = Sketch_7.addLine(-55, -70, -55, -9.237604307034024) +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_2&Extrusion_8_1/Generated_Face_1&Extrusion_8_1/From_Face_1")) SketchConstraintCoincidence_96 = Sketch_7.setCoincident(SketchLine_59.endPoint(), SketchPoint_9.result()) SketchConstraintCoincidence_96.setName("SketchConstraintCoincidence_100") -SketchLine_60 = Sketch_7.addLine(-55, -9.237604307034024, -61.32702426187202, -9.237604307034024) +SketchLine_60 = Sketch_7.addLine(-55, -9.237604307034024, -60.00000000000001, -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(-61.32702426187202, -9.237604307034024, -61.32702426187202, -75.68652656141983) +SketchLine_61 = Sketch_7.addLine(-60.00000000000001, -9.237604307034024, -60.00000000000001, -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(-61.32702426187202, -75.68652656141983, 60.38641987912783, -75.68652656141983) +SketchLine_62 = Sketch_7.addLine(-60.00000000000001, -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.38641987912783, -75.68652656141983, 60.38641987912783, -9.237604307034024) +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.38641987912783, -9.237604307034024, 55, -9.237604307034024) +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()) @@ -557,6 +599,8 @@ 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.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") @@ -596,35 +640,49 @@ SketchCircle_4 = Sketch_7.addCircle(44, -59, 5) SketchCircle_5 = Sketch_7.addCircle(-43.99999999999999, -58.99999999999999, 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) -SketchConstraintDistance_28 = Sketch_7.setDistance(SketchCircle_4.center(), SketchLine_54.result(), 11) -SketchConstraintDistance_29 = Sketch_7.setDistance(SketchCircle_5.center(), SketchLine_56.result(), 11) -SketchConstraintDistance_30 = Sketch_7.setDistance(SketchCircle_5.center(), SketchLine_58.result(), 11) +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) +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_2&Extrusion_8_1/Generated_Face_1")) SketchLine_66.setName("SketchLine_69") SketchLine_66.result().setName("SketchLine_69") -SketchConstraintDistance_32 = Sketch_7.setDistance(SketchCircle_6.center(), SketchLine_66.result(), 11) -SketchConstraintDistance_33 = Sketch_7.setDistance(SketchCircle_7.center(), SketchLine_58.result(), 11) -SketchConstraintDistance_34 = Sketch_7.setDistance(SketchCircle_7.center(), SketchLine_66.result(), 11) +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 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_7/Wire-SketchLine_66f-SketchLine_67f-SketchLine_68f-SketchLine_60f-SketchLine_61f-SketchLine_62f-SketchLine_63f-SketchLine_64f-SketchArc_14_2r-SketchArc_15_2r"), 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")], model.selection(), 0, 10, [model.selection("SOLID", "Extrusion_8_1")]) +ExtrusionCut_1_objects_1 = [model.selection("WIRE", "Sketch_7/Wire-SketchLine_66f-SketchLine_67f-SketchLine_68f-SketchLine_60f-SketchLine_61f-SketchLine_62f-SketchLine_63f-SketchLine_64f-SketchArc_14_2r-SketchArc_15_2r"), 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")] +ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_1_objects_1, model.selection(), 0, 10, [model.selection("SOLID", "Extrusion_8_1")]) Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_8_1/Generated_Face_3")) SketchLine_67 = Sketch_8.addLine(55, -34.06366588218793, 55, 66.69872981077805) SketchLine_67.setName("SketchLine_79") SketchLine_67.result().setName("SketchLine_79") -SketchPoint_10 = Sketch_8.addPoint(model.selection("VERTEX", "ExtrusionCut_1_1/Modfied_4&ExtrusionCut_1_1/Modfied_1&Extrusion_8_1/Generated_Face_3")) +SketchPoint_10 = Sketch_8.addPoint(model.selection("VERTEX", "ExtrusionCut_1_1/Modfied_4&Extrusion_8_1/Generated_Face_3&ExtrusionCut_1_1/Modfied_1")) SketchLine_68 = Sketch_8.addLine(55, -34.06366588218793, 55, 76.69872981077803) 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", "ExtrusionCut_1_1/Modfied_1&Extrusion_8_1/Generated_Face_3&Extrusion_8_1/Generated_Face_4")) +SketchPoint_11 = Sketch_8.addPoint(model.selection("VERTEX", "Extrusion_8_1/Generated_Face_3&ExtrusionCut_1_1/Modfied_1&Extrusion_8_1/Generated_Face_4")) 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) @@ -643,6 +701,8 @@ SketchLine_71 = Sketch_8.addLine(-55, 66.69872976783566, -55, -34.06366588218793 SketchLine_71.setName("SketchLine_81") SketchLine_71.result().setName("SketchLine_81") SketchLine_72 = Sketch_8.addLine(-55, 76.69872981077803, -55, -34.06366588218793) +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") @@ -650,18 +710,28 @@ SketchPoint_13 = Sketch_8.addPoint(model.selection("VERTEX", "ExtrusionCut_1_1/M 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()) @@ -680,6 +750,8 @@ 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") @@ -715,21 +787,28 @@ 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) -SketchConstraintDistance_36 = Sketch_8.setDistance(SketchCircle_8.center(), SketchLine_71.result(), 11) +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) -SketchConstraintDistance_38 = Sketch_8.setDistance(SketchCircle_9.center(), SketchLine_69.result(), 60) +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.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) +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.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.setName("SketchLine_82") SketchLine_79.result().setName("SketchLine_82") @@ -744,39 +823,49 @@ SketchConstraintCoincidence_143 = Sketch_8.setCoincident(SketchArc_17.endPoint() 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) -SketchConstraintDistance_41 = Sketch_8.setDistance(SketchLine_69.result(), SketchArc_18.center(), 25) +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) +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_1 = Sketch_8.setLength(SketchLine_80.result(), 35.000000440932) -SketchConstraintLength_2 = Sketch_8.setLength(SketchLine_79.result(), 35) -SketchConstraintLength_3 = Sketch_8.setLength(SketchLine_75.result(), 170.764972021204) -SketchConstraintLength_4 = Sketch_8.setLength(SketchLine_77.result(), 32.509756356351) -SketchConstraintLength_5 = Sketch_8.setLength(SketchLine_76.result(), 126.065149813077) -SketchConstraintDistance_43 = Sketch_8.setDistance(SketchArc_18.endPoint(), SketchLine_69.result(), 24.999999559068) -SketchConstraintDistance_44 = Sketch_8.setDistance(SketchArc_18.startPoint(), SketchLine_69.result(), 25) +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 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_8/Face-SketchLine_79r-SketchLine_80r-SketchLine_81r-SketchLine_73r-SketchLine_74r-SketchLine_75r-SketchLine_76r-SketchLine_77r-SketchArc_16_2r-SketchArc_17_2r"), model.selection("WIRE", "Sketch_8/Wire-SketchCircle_8_2f"), model.selection("WIRE", "Sketch_8/Wire-SketchCircle_9_2f"), model.selection("WIRE", "Sketch_8/Wire-SketchArc_19_2f-SketchArc_18_2f-SketchLine_82f-SketchLine_83r")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_1_1")]) -Boolean_7 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Boolean_6_1")], [model.selection("SOLID", "ExtrusionCut_2_1")]) +ExtrusionCut_2_objects_1 = [model.selection("FACE", "Sketch_8/Face-SketchLine_79r-SketchLine_80r-SketchLine_81r-SketchLine_73r-SketchLine_74r-SketchLine_75r-SketchLine_76r-SketchLine_77r-SketchArc_16_2r-SketchArc_17_2r"), model.selection("WIRE", "Sketch_8/Wire-SketchCircle_8_2f"), model.selection("WIRE", "Sketch_8/Wire-SketchCircle_9_2f"), model.selection("WIRE", "Sketch_8/Wire-SketchArc_19_2f-SketchArc_18_2f-SketchLine_82f-SketchLine_83r")] +ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_2_objects_1, model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_1_1")]) +Fuse_3 = model.addFuse(Part_1_doc, [model.selection("SOLID", "Cut_1_1")], [model.selection("SOLID", "ExtrusionCut_2_1")]) model.do() # Test reexecution after parameter change Parameter_H.setValue(8) model.do() -model.testResultsVolumes(Boolean_7, [169755.330836739361984655261039734]) +model.testResultsVolumes(Fuse_3, [169754.898488585400627925992012024]) Parameter_H.setValue(6) model.end() from GeomAPI import GeomAPI_Shape -model.testNbResults(Boolean_7, 1) -model.testNbSubResults(Boolean_7, [0]) -model.testNbSubShapes(Boolean_7, GeomAPI_Shape.SOLID, [1]) -model.testNbSubShapes(Boolean_7, GeomAPI_Shape.FACE, [50]) -model.testNbSubShapes(Boolean_7, GeomAPI_Shape.EDGE, [266]) -model.testNbSubShapes(Boolean_7, GeomAPI_Shape.VERTEX, [532]) -model.testResultsVolumes(Boolean_7, [156999.209584889642428606748580933]) +model.testNbResults(Fuse_3, 1) +model.testNbSubResults(Fuse_3, [0]) +model.testNbSubShapes(Fuse_3, GeomAPI_Shape.SOLID, [1]) +model.testNbSubShapes(Fuse_3, GeomAPI_Shape.FACE, [50]) +model.testNbSubShapes(Fuse_3, GeomAPI_Shape.EDGE, [266]) +model.testNbSubShapes(Fuse_3, GeomAPI_Shape.VERTEX, [532]) +model.testResultsVolumes(Fuse_3, [156999.209584889642428606748580933]) assert(model.checkPythonDump())