1 # Copyright (C) 2014-2019 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 from salome.shaper import model
23 partSet = model.moduleDocument()
24 Part_1 = model.addPart(partSet)
25 Part_1_doc = Part_1.document()
26 Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ"))
27 SketchLine_1 = Sketch_1.addLine(0, 4.99999999998656, 0, 40.99999999998656)
28 SketchLine_2 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OZ"))
29 SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_2.result())
30 SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.result())
31 SketchLine_3 = Sketch_1.addLine(4.999999999986844, 0, 36.99999999998685, 0)
32 SketchLine_4 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX"))
33 SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchLine_4.result())
34 SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.result())
35 SketchLine_5 = Sketch_1.addLine(4.999999999999999, 45.99999999998655, 37, 45.99999999998655)
36 SketchLine_6 = Sketch_1.addLine(42, 40.99999999998655, 42, 4.999999999986548)
37 SketchArc_1 = Sketch_1.addArc(5, 40.99999999998656, 0, 40.99999999998656, 4.999999999999999, 45.99999999998656, True)
38 SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchArc_1.startPoint())
39 SketchConstraintTangent_1 = Sketch_1.setTangent(SketchLine_1.result(), SketchArc_1.results()[1])
40 SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_5.result(), SketchArc_1.endPoint())
41 SketchArc_2 = Sketch_1.addArc(37, 40.99999999998655, 37, 45.99999999998655, 42, 40.99999999998655, True)
42 SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchArc_2.startPoint())
43 SketchConstraintTangent_2 = Sketch_1.setTangent(SketchLine_5.result(), SketchArc_2.results()[1])
44 SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_6.result(), SketchArc_2.endPoint())
45 SketchArc_3 = Sketch_1.addArc(4.999999999986827, 4.999999999986823, 0, 4.99999999998656, 4.999999999986844, 0, False)
46 SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchArc_3.startPoint())
47 SketchConstraintTangent_3 = Sketch_1.setTangent(SketchLine_1.result(), SketchArc_3.results()[1])
48 SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_3.result(), SketchArc_3.endPoint())
49 SketchArc_4 = Sketch_1.addArc(36.99999999998375, 5.000000000004257, 36.99999999998685, 0, 42, 4.999999999986548, False)
50 SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchArc_4.startPoint())
51 SketchConstraintTangent_4 = Sketch_1.setTangent(SketchLine_3.result(), SketchArc_4.results()[1])
52 SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_6.result(), SketchArc_4.endPoint())
53 SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_6.result())
54 SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_5.result())
55 SketchConstraintEqual_1 = Sketch_1.setEqual(SketchLine_5.result(), SketchLine_3.result())
56 SketchConstraintEqual_2 = Sketch_1.setEqual(SketchLine_6.result(), SketchLine_1.result())
57 SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_5.startPoint())
58 SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_6.startPoint())
59 SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchArc_4.endPoint())
60 SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchArc_3.endPoint(), SketchLine_3.startPoint())
61 SketchConstraintTangent_5 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_6.result())
62 SketchConstraintTangent_6 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_5.result())
63 SketchConstraintTangent_7 = Sketch_1.setTangent(SketchArc_3.results()[1], SketchLine_3.result())
64 SketchConstraintEqual_3 = Sketch_1.setEqual(SketchArc_1.results()[1], SketchArc_2.results()[1])
65 SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_2.results()[1], 5)
66 SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_1.result(), 36)
67 SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_5.result(), 32)
68 SketchConstraintTangent_8 = Sketch_1.setTangent(SketchArc_4.results()[1], SketchLine_6.result())
70 Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchArc_3_2f-SketchLine_3f-SketchArc_4_2f-SketchLine_6r-SketchArc_2_2f-SketchLine_5r-SketchArc_1_2f-SketchLine_1r")], model.selection(), 76, 0)
71 Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/To_Face"))
72 SketchLine_7 = Sketch_2.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][Extrusion_1_1/To_Face]"))
73 SketchLine_7.setName("SketchLine_8")
74 SketchLine_7.result().setName("SketchLine_8")
75 SketchLine_8 = Sketch_2.addLine(21, 45.99999999998655, 20.99999999998684, 0)
76 SketchLine_8.setName("SketchLine_9")
77 SketchLine_8.result().setName("SketchLine_9")
78 SketchLine_8.setAuxiliary(True)
79 SketchLine_9 = Sketch_2.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5][Extrusion_1_1/To_Face]"))
80 SketchLine_9.setName("SketchLine_10")
81 SketchLine_9.result().setName("SketchLine_10")
82 SketchConstraintCoincidence_17 = Sketch_2.setCoincident(SketchLine_8.startPoint(), SketchLine_9.result())
83 SketchConstraintCoincidence_17.setName("SketchConstraintCoincidence_18")
84 SketchLine_10 = Sketch_2.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3][Extrusion_1_1/To_Face]"))
85 SketchLine_10.setName("SketchLine_11")
86 SketchLine_10.result().setName("SketchLine_11")
87 SketchConstraintCoincidence_18 = Sketch_2.setCoincident(SketchLine_8.endPoint(), SketchLine_10.result())
88 SketchConstraintCoincidence_18.setName("SketchConstraintCoincidence_19")
89 SketchConstraintMiddle_1 = Sketch_2.setMiddlePoint(SketchLine_8.startPoint(), SketchLine_9.result())
90 SketchConstraintMiddle_2 = Sketch_2.setMiddlePoint(SketchLine_8.endPoint(), SketchLine_10.result())
91 SketchLine_11 = Sketch_2.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_1_1/To_Face]"))
92 SketchLine_11.setName("SketchLine_12")
93 SketchLine_11.result().setName("SketchLine_12")
94 SketchPoint_1 = Sketch_2.addPoint(20.99999999999342, 22.99999999999327)
95 SketchConstraintCoincidence_19 = Sketch_2.setCoincident(SketchPoint_1.coordinates(), SketchLine_8.result())
96 SketchConstraintCoincidence_19.setName("SketchConstraintCoincidence_20")
97 SketchConstraintMiddle_3 = Sketch_2.setMiddlePoint(SketchPoint_1.coordinates(), SketchLine_8.result())
98 SketchCircle_1 = Sketch_2.addCircle(20.99999999999342, 22.99999999999327, 19)
99 SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchPoint_1.coordinates(), SketchCircle_1.center())
100 SketchConstraintCoincidence_20.setName("SketchConstraintCoincidence_21")
101 SketchConstraintRadius_2 = Sketch_2.setRadius(SketchCircle_1.results()[1], 19)
102 SketchCircle_2 = Sketch_2.addCircle(12.99999999999342, 22.99999999998655, 2.5)
103 SketchCircle_3 = Sketch_2.addCircle(28.99999999999342, 22.99999999998655, 2.5)
104 SketchCircle_4 = Sketch_2.addCircle(20.99999999999113, 14.99999999998655, 2.5)
105 SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchLine_8.result(), SketchCircle_4.center())
106 SketchConstraintCoincidence_21.setName("SketchConstraintCoincidence_22")
107 SketchConstraintEqual_4 = Sketch_2.setEqual(SketchCircle_2.results()[1], SketchCircle_3.results()[1])
108 SketchConstraintEqual_5 = Sketch_2.setEqual(SketchCircle_3.results()[1], SketchCircle_4.results()[1])
109 SketchLine_12 = Sketch_2.addLine(2.465190328815662e-32, 22.99999999998655, 41.99999999999999, 22.99999999998655)
110 SketchLine_12.setName("SketchLine_13")
111 SketchLine_12.result().setName("SketchLine_13")
112 SketchLine_12.setAuxiliary(True)
113 SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchLine_12.startPoint(), SketchLine_7.result())
114 SketchConstraintCoincidence_22.setName("SketchConstraintCoincidence_23")
115 SketchConstraintCoincidence_23 = Sketch_2.setCoincident(SketchLine_12.endPoint(), SketchLine_11.result())
116 SketchConstraintCoincidence_23.setName("SketchConstraintCoincidence_24")
117 SketchConstraintHorizontal_2 = Sketch_2.setHorizontal(SketchLine_12.result())
118 SketchConstraintDistance_1 = Sketch_2.setDistance(SketchCircle_2.center(), SketchCircle_3.center(), 16)
119 SketchConstraintCoincidence_24 = Sketch_2.setCoincident(SketchCircle_2.center(), SketchLine_12.result())
120 SketchConstraintCoincidence_24.setName("SketchConstraintCoincidence_25")
121 SketchConstraintCoincidence_25 = Sketch_2.setCoincident(SketchCircle_3.center(), SketchLine_12.result())
122 SketchConstraintCoincidence_25.setName("SketchConstraintCoincidence_26")
123 SketchConstraintDistance_2 = Sketch_2.setDistance(SketchCircle_2.center(), SketchLine_8.result(), 8)
124 SketchConstraintMiddle_4 = Sketch_2.setMiddlePoint(SketchLine_12.endPoint(), SketchLine_11.result())
125 SketchConstraintRadius_3 = Sketch_2.setRadius(SketchCircle_2.results()[1], 2.5)
126 SketchConstraintDistance_3 = Sketch_2.setDistance(SketchLine_12.result(), SketchCircle_4.center(), 8)
128 ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_2/Face-SketchCircle_1_2f-SketchCircle_2_2r-SketchCircle_3_2r-SketchCircle_4_2r_wire"), model.selection("WIRE", "Sketch_2/Face-SketchCircle_1_2f-SketchCircle_2_2r-SketchCircle_3_2r-SketchCircle_4_2r_wire_2"), model.selection("WIRE", "Sketch_2/Face-SketchCircle_3_2f_wire")], model.selection(), 0, 15, [model.selection("SOLID", "Extrusion_1_1")])
129 ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchCircle_4_2f")], model.selection(), model.selection("FACE", "Extrusion_1_1/From_Face"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_1_1")])
130 Sketch_3 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ"))
131 SketchCircle_5 = Sketch_3.addCircle(20.99999999999342, 22.99999999999327, 19)
132 SketchConstraintRadius_4 = Sketch_3.setRadius(SketchCircle_5.results()[1], 19)
133 SketchLine_13 = Sketch_3.addLine(41.99999999999999, 22.99999999998655, 0, 22.99999999998656)
134 SketchLine_13.setName("SketchLine_14")
135 SketchLine_13.result().setName("SketchLine_14")
136 SketchLine_13.setAuxiliary(True)
137 SketchLine_14 = Sketch_3.addLine(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Extrusion_1_1/From_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6]"))
138 SketchLine_14.setName("SketchLine_15")
139 SketchLine_14.result().setName("SketchLine_15")
140 SketchConstraintCoincidence_26 = Sketch_3.setCoincident(SketchLine_13.startPoint(), SketchLine_14.result())
141 SketchConstraintCoincidence_26.setName("SketchConstraintCoincidence_27")
142 SketchLine_15 = Sketch_3.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][ExtrusionCut_2_1/Modified_Face&Extrusion_1_1/From_Face]"))
143 SketchLine_15.setName("SketchLine_16")
144 SketchLine_15.result().setName("SketchLine_16")
145 SketchConstraintCoincidence_27 = Sketch_3.setCoincident(SketchLine_13.endPoint(), SketchLine_15.result())
146 SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_28")
147 SketchLine_16 = Sketch_3.addLine(21, 45.99999999998655, 20.99999999998684, 0)
148 SketchLine_16.setName("SketchLine_17")
149 SketchLine_16.result().setName("SketchLine_17")
150 SketchLine_16.setAuxiliary(True)
151 SketchLine_17 = Sketch_3.addLine(model.selection("EDGE", "[ExtrusionCut_2_1/Modified_Face&Extrusion_1_1/From_Face][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5]"))
152 SketchLine_17.setName("SketchLine_18")
153 SketchLine_17.result().setName("SketchLine_18")
154 SketchConstraintCoincidence_28 = Sketch_3.setCoincident(SketchLine_16.startPoint(), SketchLine_17.result())
155 SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_29")
156 SketchLine_18 = Sketch_3.addLine(model.selection("EDGE", "Sketch_1/SketchLine_3"))
157 SketchLine_18.setName("SketchLine_19")
158 SketchLine_18.result().setName("SketchLine_19")
159 SketchConstraintCoincidence_29 = Sketch_3.setCoincident(SketchLine_16.endPoint(), SketchLine_18.result())
160 SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_30")
161 SketchConstraintMiddle_5 = Sketch_3.setMiddlePoint(SketchLine_16.startPoint(), SketchLine_17.result())
162 SketchConstraintMiddle_6 = Sketch_3.setMiddlePoint(SketchLine_16.endPoint(), SketchLine_18.result())
163 SketchConstraintMiddle_7 = Sketch_3.setMiddlePoint(SketchLine_13.endPoint(), SketchLine_15.result())
164 SketchConstraintMiddle_8 = Sketch_3.setMiddlePoint(SketchLine_13.startPoint(), SketchLine_14.result())
165 SketchPoint_2 = Sketch_3.addPoint(20.99999999999342, 22.99999999999327)
166 SketchConstraintCoincidence_30 = Sketch_3.setCoincident(SketchPoint_2.coordinates(), SketchLine_16.result())
167 SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_31")
168 SketchConstraintMiddle_9 = Sketch_3.setMiddlePoint(SketchLine_16.result(), SketchPoint_2.coordinates())
169 SketchConstraintCoincidence_31 = Sketch_3.setCoincident(SketchCircle_5.center(), SketchPoint_2.coordinates())
170 SketchConstraintCoincidence_31.setName("SketchConstraintCoincidence_32")
171 SketchCircle_6 = Sketch_3.addCircle(28.99999999999342, 22.99999999998655, 2.5)
172 SketchConstraintCoincidence_32 = Sketch_3.setCoincident(SketchLine_13.result(), SketchCircle_6.center())
173 SketchConstraintCoincidence_32.setName("SketchConstraintCoincidence_33")
174 SketchCircle_7 = Sketch_3.addCircle(12.99999999999342, 22.99999999998656, 2.5)
175 SketchConstraintCoincidence_33 = Sketch_3.setCoincident(SketchLine_13.result(), SketchCircle_7.center())
176 SketchConstraintCoincidence_33.setName("SketchConstraintCoincidence_34")
177 SketchConstraintEqual_6 = Sketch_3.setEqual(SketchCircle_7.results()[1], SketchCircle_6.results()[1])
178 SketchConstraintRadius_5 = Sketch_3.setRadius(SketchCircle_7.results()[1], 2.5)
179 SketchConstraintDistance_4 = Sketch_3.setDistance(SketchCircle_6.center(), SketchCircle_7.center(), 16)
180 SketchConstraintDistance_5 = Sketch_3.setDistance(SketchCircle_6.center(), SketchLine_16.result(), 8)
182 ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_3/Face-SketchCircle_5_2r-SketchCircle_7_2r-SketchCircle_6_2r")], model.selection(), 15, 0, [model.selection("SOLID", "ExtrusionCut_2_1")])
183 ExtrusionCut_3.result().setName("ExtrusionCut_3_1")
184 Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5"))
185 SketchProjection_1 = Sketch_4.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_1_2]"), False)
186 SketchLine_19 = SketchProjection_1.createdFeature()
187 SketchLine_19.setName("SketchLine_20")
188 SketchLine_19.result().setName("SketchLine_20")
189 SketchProjection_2 = Sketch_4.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_2_2]"), False)
190 SketchLine_20 = SketchProjection_2.createdFeature()
191 SketchLine_20.setName("SketchLine_21")
192 SketchLine_20.result().setName("SketchLine_21")
193 SketchLine_21 = Sketch_4.addLine(4.999999999999999, -28, 37, -28)
194 SketchLine_21.setName("SketchLine_22")
195 SketchLine_21.result().setName("SketchLine_22")
196 SketchLine_22 = Sketch_4.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_1_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5]"))
197 SketchLine_22.setName("SketchLine_23")
198 SketchLine_22.result().setName("SketchLine_23")
199 SketchConstraintCoincidence_34 = Sketch_4.setCoincident(SketchLine_21.startPoint(), SketchLine_22.result())
200 SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_35")
201 SketchLine_23 = Sketch_4.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_2_2]"))
202 SketchLine_23.setName("SketchLine_24")
203 SketchLine_23.result().setName("SketchLine_24")
204 SketchConstraintCoincidence_35 = Sketch_4.setCoincident(SketchLine_21.endPoint(), SketchLine_23.result())
205 SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_36")
206 SketchLine_24 = Sketch_4.addLine(4.999999999999999, -48, 37, -48)
207 SketchLine_24.setName("SketchLine_25")
208 SketchLine_24.result().setName("SketchLine_25")
209 SketchConstraintCoincidence_36 = Sketch_4.setCoincident(SketchLine_24.startPoint(), SketchLine_22.result())
210 SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_37")
211 SketchConstraintCoincidence_37 = Sketch_4.setCoincident(SketchLine_24.endPoint(), SketchLine_23.result())
212 SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_38")
213 SketchConstraintHorizontal_3 = Sketch_4.setHorizontal(SketchLine_21.result())
214 SketchConstraintHorizontal_4 = Sketch_4.setHorizontal(SketchLine_24.result())
215 SketchLine_25 = Sketch_4.addLine(3.593262427359596e-30, -33, 0, -43)
216 SketchLine_25.setName("SketchLine_26")
217 SketchLine_25.result().setName("SketchLine_26")
218 SketchConstraintCoincidence_38 = Sketch_4.setCoincident(SketchLine_25.startPoint(), SketchLine_19.result())
219 SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_39")
220 SketchLine_26 = Sketch_4.addLine(42, -33, 42, -43)
221 SketchLine_26.setName("SketchLine_27")
222 SketchLine_26.result().setName("SketchLine_27")
223 SketchConstraintCoincidence_40 = Sketch_4.setCoincident(SketchLine_26.startPoint(), SketchLine_20.result())
224 SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_41")
225 SketchConstraintCoincidence_41 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_20.result())
226 SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_42")
227 SketchArc_5 = Sketch_4.addArc(5, -33, 3.593262427359596e-30, -33, 4.999999999999999, -28, True)
228 SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_25.startPoint(), SketchArc_5.startPoint())
229 SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_43")
230 SketchConstraintTangent_9 = Sketch_4.setTangent(SketchLine_25.result(), SketchArc_5.results()[1])
231 SketchArc_6 = Sketch_4.addArc(5, -43, 0, -43, 4.999999999999999, -48, False)
232 SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchLine_25.endPoint(), SketchArc_6.startPoint())
233 SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_44")
234 SketchConstraintTangent_10 = Sketch_4.setTangent(SketchLine_25.result(), SketchArc_6.results()[1])
235 SketchArc_7 = Sketch_4.addArc(37, -33, 37, -28, 42, -33, True)
236 SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_21.endPoint(), SketchArc_7.startPoint())
237 SketchConstraintCoincidence_44.setName("SketchConstraintCoincidence_45")
238 SketchConstraintTangent_11 = Sketch_4.setTangent(SketchLine_21.result(), SketchArc_7.results()[1])
239 SketchArc_8 = Sketch_4.addArc(37, -43, 37, -48, 42, -43, False)
240 SketchConstraintCoincidence_45 = Sketch_4.setCoincident(SketchLine_24.endPoint(), SketchArc_8.startPoint())
241 SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_46")
242 SketchConstraintTangent_12 = Sketch_4.setTangent(SketchLine_24.result(), SketchArc_8.results()[1])
243 SketchConstraintDistance_6 = Sketch_4.setDistance(SketchLine_21.startPoint(), SketchLine_24.startPoint(), 20)
244 SketchConstraintEqual_7 = Sketch_4.setEqual(SketchLine_26.result(), SketchLine_25.result())
245 SketchConstraintCoincidence_46 = Sketch_4.setCoincident(SketchArc_5.endPoint(), SketchLine_21.startPoint())
246 SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_47")
247 SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchLine_26.startPoint(), SketchArc_7.endPoint())
248 SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_48")
249 SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchArc_8.endPoint())
250 SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_49")
251 SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_24.startPoint(), SketchArc_6.endPoint())
252 SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_50")
253 SketchConstraintTangent_13 = Sketch_4.setTangent(SketchArc_5.results()[1], SketchLine_21.result())
254 SketchConstraintTangent_14 = Sketch_4.setTangent(SketchArc_7.results()[1], SketchLine_26.result())
255 SketchConstraintTangent_15 = Sketch_4.setTangent(SketchArc_8.results()[1], SketchLine_26.result())
256 SketchLine_27 = Sketch_4.addLine(0, -38, 42, -38)
257 SketchLine_27.setName("SketchLine_28")
258 SketchLine_27.result().setName("SketchLine_28")
259 SketchLine_27.setAuxiliary(True)
260 SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_20.result())
261 SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_52")
262 SketchConstraintMiddle_10 = Sketch_4.setMiddlePoint(SketchLine_27.endPoint(), SketchLine_20.result())
263 SketchConstraintMiddle_11 = Sketch_4.setMiddlePoint(SketchLine_27.startPoint(), SketchLine_19.result())
264 SketchConstraintMiddle_12 = Sketch_4.setMiddlePoint(SketchLine_25.result(), SketchLine_27.startPoint())
266 Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_4/Face-SketchArc_5_2f-SketchLine_26f-SketchArc_6_2f-SketchLine_25f-SketchArc_8_2f-SketchLine_27r-SketchArc_7_2f-SketchLine_22r")], model.selection(), 2, 17)
267 Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_2_1/To_Face"))
268 SketchLine_28 = Sketch_5.addLine(5.000000000000001, -46, 37.00000000000001, -46)
269 SketchLine_28.setName("SketchLine_29")
270 SketchLine_28.result().setName("SketchLine_29")
271 SketchLine_29 = Sketch_5.addLine(5, -30, 37.00000000000001, -30)
272 SketchLine_29.setName("SketchLine_30")
273 SketchLine_29.result().setName("SketchLine_30")
274 SketchLine_30 = Sketch_5.addLine(2, -43, 2, -33)
275 SketchLine_30.setName("SketchLine_31")
276 SketchLine_30.result().setName("SketchLine_31")
277 SketchLine_31 = Sketch_5.addLine(40.00000000000001, -33, 40.00000000000001, -43)
278 SketchLine_31.setName("SketchLine_32")
279 SketchLine_31.result().setName("SketchLine_32")
280 SketchConstraintHorizontal_5 = Sketch_5.setHorizontal(SketchLine_29.result())
281 SketchConstraintHorizontal_6 = Sketch_5.setHorizontal(SketchLine_28.result())
282 SketchConstraintVertical_2 = Sketch_5.setVertical(SketchLine_30.result())
283 SketchConstraintVertical_3 = Sketch_5.setVertical(SketchLine_31.result())
284 SketchConstraintEqual_8 = Sketch_5.setEqual(SketchLine_29.result(), SketchLine_28.result())
285 SketchConstraintEqual_9 = Sketch_5.setEqual(SketchLine_31.result(), SketchLine_30.result())
286 SketchLine_32 = Sketch_5.addLine(model.selection("EDGE", "[Extrusion_2_1/Generated_Face&Sketch_4/SketchLine_26][Extrusion_2_1/To_Face]"))
287 SketchLine_32.setName("SketchLine_33")
288 SketchLine_32.result().setName("SketchLine_33")
289 SketchConstraintDistance_7 = Sketch_5.setDistance(SketchLine_30.endPoint(), SketchLine_32.result(), 2)
290 SketchLine_33 = Sketch_5.addLine(model.selection("EDGE", "[Extrusion_2_1/Generated_Face&Sketch_4/SketchLine_27][Extrusion_2_1/To_Face]"))
291 SketchLine_33.setName("SketchLine_34")
292 SketchLine_33.result().setName("SketchLine_34")
293 SketchConstraintDistance_8 = Sketch_5.setDistance(SketchLine_31.startPoint(), SketchLine_33.result(), 2)
294 SketchLine_34 = Sketch_5.addLine(model.selection("EDGE", "[Extrusion_2_1/Generated_Face&Sketch_4/SketchLine_22][Extrusion_2_1/To_Face]"))
295 SketchLine_34.setName("SketchLine_35")
296 SketchLine_34.result().setName("SketchLine_35")
297 SketchConstraintDistance_9 = Sketch_5.setDistance(SketchLine_29.startPoint(), SketchLine_34.result(), 2)
298 SketchLine_35 = Sketch_5.addLine(model.selection("EDGE", "[Extrusion_2_1/Generated_Face&Sketch_4/SketchLine_25][Extrusion_2_1/To_Face]"))
299 SketchLine_35.setName("SketchLine_36")
300 SketchLine_35.result().setName("SketchLine_36")
301 SketchConstraintDistance_10 = Sketch_5.setDistance(SketchLine_28.startPoint(), SketchLine_35.result(), 2)
302 SketchArc_9 = Sketch_5.addArc(5, -33, 2, -33, 5, -30, True)
303 SketchConstraintCoincidence_52 = Sketch_5.setCoincident(SketchLine_30.endPoint(), SketchArc_9.startPoint())
304 SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_53")
305 SketchConstraintTangent_16 = Sketch_5.setTangent(SketchLine_30.result(), SketchArc_9.results()[1])
306 SketchArc_10 = Sketch_5.addArc(5, -43, 2, -43, 5.000000000000001, -46, False)
307 SketchConstraintCoincidence_53 = Sketch_5.setCoincident(SketchLine_30.startPoint(), SketchArc_10.startPoint())
308 SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_54")
309 SketchConstraintTangent_17 = Sketch_5.setTangent(SketchLine_30.result(), SketchArc_10.results()[1])
310 SketchArc_11 = Sketch_5.addArc(37.00000000000001, -33, 37.00000000000001, -30, 40.00000000000001, -33, True)
311 SketchConstraintCoincidence_54 = Sketch_5.setCoincident(SketchLine_29.endPoint(), SketchArc_11.startPoint())
312 SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_55")
313 SketchConstraintTangent_18 = Sketch_5.setTangent(SketchLine_29.result(), SketchArc_11.results()[1])
314 SketchArc_12 = Sketch_5.addArc(37.00000000000001, -43, 37.00000000000001, -46, 40.00000000000001, -43, False)
315 SketchConstraintCoincidence_55 = Sketch_5.setCoincident(SketchLine_28.endPoint(), SketchArc_12.startPoint())
316 SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_56")
317 SketchConstraintTangent_19 = Sketch_5.setTangent(SketchLine_28.result(), SketchArc_12.results()[1])
318 SketchConstraintCoincidence_56 = Sketch_5.setCoincident(SketchArc_9.endPoint(), SketchLine_29.startPoint())
319 SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_57")
320 SketchConstraintCoincidence_57 = Sketch_5.setCoincident(SketchArc_11.endPoint(), SketchLine_31.startPoint())
321 SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_58")
322 SketchConstraintCoincidence_58 = Sketch_5.setCoincident(SketchLine_31.endPoint(), SketchArc_12.endPoint())
323 SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_59")
324 SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchArc_10.endPoint(), SketchLine_28.startPoint())
325 SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_60")
326 SketchConstraintEqual_10 = Sketch_5.setEqual(SketchArc_11.results()[1], SketchArc_9.results()[1])
327 SketchConstraintEqual_11 = Sketch_5.setEqual(SketchArc_10.results()[1], SketchArc_12.results()[1])
328 SketchConstraintEqual_12 = Sketch_5.setEqual(SketchArc_12.results()[1], SketchArc_11.results()[1])
329 SketchConstraintTangent_20 = Sketch_5.setTangent(SketchArc_9.results()[1], SketchLine_29.result())
330 SketchConstraintTangent_21 = Sketch_5.setTangent(SketchArc_12.results()[1], SketchLine_31.result())
331 SketchConstraintRadius_6 = Sketch_5.setRadius(SketchArc_9.results()[1], 3)
332 SketchLine_36 = Sketch_5.addLine(2, -38, 39.99999999999998, -38)
333 SketchLine_36.setName("SketchLine_37")
334 SketchLine_36.result().setName("SketchLine_37")
335 SketchLine_36.setAuxiliary(True)
336 SketchConstraintCoincidence_60 = Sketch_5.setCoincident(SketchLine_36.startPoint(), SketchLine_30.result())
337 SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_61")
338 SketchConstraintCoincidence_61 = Sketch_5.setCoincident(SketchLine_36.endPoint(), SketchLine_31.result())
339 SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_62")
340 SketchConstraintMiddle_13 = Sketch_5.setMiddlePoint(SketchLine_31.result(), SketchLine_36.endPoint())
341 SketchConstraintMiddle_14 = Sketch_5.setMiddlePoint(SketchLine_36.startPoint(), SketchLine_30.result())
342 SketchCircle_8 = Sketch_5.addCircle(13.00000000000001, -38, 2.5)
343 SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchLine_36.result(), SketchCircle_8.center())
344 SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_63")
345 SketchCircle_9 = Sketch_5.addCircle(29, -38, 2.5)
346 SketchConstraintCoincidence_63 = Sketch_5.setCoincident(SketchLine_36.result(), SketchCircle_9.center())
347 SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_64")
348 SketchConstraintEqual_13 = Sketch_5.setEqual(SketchCircle_9.results()[1], SketchCircle_8.results()[1])
349 SketchConstraintRadius_7 = Sketch_5.setRadius(SketchCircle_9.results()[1], 2.5)
350 SketchConstraintDistance_11 = Sketch_5.setDistance(SketchCircle_8.center(), SketchCircle_9.center(), 16)
351 SketchLine_37 = Sketch_5.addLine(21, -28, 21, -48)
352 SketchLine_37.setName("SketchLine_38")
353 SketchLine_37.result().setName("SketchLine_38")
354 SketchLine_37.setAuxiliary(True)
355 SketchConstraintCoincidence_64 = Sketch_5.setCoincident(SketchLine_37.startPoint(), SketchLine_34.result())
356 SketchConstraintCoincidence_64.setName("SketchConstraintCoincidence_65")
357 SketchConstraintCoincidence_65 = Sketch_5.setCoincident(SketchLine_37.endPoint(), SketchLine_35.result())
358 SketchConstraintCoincidence_65.setName("SketchConstraintCoincidence_66")
359 SketchConstraintMiddle_15 = Sketch_5.setMiddlePoint(SketchLine_37.startPoint(), SketchLine_34.result())
360 SketchConstraintMiddle_16 = Sketch_5.setMiddlePoint(SketchLine_37.endPoint(), SketchLine_35.result())
361 SketchConstraintDistance_12 = Sketch_5.setDistance(SketchCircle_8.center(), SketchLine_37.result(), 8)
363 ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_5/Face-SketchLine_29r-SketchArc_12_2f-SketchLine_32r-SketchArc_11_2f-SketchLine_30r-SketchArc_9_2f-SketchLine_31r-SketchArc_10_2f-SketchCircle_9_2r-SketchCircle_8_2r_wire")], model.selection(), 0, 15, [model.selection("SOLID", "Extrusion_2_1"), model.selection("SOLID", "ExtrusionCut_3_1")])
364 ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_5/Face-SketchCircle_8_2f"), model.selection("FACE", "Sketch_5/Face-SketchCircle_9_2f")], model.selection(), 0, 20, [model.selection("SOLID", "ExtrusionCut_4_1"), model.selection("SOLID", "ExtrusionCut_4_2")])
365 Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/YOZ"))
366 SketchLine_38 = Sketch_6.addLine(-59, 44, -59, 2)
367 SketchLine_38.setName("SketchLine_39")
368 SketchLine_38.result().setName("SketchLine_39")
369 SketchLine_39 = Sketch_6.addLine(-59, 2, -17, 2)
370 SketchLine_39.setName("SketchLine_40")
371 SketchLine_39.result().setName("SketchLine_40")
372 SketchConstraintCoincidence_66 = Sketch_6.setCoincident(SketchLine_38.endPoint(), SketchLine_39.startPoint())
373 SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_67")
374 SketchLine_40 = Sketch_6.addLine(-17, 2, -16.99997429885428, 44)
375 SketchLine_40.setName("SketchLine_41")
376 SketchLine_40.result().setName("SketchLine_41")
377 SketchConstraintCoincidence_67 = Sketch_6.setCoincident(SketchLine_39.endPoint(), SketchLine_40.startPoint())
378 SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_68")
379 SketchLine_41 = Sketch_6.addLine(-16.99997429885428, 44, -27.99998714942714, 44)
380 SketchLine_41.setName("SketchLine_42")
381 SketchLine_41.result().setName("SketchLine_42")
382 SketchConstraintCoincidence_68 = Sketch_6.setCoincident(SketchLine_40.endPoint(), SketchLine_41.startPoint())
383 SketchConstraintCoincidence_68.setName("SketchConstraintCoincidence_69")
384 SketchLine_42 = Sketch_6.addLine(-27.99998714942714, 44, -27.99998714942714, 29)
385 SketchLine_42.setName("SketchLine_43")
386 SketchLine_42.result().setName("SketchLine_43")
387 SketchConstraintCoincidence_69 = Sketch_6.setCoincident(SketchLine_41.endPoint(), SketchLine_42.startPoint())
388 SketchConstraintCoincidence_69.setName("SketchConstraintCoincidence_70")
389 SketchLine_43 = Sketch_6.addLine(-27.99998714942714, 29, -47.99998714942714, 29)
390 SketchLine_43.setName("SketchLine_44")
391 SketchLine_43.result().setName("SketchLine_44")
392 SketchConstraintCoincidence_70 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_43.startPoint())
393 SketchConstraintCoincidence_70.setName("SketchConstraintCoincidence_71")
394 SketchLine_44 = Sketch_6.addLine(-47.99998714942714, 29, -47.99998714942714, 44)
395 SketchLine_44.setName("SketchLine_45")
396 SketchLine_44.result().setName("SketchLine_45")
397 SketchConstraintCoincidence_71 = Sketch_6.setCoincident(SketchLine_43.endPoint(), SketchLine_44.startPoint())
398 SketchConstraintCoincidence_71.setName("SketchConstraintCoincidence_72")
399 SketchLine_45 = Sketch_6.addLine(-47.99998714942714, 44, -59, 44)
400 SketchLine_45.setName("SketchLine_46")
401 SketchLine_45.result().setName("SketchLine_46")
402 SketchConstraintCoincidence_72 = Sketch_6.setCoincident(SketchLine_44.endPoint(), SketchLine_45.startPoint())
403 SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_73")
404 SketchConstraintCoincidence_73 = Sketch_6.setCoincident(SketchLine_38.startPoint(), SketchLine_45.endPoint())
405 SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_74")
406 SketchConstraintEqual_14 = Sketch_6.setEqual(SketchLine_38.result(), SketchLine_40.result())
407 SketchConstraintEqual_15 = Sketch_6.setEqual(SketchLine_41.result(), SketchLine_45.result())
408 SketchConstraintEqual_16 = Sketch_6.setEqual(SketchLine_42.result(), SketchLine_44.result())
409 SketchConstraintHorizontal_7 = Sketch_6.setHorizontal(SketchLine_45.result())
410 SketchConstraintHorizontal_8 = Sketch_6.setHorizontal(SketchLine_43.result())
411 SketchConstraintHorizontal_9 = Sketch_6.setHorizontal(SketchLine_39.result())
412 SketchConstraintHorizontal_10 = Sketch_6.setHorizontal(SketchLine_41.result())
413 SketchConstraintVertical_4 = Sketch_6.setVertical(SketchLine_38.result())
414 SketchConstraintVertical_5 = Sketch_6.setVertical(SketchLine_44.result())
415 SketchConstraintVertical_6 = Sketch_6.setVertical(SketchLine_42.result())
416 SketchConstraintLength_3 = Sketch_6.setLength(SketchLine_38.result(), 42)
417 SketchConstraintLength_4 = Sketch_6.setLength(SketchLine_43.result(), 20)
418 SketchConstraintLength_5 = Sketch_6.setLength(SketchLine_44.result(), 15)
419 SketchConstraintLength_6 = Sketch_6.setLength(SketchLine_39.result(), 42)
420 SketchProjection_3 = Sketch_6.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2]"), False)
421 SketchLine_46 = SketchProjection_3.createdFeature()
422 SketchLine_46.setName("SketchLine_47")
423 SketchLine_46.result().setName("SketchLine_47")
424 SketchProjection_4 = Sketch_6.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_1_1/Generated_Face&Sketch_2/SketchCircle_1_2)_ExtrusionCut_5_2]"), False)
425 SketchLine_47 = SketchProjection_4.createdFeature()
426 SketchLine_47.setName("SketchLine_48")
427 SketchLine_47.result().setName("SketchLine_48")
428 SketchProjection_5 = Sketch_6.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3][Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2]"), False)
429 SketchLine_48 = SketchProjection_5.createdFeature()
430 SketchLine_48.setName("SketchLine_49")
431 SketchLine_48.result().setName("SketchLine_49")
432 SketchConstraintDistance_13 = Sketch_6.setDistance(SketchLine_38.endPoint(), SketchLine_46.result(), 2)
433 SketchConstraintDistance_14 = Sketch_6.setDistance(SketchLine_38.startPoint(), SketchLine_47.result(), 17)
435 ExtrusionCut_6 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_6")], model.selection(), model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6"), -2, model.selection(), -2, [model.selection("SOLID", "ExtrusionCut_5_2")])
436 Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1"))
437 SketchLine_49 = Sketch_7.addLine(0, -22.99999999998656, -76, -22.99999999998655)
438 SketchLine_49.setName("SketchLine_50")
439 SketchLine_49.result().setName("SketchLine_50")
440 SketchLine_49.setAuxiliary(True)
441 SketchLine_50 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_3_1/Generated_Face&Sketch_3/SketchCircle_5_2)_ExtrusionCut_6_1]"))
442 SketchLine_50.setName("SketchLine_51")
443 SketchLine_50.result().setName("SketchLine_51")
444 SketchConstraintCoincidence_74 = Sketch_7.setCoincident(SketchLine_49.startPoint(), SketchLine_50.result())
445 SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_75")
446 SketchPoint_3 = Sketch_7.addPoint(model.selection("VERTEX", "Sketch_2/SketchLine_13_StartVertex"))
447 SketchConstraintCoincidence_75 = Sketch_7.setCoincident(SketchLine_49.endPoint(), SketchPoint_3.result())
448 SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_76")
449 SketchConstraintMiddle_17 = Sketch_7.setMiddlePoint(SketchLine_49.startPoint(), SketchLine_50.result())
450 SketchLine_51 = Sketch_7.addLine(-38, -40.99999999998656, -38, -4.99999999998656)
451 SketchLine_51.setName("SketchLine_52")
452 SketchLine_51.result().setName("SketchLine_52")
453 SketchLine_51.setAuxiliary(True)
454 SketchLine_52 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2]"))
455 SketchLine_52.setName("SketchLine_53")
456 SketchLine_52.result().setName("SketchLine_53")
457 SketchConstraintCoincidence_76 = Sketch_7.setCoincident(SketchLine_51.startPoint(), SketchLine_52.result())
458 SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_77")
459 SketchLine_53 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1]"))
460 SketchLine_53.setName("SketchLine_54")
461 SketchLine_53.result().setName("SketchLine_54")
462 SketchConstraintCoincidence_77 = Sketch_7.setCoincident(SketchLine_51.endPoint(), SketchLine_53.result())
463 SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_78")
464 SketchConstraintMiddle_18 = Sketch_7.setMiddlePoint(SketchLine_51.startPoint(), SketchLine_52.result())
465 SketchConstraintMiddle_19 = Sketch_7.setMiddlePoint(SketchLine_51.endPoint(), SketchLine_53.result())
466 SketchPoint_4 = Sketch_7.addPoint(-37.99999999999999, -22.99999999998656)
467 SketchConstraintCoincidence_78 = Sketch_7.setCoincident(SketchPoint_4.coordinates(), SketchLine_51.result())
468 SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_79")
469 SketchConstraintMiddle_20 = Sketch_7.setMiddlePoint(SketchPoint_4.coordinates(), SketchLine_51.result())
470 SketchCircle_10 = Sketch_7.addCircle(-37.99999999999999, -22.99999999998656, 17)
471 SketchConstraintCoincidence_79 = Sketch_7.setCoincident(SketchPoint_4.coordinates(), SketchCircle_10.center())
472 SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_80")
473 SketchConstraintRadius_8 = Sketch_7.setRadius(SketchCircle_10.results()[1], 17)
475 Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_7/Face-SketchCircle_10_2f_wire")], model.selection(), 16, 0)
476 Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_3_1/To_Face"))
477 SketchProjection_6 = Sketch_8.addProjection(model.selection("EDGE", "Sketch_2/SketchLine_9"), False)
478 SketchLine_54 = SketchProjection_6.createdFeature()
479 SketchLine_54.setName("SketchLine_55")
480 SketchLine_54.result().setName("SketchLine_55")
481 SketchProjection_7 = Sketch_8.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_3_1/Generated_Face&Sketch_3/SketchCircle_5_2)_ExtrusionCut_6_1]"), False)
482 SketchLine_55 = SketchProjection_7.createdFeature()
483 SketchLine_55.setName("SketchLine_56")
484 SketchLine_55.result().setName("SketchLine_56")
485 SketchLine_56 = Sketch_8.addLine(0, -22.99999999998656, -76, -22.99999999999327)
486 SketchLine_56.setName("SketchLine_57")
487 SketchLine_56.result().setName("SketchLine_57")
488 SketchLine_56.setAuxiliary(True)
489 SketchConstraintCoincidence_80 = Sketch_8.setCoincident(SketchLine_56.startPoint(), SketchLine_55.result())
490 SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_81")
491 SketchConstraintCoincidence_81 = Sketch_8.setCoincident(SketchLine_56.endPoint(), SketchLine_54.result())
492 SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_82")
493 SketchConstraintMiddle_21 = Sketch_8.setMiddlePoint(SketchLine_56.endPoint(), SketchLine_54.result())
494 SketchConstraintMiddle_22 = Sketch_8.setMiddlePoint(SketchLine_55.result(), SketchLine_56.startPoint())
495 SketchLine_57 = Sketch_8.addLine(-37.99999999999842, -40.99999999998655, -38.000000000002, 0)
496 SketchLine_57.setName("SketchLine_58")
497 SketchLine_57.result().setName("SketchLine_58")
498 SketchLine_57.setAuxiliary(True)
499 SketchPoint_5 = Sketch_8.addPoint(-38, -22.99999999998992)
500 SketchConstraintCoincidence_82 = Sketch_8.setCoincident(SketchPoint_5.coordinates(), SketchLine_56.result())
501 SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_83")
502 SketchConstraintMiddle_23 = Sketch_8.setMiddlePoint(SketchLine_56.result(), SketchPoint_5.coordinates())
503 SketchConstraintCoincidence_83 = Sketch_8.setCoincident(SketchLine_57.result(), SketchPoint_5.coordinates())
504 SketchConstraintCoincidence_83.setName("SketchConstraintCoincidence_84")
505 SketchConstraintPerpendicular_1 = Sketch_8.setPerpendicular(SketchLine_57.result(), SketchLine_56.result())
506 SketchProjection_8 = Sketch_8.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2]"), False)
507 SketchLine_58 = SketchProjection_8.createdFeature()
508 SketchLine_58.setName("SketchLine_59")
509 SketchLine_58.result().setName("SketchLine_59")
510 SketchProjection_9 = Sketch_8.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1]"), False)
511 SketchLine_59 = SketchProjection_9.createdFeature()
512 SketchLine_59.setName("SketchLine_60")
513 SketchLine_59.result().setName("SketchLine_60")
514 SketchConstraintCoincidence_84 = Sketch_8.setCoincident(SketchLine_57.startPoint(), SketchLine_58.result())
515 SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_85")
516 SketchConstraintCoincidence_85 = Sketch_8.setCoincident(SketchLine_57.endPoint(), SketchLine_59.result())
517 SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_86")
518 SketchCircle_11 = Sketch_8.addCircle(-30, -22.99999999998921, 2.5)
519 SketchConstraintCoincidence_86 = Sketch_8.setCoincident(SketchLine_56.result(), SketchCircle_11.center())
520 SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_87")
521 SketchCircle_12 = Sketch_8.addCircle(-46.00000000004985, -22.99999999999062, 2.5)
522 SketchConstraintCoincidence_87 = Sketch_8.setCoincident(SketchLine_56.result(), SketchCircle_12.center())
523 SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_88")
524 SketchConstraintEqual_17 = Sketch_8.setEqual(SketchCircle_12.results()[1], SketchCircle_11.results()[1])
525 SketchConstraintRadius_9 = Sketch_8.setRadius(SketchCircle_11.results()[1], 2.5)
526 SketchConstraintDistance_15 = Sketch_8.setDistance(SketchCircle_11.center(), SketchLine_57.result(), 8)
527 SketchConstraintDistance_16 = Sketch_8.setDistance(SketchCircle_11.center(), SketchCircle_12.center(), 16)
529 Extrusion_4 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_8/Face-SketchCircle_11_2f"), model.selection("FACE", "Sketch_8/Face-SketchCircle_12_2f")], model.selection(), 17, 0)
530 Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_3_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_3)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_1_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2)(Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6)(ExtrusionCut_4_2/Modified_Face&Sketch_1/SketchArc_2_2)(ExtrusionCut_3_1/Generated_Face&Sketch_3/SketchCircle_5_2)_ExtrusionCut_6_1"), 38, True)
531 Sketch_9 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1"))
532 SketchLine_60 = Sketch_9.addLine(-14, -36.99999999998992, 0, -36.99999999998992)
533 SketchLine_60.setName("SketchLine_61")
534 SketchLine_60.result().setName("SketchLine_61")
535 SketchLine_61 = Sketch_9.addLine(0, -36.99999999998992, 0, -22.99999999998992)
536 SketchLine_61.setName("SketchLine_62")
537 SketchLine_61.result().setName("SketchLine_62")
538 SketchLine_62 = Sketch_9.addLine(0, -22.99999999998992, -14, -22.99999999998992)
539 SketchLine_62.setName("SketchLine_63")
540 SketchLine_62.result().setName("SketchLine_63")
541 SketchLine_63 = Sketch_9.addLine(-14, -22.99999999998992, -14, -36.99999999998992)
542 SketchLine_63.setName("SketchLine_64")
543 SketchLine_63.result().setName("SketchLine_64")
544 SketchConstraintCoincidence_88 = Sketch_9.setCoincident(SketchLine_63.endPoint(), SketchLine_60.startPoint())
545 SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_89")
546 SketchConstraintCoincidence_89 = Sketch_9.setCoincident(SketchLine_60.endPoint(), SketchLine_61.startPoint())
547 SketchConstraintCoincidence_89.setName("SketchConstraintCoincidence_90")
548 SketchConstraintCoincidence_90 = Sketch_9.setCoincident(SketchLine_61.endPoint(), SketchLine_62.startPoint())
549 SketchConstraintCoincidence_90.setName("SketchConstraintCoincidence_91")
550 SketchConstraintCoincidence_91 = Sketch_9.setCoincident(SketchLine_62.endPoint(), SketchLine_63.startPoint())
551 SketchConstraintCoincidence_91.setName("SketchConstraintCoincidence_92")
552 SketchConstraintHorizontal_11 = Sketch_9.setHorizontal(SketchLine_60.result())
553 SketchConstraintVertical_7 = Sketch_9.setVertical(SketchLine_61.result())
554 SketchConstraintHorizontal_12 = Sketch_9.setHorizontal(SketchLine_62.result())
555 SketchConstraintVertical_8 = Sketch_9.setVertical(SketchLine_63.result())
556 SketchConstraintLength_7 = Sketch_9.setLength(SketchLine_61.result(), 14)
557 SketchConstraintEqual_18 = Sketch_9.setEqual(SketchLine_61.result(), SketchLine_60.result())
558 SketchLine_64 = Sketch_9.addLine(-5.662490896925754, -22.99999999998992, -60.5217691188193, -22.99999999998992)
559 SketchLine_64.setName("SketchLine_65")
560 SketchLine_64.result().setName("SketchLine_65")
561 SketchLine_64.setAuxiliary(True)
562 SketchPoint_6 = Sketch_9.addPoint(model.selection("VERTEX", "Sketch_8/SketchPoint_5"))
563 SketchConstraintCoincidence_92 = Sketch_9.setCoincident(SketchLine_64.result(), SketchPoint_6.coordinates())
564 SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_93")
565 SketchConstraintHorizontal_13 = Sketch_9.setHorizontal(SketchLine_64.result())
566 SketchConstraintCoincidence_93 = Sketch_9.setCoincident(SketchLine_62.startPoint(), SketchLine_64.result())
567 SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_94")
568 SketchLine_65 = Sketch_9.addLine(model.selection("EDGE", "Sketch_7/SketchLine_52"))
569 SketchLine_65.setName("SketchLine_66")
570 SketchLine_65.result().setName("SketchLine_66")
571 SketchConstraintCoincidence_94 = Sketch_9.setCoincident(SketchLine_60.endPoint(), SketchLine_65.result())
572 SketchConstraintCoincidence_94.setName("SketchConstraintCoincidence_95")
574 RevolutionCut_1 = model.addRevolutionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_9")], model.selection("EDGE", "Sketch_9/SketchLine_65"), 360, 0, [model.selection("SOLID", "Extrusion_3_1")])
577 from GeomAPI import GeomAPI_Shape
579 model.testNbResults(Part_1, 1)
580 model.testNbSubResults(Part_1, [0])
581 model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [5])
582 model.testNbSubShapes(Part_1, GeomAPI_Shape.FACE, [78])
583 model.testNbSubShapes(Part_1, GeomAPI_Shape.EDGE, [340])
584 model.testNbSubShapes(Part_1, GeomAPI_Shape.VERTEX, [680])
585 model.testResultsVolumes(Part_1, [61675.12443110236])
588 assert(model.checkPythonDump())