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
21 from SketchAPI import *
23 from salome.shaper import model
26 partSet = model.moduleDocument()
27 Part_1 = model.addPart(partSet)
28 Part_1_doc = Part_1.document()
29 model.addParameter(Part_1_doc, "r1", "26.5")
30 model.addParameter(Part_1_doc, "r2", "22")
31 model.addParameter(Part_1_doc, "entraxe", "80")
32 Parameter_Epaisseur = model.addParameter(Part_1_doc, "epaisseur", "34")
33 model.addParameter(Part_1_doc, "ep", "4")
34 model.addParameter(Part_1_doc, "d1", "112")
35 model.addParameter(Part_1_doc, "d2", "24")
36 model.addParameter(Part_1_doc, "d3", "5")
37 model.addParameter(Part_1_doc, "r3", "2.5")
38 model.addParameter(Part_1_doc, "dtrou", "9")
39 model.addParameter(Part_1_doc, "ep_o", "24")
40 model.addParameter(Part_1_doc, "d_per", "2.5")
41 model.addParameter(Part_1_doc, "r4", "15")
42 model.addParameter(Part_1_doc, "h", "45")
43 model.addParameter(Part_1_doc, "ep_o2", "5")
44 model.addParameter(Part_1_doc, "d_o", "10")
45 model.addParameter(Part_1_doc, "h_o", "57")
46 model.addParameter(Part_1_doc, "p_trou1", "29.2")
47 model.addParameter(Part_1_doc, "p2_trou1", "19.2")
48 model.addParameter(Part_1_doc, "p_trou2", "46")
49 model.addParameter(Part_1_doc, "p2_trou", "36.5")
50 model.addParameter(Part_1_doc, "h_p", "40")
51 model.addParameter(Part_1_doc, "M8", "4")
52 model.addParameter(Part_1_doc, "r_trou2", "10")
53 model.addParameter(Part_1_doc, "r_al1", "12.5")
54 model.addParameter(Part_1_doc, "r_al2", "14")
55 model.addParameter(Part_1_doc, "coeff", "1")
56 Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ"))
57 SketchPoint_1 = Sketch_1.addPoint(model.selection("VERTEX", "PartSet/Origin"))
58 SketchCircle_1 = Sketch_1.addCircle(0, 0, 15)
59 SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchPoint_1.result(), SketchCircle_1.center())
60 SketchCircle_2 = Sketch_1.addCircle(80, 0, 15)
61 SketchCircle_3 = Sketch_1.addCircle(0, 0, 12.5)
62 SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchCircle_3.center())
63 SketchCircle_4 = Sketch_1.addCircle(80, 0, 14)
64 SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchCircle_2.center(), SketchCircle_4.center())
65 SketchConstraintRadius_1 = Sketch_1.setRadius(SketchCircle_3.results()[1], "r_al1*coeff")
66 SketchConstraintRadius_2 = Sketch_1.setRadius(SketchCircle_4.results()[1], "r_al2*coeff")
67 SketchConstraintRadius_3 = Sketch_1.setRadius(SketchCircle_1.results()[1], "r4*coeff")
68 SketchConstraintRadius_4 = Sketch_1.setRadius(SketchCircle_2.results()[1], "r4*coeff")
69 SketchConstraintDistance_1 = Sketch_1.setDistance(SketchCircle_3.center(), SketchCircle_4.center(), "entraxe*coeff")
70 SketchArc_1 = Sketch_1.addArc(0, 0, 13.96424004376894, -17, 13.96424004376894, 17, True)
71 SketchArc_1.setName("SketchArc_4")
72 SketchArc_1.result().setName("SketchArc_4")
73 SketchArc_1.results()[1].setName("SketchArc_4_2")
74 SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchCircle_3.center(), SketchArc_1.center())
75 SketchConstraintCoincidence_4.setName("SketchConstraintCoincidence_7")
76 SketchLine_1 = Sketch_1.addLine(13.96424004376894, 17, 66.03575995620928, 17)
77 SketchLine_1.setName("SketchLine_6")
78 SketchLine_1.result().setName("SketchLine_6")
79 SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_1.startPoint())
80 SketchConstraintCoincidence_5.setName("SketchConstraintCoincidence_18")
81 SketchLine_2 = Sketch_1.addLine(13.96424004376894, -17, 66.03575995623092, -17)
82 SketchLine_2.setName("SketchLine_10")
83 SketchLine_2.result().setName("SketchLine_10")
84 SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_2.result())
85 SketchConstraintHorizontal_1.setName("SketchConstraintHorizontal_5")
86 SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_1.result())
87 SketchConstraintHorizontal_2.setName("SketchConstraintHorizontal_6")
88 SketchLine_3 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX"))
89 SketchLine_3.setName("SketchLine_11")
90 SketchLine_3.result().setName("SketchLine_11")
91 SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_2.startPoint())
92 SketchConstraintCoincidence_6.setName("SketchConstraintCoincidence_15")
93 SketchConstraintRadius_5 = Sketch_1.setRadius(SketchArc_1.results()[1], "r2*coeff")
94 SketchConstraintDistance_2 = Sketch_1.setDistance(SketchArc_1.endPoint(), SketchLine_3.result(), "epaisseur/2*coeff")
95 SketchConstraintDistance_3 = Sketch_1.setDistance(SketchArc_1.endPoint(), SketchLine_2.result(), "epaisseur*coeff")
96 SketchArc_2 = Sketch_1.addArc(80, 0, 66.03575995623092, -17, 66.03575995620928, 17, False)
97 SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchCircle_2.center(), SketchArc_2.center())
98 SketchConstraintCoincidence_7.setName("SketchConstraintCoincidence_8")
99 SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchArc_2.startPoint())
100 SketchConstraintCoincidence_8.setName("SketchConstraintCoincidence_9")
101 SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_1.endPoint())
102 SketchConstraintCoincidence_9.setName("SketchConstraintCoincidence_10")
103 SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchCircle_2.center(), SketchLine_3.result())
104 SketchConstraintCoincidence_10.setName("SketchConstraintCoincidence_11")
105 SketchConstraintEqual_1 = Sketch_1.setEqual(SketchArc_1.results()[1], SketchArc_2.results()[1])
106 SketchArc_3 = Sketch_1.addArc(0, 0, 15.46247221747307, -11.0413745939477, 18.89444362769119, -2, False)
107 SketchArc_3.setName("SketchArc_7")
108 SketchArc_3.result().setName("SketchArc_7")
109 SketchArc_3.results()[1].setName("SketchArc_7_2")
110 SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchArc_3.center())
111 SketchConstraintCoincidence_11.setName("SketchConstraintCoincidence_54")
112 SketchArc_4 = Sketch_1.addArc(0, 0, 18.89444362769119, 2, 15.46247221747308, 11.04137459394768, False)
113 SketchArc_4.setName("SketchArc_8")
114 SketchArc_4.result().setName("SketchArc_8")
115 SketchArc_4.results()[1].setName("SketchArc_8_2")
116 SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchArc_4.center())
117 SketchConstraintCoincidence_12.setName("SketchConstraintCoincidence_55")
118 SketchConstraintEqual_2 = Sketch_1.setEqual(SketchArc_4.results()[1], SketchArc_3.results()[1])
119 SketchConstraintEqual_2.setName("SketchConstraintEqual_8")
120 SketchArc_5 = Sketch_1.addArc(17.5, 12.49632352941176, 15.46247221747308, 11.04137459394768, 17.5, 15, True)
121 SketchArc_5.setName("SketchArc_9")
122 SketchArc_5.result().setName("SketchArc_9")
123 SketchArc_5.results()[1].setName("SketchArc_9_2")
124 SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchArc_4.endPoint(), SketchArc_5.startPoint())
125 SketchConstraintCoincidence_13.setName("SketchConstraintCoincidence_56")
126 SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_4.results()[1], SketchArc_5.results()[1])
127 SketchArc_6 = Sketch_1.addArc(17.5, -12.49632352941177, 15.46247221747307, -11.0413745939477, 17.5, -15, False)
128 SketchArc_6.setName("SketchArc_10")
129 SketchArc_6.result().setName("SketchArc_10")
130 SketchArc_6.results()[1].setName("SketchArc_10_2")
131 SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchArc_3.startPoint(), SketchArc_6.startPoint())
132 SketchConstraintCoincidence_14.setName("SketchConstraintCoincidence_57")
133 SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_3.results()[1], SketchArc_6.results()[1])
134 SketchLine_4 = Sketch_1.addLine(17.5, 15, 38, 15)
135 SketchLine_4.setName("SketchLine_42")
136 SketchLine_4.result().setName("SketchLine_42")
137 SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchArc_5.endPoint(), SketchLine_4.startPoint())
138 SketchConstraintCoincidence_15.setName("SketchConstraintCoincidence_58")
139 SketchLine_5 = Sketch_1.addLine(18.89444362769119, -2, 34.49444362769118, -2)
140 SketchLine_5.setName("SketchLine_44")
141 SketchLine_5.result().setName("SketchLine_44")
142 SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchArc_3.endPoint(), SketchLine_5.startPoint())
143 SketchConstraintCoincidence_16.setName("SketchConstraintCoincidence_60")
144 SketchLine_6 = Sketch_1.addLine(18.89444362769119, 2, 34.49444362769118, 2)
145 SketchLine_6.setName("SketchLine_45")
146 SketchLine_6.result().setName("SketchLine_45")
147 SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchArc_4.startPoint(), SketchLine_6.startPoint())
148 SketchConstraintCoincidence_17.setName("SketchConstraintCoincidence_61")
149 SketchLine_7 = Sketch_1.addLine(38, 15, 38, 5.505556372308819)
150 SketchLine_7.setName("SketchLine_46")
151 SketchLine_7.result().setName("SketchLine_46")
152 SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_7.startPoint())
153 SketchConstraintCoincidence_18.setName("SketchConstraintCoincidence_62")
154 SketchConstraintEqual_3 = Sketch_1.setEqual(SketchArc_5.results()[1], SketchArc_6.results()[1])
155 SketchConstraintEqual_3.setName("SketchConstraintEqual_9")
156 SketchConstraintEqual_4 = Sketch_1.setEqual(SketchLine_5.result(), SketchLine_6.result())
157 SketchConstraintEqual_4.setName("SketchConstraintEqual_11")
158 SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_6.result())
159 SketchConstraintHorizontal_3.setName("SketchConstraintHorizontal_12")
160 SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_4.result())
161 SketchConstraintHorizontal_4.setName("SketchConstraintHorizontal_13")
162 SketchConstraintHorizontal_5 = Sketch_1.setHorizontal(SketchLine_5.result())
163 SketchConstraintHorizontal_5.setName("SketchConstraintHorizontal_14")
164 SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_7.result())
165 SketchConstraintVertical_1.setName("SketchConstraintVertical_7")
166 SketchLine_8 = Sketch_1.addLine(40, 17, 40, -17)
167 SketchLine_8.setName("SketchLine_47")
168 SketchLine_8.result().setName("SketchLine_47")
169 SketchLine_8.setAuxiliary(True)
170 SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_8.startPoint(), SketchLine_1.result())
171 SketchConstraintCoincidence_19.setName("SketchConstraintCoincidence_63")
172 SketchConstraintCoincidence_20 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_2.result())
173 SketchConstraintCoincidence_20.setName("SketchConstraintCoincidence_64")
174 SketchConstraintMiddle_1 = Sketch_1.setMiddlePoint(SketchLine_8.startPoint(), SketchLine_1.result())
175 SketchConstraintMiddle_1.setName("SketchConstraintMiddle_4")
176 SketchConstraintMiddle_2 = Sketch_1.setMiddlePoint(SketchLine_8.endPoint(), SketchLine_2.result())
177 SketchConstraintMiddle_2.setName("SketchConstraintMiddle_5")
178 SketchPoint_2 = Sketch_1.addPoint(40, 2.220450266386716e-15)
179 SketchPoint_2.setName("SketchPoint_7")
180 SketchPoint_2.result().setName("SketchPoint_7")
181 SketchConstraintCoincidence_21 = Sketch_1.setCoincident(SketchPoint_2.coordinates(), SketchLine_8.result())
182 SketchConstraintCoincidence_21.setName("SketchConstraintCoincidence_65")
183 SketchConstraintMiddle_3 = Sketch_1.setMiddlePoint(SketchLine_8.result(), SketchPoint_2.coordinates())
184 SketchConstraintMiddle_3.setName("SketchConstraintMiddle_6")
185 SketchConstraintDistance_4 = Sketch_1.setDistance(SketchLine_6.startPoint(), SketchLine_3.result(), "2*coeff")
186 SketchConstraintDistance_4.setName("SketchConstraintDistance_17")
187 SketchConstraintDistance_5 = Sketch_1.setDistance(SketchArc_3.endPoint(), SketchLine_3.result(), "2*coeff")
188 SketchConstraintDistance_5.setName("SketchConstraintDistance_18")
189 SketchConstraintRadius_6 = Sketch_1.setRadius(SketchArc_4.results()[1], "(r4+4)*coeff")
190 SketchConstraintRadius_6.setName("SketchConstraintRadius_13")
191 SketchConstraintDistance_6 = Sketch_1.setDistance(SketchLine_4.endPoint(), SketchLine_8.result(), "2*coeff")
192 SketchConstraintDistance_6.setName("SketchConstraintDistance_19")
193 SketchArc_7 = Sketch_1.addArc(40, 0, 34.49444362769118, 2, 38, 5.505556372308819, True)
194 SketchArc_7.setName("SketchArc_11")
195 SketchArc_7.result().setName("SketchArc_11")
196 SketchArc_7.results()[1].setName("SketchArc_11_2")
197 SketchConstraintCoincidence_22 = Sketch_1.setCoincident(SketchPoint_2.coordinates(), SketchArc_7.center())
198 SketchConstraintCoincidence_22.setName("SketchConstraintCoincidence_66")
199 SketchConstraintCoincidence_23 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchArc_7.startPoint())
200 SketchConstraintCoincidence_23.setName("SketchConstraintCoincidence_67")
201 SketchArc_8 = Sketch_1.addArc(40, 0, 34.49444362769118, -2, 37.95784774655168, -5.490060577298436, False)
202 SketchArc_8.setName("SketchArc_12")
203 SketchArc_8.result().setName("SketchArc_12")
204 SketchArc_8.results()[1].setName("SketchArc_12_2")
205 SketchConstraintCoincidence_24 = Sketch_1.setCoincident(SketchPoint_2.coordinates(), SketchArc_8.center())
206 SketchConstraintCoincidence_24.setName("SketchConstraintCoincidence_68")
207 SketchConstraintCoincidence_25 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchArc_8.startPoint())
208 SketchConstraintCoincidence_25.setName("SketchConstraintCoincidence_69")
209 SketchConstraintCoincidence_26 = Sketch_1.setCoincident(SketchArc_7.endPoint(), SketchLine_7.endPoint())
210 SketchConstraintCoincidence_26.setName("SketchConstraintCoincidence_72")
211 SketchConstraintDistance_7 = Sketch_1.setDistance(SketchArc_5.endPoint(), SketchLine_1.result(), "2*coeff")
212 SketchConstraintDistance_7.setName("SketchConstraintDistance_21")
213 SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_5.results()[1], SketchLine_4.result())
214 SketchCircle_5 = Sketch_1.addCircle(40, -13, 2.5)
215 SketchCircle_5.setName("SketchCircle_11")
216 SketchCircle_5.result().setName("SketchCircle_11")
217 SketchCircle_5.results()[1].setName("SketchCircle_11_2")
218 SketchConstraintCoincidence_27 = Sketch_1.setCoincident(SketchLine_8.result(), SketchCircle_5.center())
219 SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_70")
220 SketchConstraintRadius_7 = Sketch_1.setRadius(SketchCircle_5.results()[1], "2.5*coeff")
221 SketchConstraintRadius_7.setName("SketchConstraintRadius_14")
222 SketchArc_9 = Sketch_1.addArc(40, -13, 35.51437699680511, -13.35942492012782, 37.95784774655168, -8.990060577298436, True)
223 SketchArc_9.setName("SketchArc_13")
224 SketchArc_9.result().setName("SketchArc_13")
225 SketchArc_9.results()[1].setName("SketchArc_13_2")
226 SketchConstraintCoincidence_28 = Sketch_1.setCoincident(SketchCircle_5.center(), SketchArc_9.center())
227 SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_71")
228 SketchLine_9 = Sketch_1.addLine(37.95784774655168, -5.490060577298436, 37.95784774655168, -8.990060577298436)
229 SketchLine_9.setName("SketchLine_48")
230 SketchLine_9.result().setName("SketchLine_48")
231 SketchConstraintCoincidence_29 = Sketch_1.setCoincident(SketchArc_8.endPoint(), SketchLine_9.startPoint())
232 SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_74")
233 SketchConstraintCoincidence_30 = Sketch_1.setCoincident(SketchArc_9.endPoint(), SketchLine_9.endPoint())
234 SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_75")
235 SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_9.result())
236 SketchConstraintVertical_2.setName("SketchConstraintVertical_8")
237 SketchConstraintRadius_8 = Sketch_1.setRadius(SketchArc_9.results()[1], "(2.5+2)*coeff")
238 SketchConstraintRadius_8.setName("SketchConstraintRadius_15")
239 SketchConstraintDistance_8 = Sketch_1.setDistance(SketchCircle_5.center(), SketchLine_2.result(), "4*coeff")
240 SketchConstraintDistance_8.setName("SketchConstraintDistance_22")
241 SketchLine_10 = Sketch_1.addLine(17.5, -15, 34, -15)
242 SketchLine_10.setName("SketchLine_43")
243 SketchLine_10.result().setName("SketchLine_43")
244 SketchConstraintCoincidence_31 = Sketch_1.setCoincident(SketchArc_6.endPoint(), SketchLine_10.startPoint())
245 SketchConstraintCoincidence_31.setName("SketchConstraintCoincidence_73")
246 SketchArc_10 = Sketch_1.addArc(34, -13.48076923076937, 34, -15, 35.51437699680511, -13.35942492012782, False)
247 SketchArc_10.setName("SketchArc_14")
248 SketchArc_10.result().setName("SketchArc_14")
249 SketchArc_10.results()[1].setName("SketchArc_14_2")
250 SketchConstraintCoincidence_32 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchArc_10.startPoint())
251 SketchConstraintCoincidence_32.setName("SketchConstraintCoincidence_76")
252 SketchConstraintTangent_4 = Sketch_1.setTangent(SketchLine_10.result(), SketchArc_10.results()[1])
253 SketchConstraintCoincidence_33 = Sketch_1.setCoincident(SketchArc_9.results()[1], SketchArc_10.endPoint())
254 SketchConstraintCoincidence_33.setName("SketchConstraintCoincidence_77")
255 SketchConstraintTangent_5 = Sketch_1.setTangent(SketchArc_9.results()[1], SketchArc_10.results()[1])
256 SketchConstraintCoincidence_34 = Sketch_1.setCoincident(SketchArc_9.startPoint(), SketchArc_10.endPoint())
257 SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_78")
258 SketchConstraintDistance_9 = Sketch_1.setDistance(SketchLine_10.endPoint(), SketchLine_2.result(), "2*coeff")
259 SketchConstraintDistance_9.setName("SketchConstraintDistance_20")
260 SketchConstraintHorizontal_6 = Sketch_1.setHorizontal(SketchLine_10.result())
261 SketchConstraintHorizontal_6.setName("SketchConstraintHorizontal_15")
262 SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_10.result(), "16.5*coeff")
263 SketchConstraintLength_1.setName("SketchConstraintLength_8")
264 SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_4.result(), "20.5*coeff")
265 SketchConstraintLength_2.setName("SketchConstraintLength_9")
266 SketchLine_11 = Sketch_1.addLine(17.5, 15, 17.5, -15)
267 SketchLine_11.setName("SketchLine_49")
268 SketchLine_11.result().setName("SketchLine_49")
269 SketchLine_11.setAuxiliary(True)
270 SketchConstraintCoincidence_35 = Sketch_1.setCoincident(SketchArc_5.endPoint(), SketchLine_11.startPoint())
271 SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_79")
272 SketchConstraintCoincidence_36 = Sketch_1.setCoincident(SketchArc_6.endPoint(), SketchLine_11.endPoint())
273 SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_80")
274 SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_11.result())
275 SketchConstraintVertical_3.setName("SketchConstraintVertical_9")
276 SketchConstraintLength_3 = Sketch_1.setLength(SketchLine_5.result(), "15.6*coeff")
277 SketchConstraintLength_3.setName("SketchConstraintLength_10")
278 SketchConstraintLength_4 = Sketch_1.setLength(SketchLine_9.result(), "3.5*coeff")
279 SketchConstraintLength_4.setName("SketchConstraintLength_11")
280 SketchConstraintMirror_1_objects = [SketchLine_4.result(), SketchArc_5.results()[1], SketchArc_4.results()[1], SketchLine_6.result(), SketchArc_7.results()[1], SketchLine_7.result(), SketchLine_5.result(), SketchArc_8.results()[1], SketchLine_9.result(), SketchArc_9.results()[1], SketchArc_10.results()[1], SketchLine_10.result(), SketchArc_6.results()[1], SketchArc_3.results()[1]]
281 SketchConstraintMirror_1 = Sketch_1.addMirror(SketchLine_8.result(), SketchConstraintMirror_1_objects)
282 [SketchLine_12, SketchArc_11, SketchArc_12, SketchLine_13, SketchArc_13, SketchLine_14, SketchLine_15, SketchArc_14, SketchLine_16, SketchArc_15, SketchArc_16, SketchLine_17, SketchArc_17, SketchArc_18] = SketchConstraintMirror_1.mirrored()
283 SketchArc_18.setName("SketchArc_22")
284 SketchArc_18.result().setName("SketchArc_22")
285 SketchArc_18.results()[1].setName("SketchArc_22_2")
286 SketchArc_17.setName("SketchArc_21")
287 SketchArc_17.result().setName("SketchArc_21")
288 SketchArc_17.results()[1].setName("SketchArc_21_2")
289 SketchLine_17.setName("SketchLine_55")
290 SketchLine_17.result().setName("SketchLine_55")
291 SketchArc_16.setName("SketchArc_20")
292 SketchArc_16.result().setName("SketchArc_20")
293 SketchArc_16.results()[1].setName("SketchArc_20_2")
294 SketchArc_15.setName("SketchArc_19")
295 SketchArc_15.result().setName("SketchArc_19")
296 SketchArc_15.results()[1].setName("SketchArc_19_2")
297 SketchLine_16.setName("SketchLine_54")
298 SketchLine_16.result().setName("SketchLine_54")
299 SketchArc_14.setName("SketchArc_18")
300 SketchArc_14.result().setName("SketchArc_18")
301 SketchArc_14.results()[1].setName("SketchArc_18_2")
302 SketchLine_15.setName("SketchLine_53")
303 SketchLine_15.result().setName("SketchLine_53")
304 SketchLine_14.setName("SketchLine_52")
305 SketchLine_14.result().setName("SketchLine_52")
306 SketchArc_13.setName("SketchArc_17")
307 SketchArc_13.result().setName("SketchArc_17")
308 SketchArc_13.results()[1].setName("SketchArc_17_2")
309 SketchLine_13.setName("SketchLine_51")
310 SketchLine_13.result().setName("SketchLine_51")
311 SketchArc_12.setName("SketchArc_16")
312 SketchArc_12.result().setName("SketchArc_16")
313 SketchArc_12.results()[1].setName("SketchArc_16_2")
314 SketchArc_11.setName("SketchArc_15")
315 SketchArc_11.result().setName("SketchArc_15")
316 SketchArc_11.results()[1].setName("SketchArc_15_2")
317 SketchLine_12.setName("SketchLine_50")
318 SketchLine_12.result().setName("SketchLine_50")
320 Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchArc_4_2f-SketchLine_10f-SketchArc_2_2f-SketchLine_6r-SketchArc_8_2f-SketchArc_9_2r-SketchLine_42f-SketchLine_46f-SketchArc_11_2f-SketchLine_45r-SketchArc_15_2r-SketchArc_16_2f-SketchLine_51f-SketchArc_17_2f-SketchLine_52r-SketchLine_50r-SketchCircle_11_2r-SketchArc_22_2f-SketchArc_21_2r-SketchLine_55f-SketchArc_20_2r-SketchArc_19_2f-SketchLine_54r-SketchArc_18_2f-SketchLine_53r-SketchArc_7_2f-SketchLine_44f-SketchArc_12_2f-SketchLine_48f-SketchArc_13_2f-SketchArc_14_2r-SketchLine_43r-SketchArc_10_2r-SketchCircle_1_2r-SketchCircle_2_2r_wire")], model.selection(), "h_p*coeff", 0)
321 Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/To_Face"))
322 SketchProjection_1 = Sketch_2.addProjection(model.selection("EDGE", "Sketch_1/SketchCircle_2_2"))
323 SketchCircle_6 = SketchProjection_1.createdFeature()
324 SketchCircle_6.setName("SketchCircle_5")
325 SketchCircle_6.result().setName("SketchCircle_5")
326 SketchCircle_6.results()[1].setName("SketchCircle_5_2")
327 SketchProjection_2 = Sketch_2.addProjection(model.selection("EDGE", "Sketch_1/SketchCircle_4_2"))
328 SketchCircle_7 = SketchProjection_2.createdFeature()
329 SketchCircle_7.setName("SketchCircle_6")
330 SketchCircle_7.result().setName("SketchCircle_6")
331 SketchCircle_7.results()[1].setName("SketchCircle_6_2")
332 SketchCircle_8 = Sketch_2.addCircle(80, 0, 22)
333 SketchCircle_8.setName("SketchCircle_7")
334 SketchCircle_8.result().setName("SketchCircle_7")
335 SketchCircle_8.results()[1].setName("SketchCircle_7_2")
336 SketchConstraintCoincidence_37 = Sketch_2.setCoincident(SketchCircle_6.result(), SketchCircle_8.center())
337 SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_12")
338 SketchConstraintRadius_9 = Sketch_2.setRadius(SketchCircle_8.results()[1], "r2*coeff")
339 SketchConstraintRadius_9.setName("SketchConstraintRadius_6")
341 Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_2")], model.selection(), "10*coeff", 0)
342 ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchCircle_3_2f_wire")], model.selection(), "p_trou1*coeff", 0, [model.selection("SOLID", "Extrusion_1_1")])
343 ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchArc_4_2f-SketchLine_10f-SketchArc_2_2f-SketchLine_6r-SketchArc_8_2f-SketchArc_9_2r-SketchLine_42f-SketchLine_46f-SketchArc_11_2f-SketchLine_45r-SketchArc_15_2r-SketchArc_16_2f-SketchLine_51f-SketchArc_17_2f-SketchLine_52r-SketchLine_50r-SketchCircle_11_2r-SketchArc_22_2f-SketchArc_21_2r-SketchLine_55f-SketchArc_20_2r-SketchArc_19_2f-SketchLine_54r-SketchArc_18_2f-SketchLine_53r-SketchArc_7_2f-SketchLine_44f-SketchArc_12_2f-SketchLine_48f-SketchArc_13_2f-SketchArc_14_2r-SketchLine_43r-SketchArc_10_2r-SketchCircle_1_2r-SketchCircle_2_2r_wire_7")], model.selection(), "p2_trou1*coeff", 0, [model.selection("SOLID", "ExtrusionCut_1_1")])
344 ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchCircle_4_2f")], model.selection(), "p_trou2*coeff", 0, [model.selection("SOLID", "Extrusion_2_1"), model.selection("SOLID", "ExtrusionCut_2_1")])
345 ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_1/Face-SketchArc_4_2f-SketchLine_10f-SketchArc_2_2f-SketchLine_6r-SketchArc_8_2f-SketchArc_9_2r-SketchLine_42f-SketchLine_46f-SketchArc_11_2f-SketchLine_45r-SketchArc_15_2r-SketchArc_16_2f-SketchLine_51f-SketchArc_17_2f-SketchLine_52r-SketchLine_50r-SketchCircle_11_2r-SketchArc_22_2f-SketchArc_21_2r-SketchLine_55f-SketchArc_20_2r-SketchArc_19_2f-SketchLine_54r-SketchArc_18_2f-SketchLine_53r-SketchArc_7_2f-SketchLine_44f-SketchArc_12_2f-SketchLine_48f-SketchArc_13_2f-SketchArc_14_2r-SketchLine_43r-SketchArc_10_2r-SketchCircle_1_2r-SketchCircle_2_2r_wire_8")], model.selection(), "p2_trou*coeff", 0, [model.selection("SOLID", "ExtrusionCut_3_2")])
346 Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/XOY"), "22.5*coeff", False)
347 Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "Plane_1"), "45*coeff", True)
348 Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_2"))
349 SketchProjection_3 = Sketch_3.addProjection(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchArc_4_2][Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6]"), False)
350 SketchLine_18 = SketchProjection_3.createdFeature()
351 SketchLine_18.setName("SketchLine_4")
352 SketchLine_18.result().setName("SketchLine_4")
353 SketchProjection_4 = Sketch_3.addProjection(model.selection("EDGE", "Sketch_1/SketchLine_6"))
354 SketchLine_19 = SketchProjection_4.createdFeature()
355 SketchLine_19.setName("SketchLine_5")
356 SketchLine_19.result().setName("SketchLine_5")
357 SketchProjection_5 = Sketch_3.addProjection(model.selection("EDGE", "PartSet/OY"))
358 SketchLine_20 = SketchProjection_5.createdFeature()
359 SketchLine_20.setName("SketchLine_7")
360 SketchLine_20.result().setName("SketchLine_7")
361 SketchProjection_6 = Sketch_3.addProjection(model.selection("EDGE", "PartSet/OX"))
362 SketchLine_21 = SketchProjection_6.createdFeature()
363 SketchLine_21.setName("SketchLine_8")
364 SketchLine_21.result().setName("SketchLine_8")
365 SketchLine_22 = Sketch_3.addLine(72.5, 0, 87.5, 0)
366 SketchLine_22.setName("SketchLine_9")
367 SketchLine_22.result().setName("SketchLine_9")
368 SketchConstraintCoincidence_38 = Sketch_3.setCoincident(SketchLine_22.startPoint(), SketchLine_21.result())
369 SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_13")
370 SketchLine_23 = Sketch_3.addLine(87.5, 0, 87.5, -12)
371 SketchLine_23.setName("SketchLine_12")
372 SketchLine_23.result().setName("SketchLine_12")
373 SketchConstraintCoincidence_39 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_23.startPoint())
374 SketchConstraintCoincidence_39.setName("SketchConstraintCoincidence_14")
375 SketchLine_24 = Sketch_3.addLine(72.5, -12, 72.5, 0)
376 SketchLine_24.setName("SketchLine_14")
377 SketchLine_24.result().setName("SketchLine_14")
378 SketchConstraintCoincidence_40 = Sketch_3.setCoincident(SketchLine_22.startPoint(), SketchLine_24.endPoint())
379 SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_19")
380 SketchConstraintHorizontal_7 = Sketch_3.setHorizontal(SketchLine_22.result())
381 SketchConstraintHorizontal_7.setName("SketchConstraintHorizontal_4")
382 SketchConstraintVertical_4 = Sketch_3.setVertical(SketchLine_24.result())
383 SketchConstraintVertical_4.setName("SketchConstraintVertical_1")
384 SketchConstraintVertical_5 = Sketch_3.setVertical(SketchLine_23.result())
385 SketchConstraintVertical_5.setName("SketchConstraintVertical_2")
386 SketchConstraintEqual_5 = Sketch_3.setEqual(SketchLine_24.result(), SketchLine_23.result())
387 SketchConstraintEqual_5.setName("SketchConstraintEqual_3")
388 SketchConstraintLength_5 = Sketch_3.setLength(SketchLine_22.result(), "15*coeff")
389 SketchConstraintLength_5.setName("SketchConstraintLength_1")
390 SketchConstraintLength_6 = Sketch_3.setLength(SketchLine_24.result(), "12*coeff")
391 SketchConstraintLength_6.setName("SketchConstraintLength_2")
392 SketchCircle_9 = Sketch_3.addCircle(80, -9, 4)
393 SketchCircle_9.setName("SketchCircle_8")
394 SketchCircle_9.result().setName("SketchCircle_8")
395 SketchCircle_9.results()[1].setName("SketchCircle_8_2")
396 SketchConstraintDistance_10 = Sketch_3.setDistance(SketchCircle_9.center(), SketchLine_22.result(), "dtrou*coeff")
397 SketchConstraintDistance_10.setName("SketchConstraintDistance_5")
398 SketchConstraintRadius_10 = Sketch_3.setRadius(SketchCircle_9.results()[1], "M8*coeff")
399 SketchConstraintRadius_10.setName("SketchConstraintRadius_7")
400 SketchConstraintDistance_11 = Sketch_3.setDistance(SketchLine_20.result(), SketchLine_24.endPoint(), "(entraxe-15/2)*coeff")
401 SketchConstraintDistance_11.setName("SketchConstraintDistance_7")
402 SketchConstraintDistance_12 = Sketch_3.setDistance(SketchCircle_9.center(), SketchLine_24.result(), "15/2*coeff")
403 SketchConstraintDistance_12.setName("SketchConstraintDistance_8")
404 SketchLine_25 = Sketch_3.addLine(85, -17, 75, -17)
405 SketchLine_25.setName("SketchLine_26")
406 SketchLine_25.result().setName("SketchLine_26")
407 SketchLine_26 = Sketch_3.addLine(75, -17, 72.5, -12)
408 SketchLine_26.setName("SketchLine_27")
409 SketchLine_26.result().setName("SketchLine_27")
410 SketchConstraintCoincidence_41 = Sketch_3.setCoincident(SketchLine_25.endPoint(), SketchLine_26.startPoint())
411 SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_31")
412 SketchConstraintCoincidence_42 = Sketch_3.setCoincident(SketchLine_24.startPoint(), SketchLine_26.endPoint())
413 SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_32")
414 SketchLine_27 = Sketch_3.addLine(87.5, -12, 85, -17)
415 SketchLine_27.setName("SketchLine_28")
416 SketchLine_27.result().setName("SketchLine_28")
417 SketchConstraintCoincidence_43 = Sketch_3.setCoincident(SketchLine_23.endPoint(), SketchLine_27.startPoint())
418 SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_33")
419 SketchConstraintCoincidence_44 = Sketch_3.setCoincident(SketchLine_25.startPoint(), SketchLine_27.endPoint())
420 SketchConstraintCoincidence_44.setName("SketchConstraintCoincidence_34")
421 SketchConstraintHorizontal_8 = Sketch_3.setHorizontal(SketchLine_25.result())
422 SketchConstraintHorizontal_8.setName("SketchConstraintHorizontal_7")
423 SketchConstraintEqual_6 = Sketch_3.setEqual(SketchLine_27.result(), SketchLine_26.result())
424 SketchConstraintEqual_6.setName("SketchConstraintEqual_7")
425 SketchConstraintDistance_13 = Sketch_3.setDistance(SketchLine_22.endPoint(), SketchLine_25.result(), "17*coeff")
426 SketchConstraintDistance_13.setName("SketchConstraintDistance_11")
427 SketchConstraintDistance_14 = Sketch_3.setDistance(SketchLine_23.result(), SketchLine_25.startPoint(), "2.5*coeff")
428 SketchConstraintDistance_14.setName("SketchConstraintDistance_12")
430 Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_3/Face-SketchLine_14r-SketchLine_27r-SketchLine_26r-SketchLine_28r-SketchLine_12r-SketchLine_9r-SketchCircle_8_2r_wire")], model.selection(), model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_10"), 0, model.selection(), 0)
431 Smash_1 = model.addSmash(Part_1_doc, [model.selection("SOLID", "Extrusion_3_1")], [model.selection("SOLID", "ExtrusionCut_4_1")])
432 ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_3/Face-SketchCircle_8_2f_wire")], model.selection(), 10, 0, [model.selection("SOLID", "Smash_1_1_1")])
433 ExtrusionCut_6 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_3/Face-SketchCircle_8_2f")], model.selection(), 10, 0, [model.selection("SOLID", "ExtrusionCut_5_1_1")])
434 Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1"))
435 SketchProjection_7 = Sketch_4.addProjection(model.selection("EDGE", "PartSet/OY"))
436 SketchLine_28 = SketchProjection_7.createdFeature()
437 SketchLine_28.setName("SketchLine_17")
438 SketchLine_28.result().setName("SketchLine_17")
439 SketchProjection_8 = Sketch_4.addProjection(model.selection("EDGE", "PartSet/OX"))
440 SketchLine_29 = SketchProjection_8.createdFeature()
441 SketchLine_29.setName("SketchLine_18")
442 SketchLine_29.result().setName("SketchLine_18")
443 SketchLine_30 = Sketch_4.addLine(7.5, 0, -7.5, 0)
444 SketchLine_30.setName("SketchLine_19")
445 SketchLine_30.result().setName("SketchLine_19")
446 SketchConstraintCoincidence_45 = Sketch_4.setCoincident(SketchLine_30.startPoint(), SketchLine_29.result())
447 SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_22")
448 SketchLine_31 = Sketch_4.addLine(-7.5, 0, -7.5, -12)
449 SketchLine_31.setName("SketchLine_20")
450 SketchLine_31.result().setName("SketchLine_20")
451 SketchConstraintCoincidence_46 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint())
452 SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_23")
453 SketchLine_32 = Sketch_4.addLine(7.5, -12, 7.5, 0)
454 SketchLine_32.setName("SketchLine_24")
455 SketchLine_32.result().setName("SketchLine_24")
456 SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchLine_30.startPoint(), SketchLine_32.endPoint())
457 SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_28")
458 SketchConstraintVertical_6 = Sketch_4.setVertical(SketchLine_31.result())
459 SketchConstraintVertical_6.setName("SketchConstraintVertical_3")
460 SketchConstraintVertical_7 = Sketch_4.setVertical(SketchLine_32.result())
461 SketchConstraintVertical_7.setName("SketchConstraintVertical_4")
462 SketchConstraintEqual_7 = Sketch_4.setEqual(SketchLine_31.result(), SketchLine_32.result())
463 SketchConstraintEqual_7.setName("SketchConstraintEqual_5")
464 SketchConstraintMiddle_4 = Sketch_4.setMiddlePoint(SketchLine_30.result(), SketchAPI_Line(SketchLine_29).startPoint())
465 SketchConstraintMiddle_4.setName("SketchConstraintMiddle_1")
466 SketchLine_33 = Sketch_4.addLine(-7.5, -12, -5, -17)
467 SketchLine_33.setName("SketchLine_21")
468 SketchLine_33.result().setName("SketchLine_21")
469 SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchLine_31.endPoint(), SketchLine_33.startPoint())
470 SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_24")
471 SketchLine_34 = Sketch_4.addLine(-5, -17, 5, -17)
472 SketchLine_34.setName("SketchLine_22")
473 SketchLine_34.result().setName("SketchLine_22")
474 SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_33.endPoint(), SketchLine_34.startPoint())
475 SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_25")
476 SketchLine_35 = Sketch_4.addLine(5, -17, 7.5, -12)
477 SketchLine_35.setName("SketchLine_23")
478 SketchLine_35.result().setName("SketchLine_23")
479 SketchConstraintCoincidence_50 = Sketch_4.setCoincident(SketchLine_34.endPoint(), SketchLine_35.startPoint())
480 SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_26")
481 SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_32.startPoint(), SketchLine_35.endPoint())
482 SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_27")
483 SketchConstraintEqual_8 = Sketch_4.setEqual(SketchLine_35.result(), SketchLine_33.result())
484 SketchConstraintEqual_8.setName("SketchConstraintEqual_6")
485 SketchConstraintHorizontal_10 = Sketch_4.setHorizontal(SketchLine_34.result())
486 SketchConstraintHorizontal_10.setName("SketchConstraintHorizontal_8")
487 SketchConstraintLength_7 = Sketch_4.setLength(SketchLine_30.result(), "15*coeff")
488 SketchConstraintLength_7.setName("SketchConstraintLength_4")
489 SketchConstraintLength_8 = Sketch_4.setLength(SketchLine_31.result(), "12*coeff")
490 SketchConstraintLength_8.setName("SketchConstraintLength_5")
491 SketchConstraintDistance_15 = Sketch_4.setDistance(SketchLine_30.result(), SketchLine_34.endPoint(), "17*coeff")
492 SketchConstraintDistance_15.setName("SketchConstraintDistance_9")
493 SketchConstraintLength_9 = Sketch_4.setLength(SketchLine_34.result(), "10*coeff")
494 SketchConstraintLength_9.setName("SketchConstraintLength_6")
495 SketchCircle_10 = Sketch_4.addCircle(0, -9, 4)
496 SketchCircle_10.setName("SketchCircle_9")
497 SketchCircle_10.result().setName("SketchCircle_9")
498 SketchCircle_10.results()[1].setName("SketchCircle_9_2")
499 SketchConstraintRadius_11 = Sketch_4.setRadius(SketchCircle_10.results()[1], "M8*coeff")
500 SketchConstraintRadius_11.setName("SketchConstraintRadius_8")
501 SketchLine_36 = Sketch_4.addLine(0, 0, 0, -12.97564207914519)
502 SketchLine_36.setName("SketchLine_25")
503 SketchLine_36.result().setName("SketchLine_25")
504 SketchLine_36.setAuxiliary(True)
505 SketchConstraintCoincidence_52 = Sketch_4.setCoincident(SketchAPI_Line(SketchLine_28).startPoint(), SketchLine_36.startPoint())
506 SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_29")
507 SketchConstraintVertical_8 = Sketch_4.setVertical(SketchLine_36.result())
508 SketchConstraintVertical_8.setName("SketchConstraintVertical_5")
509 SketchConstraintCoincidence_53 = Sketch_4.setCoincident(SketchCircle_10.center(), SketchLine_36.result())
510 SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_30")
511 SketchConstraintDistance_16 = Sketch_4.setDistance(SketchCircle_10.center(), SketchLine_30.result(), "dtrou*coeff")
512 SketchConstraintDistance_16.setName("SketchConstraintDistance_10")
513 SketchConstraintLength_10 = Sketch_4.setLength(SketchLine_36.result(), 12.975642079145)
514 SketchConstraintLength_10.setName("SketchConstraintLength_7")
516 Extrusion_4 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_4/Face-SketchLine_19f-SketchLine_20f-SketchLine_21f-SketchLine_22f-SketchLine_23f-SketchLine_24f-SketchCircle_9_2r_wire")], model.selection(), model.selection("FACE", "Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_6"), 0, model.selection(), 0)
517 Smash_2 = model.addSmash(Part_1_doc, [model.selection("SOLID", "Extrusion_4_1")], [model.selection("COMPSOLID", "ExtrusionCut_6_1")])
518 ExtrusionCut_7 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_4/Face-SketchCircle_9_2f")], model.selection(), 0, 10, [model.selection("SOLID", "Smash_2_1_3")])
519 ExtrusionCut_8 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_4/Face-SketchCircle_9_2f")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_7_1_1")])
520 Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "Smash_2_1_3/Modified_Face&Extrusion_1_1/From_Face"))
521 SketchPoint_3 = Sketch_5.addPoint(model.selection("VERTEX", "PartSet/Origin"))
522 SketchPoint_3.setName("SketchPoint_2")
523 SketchPoint_3.result().setName("SketchPoint_2")
524 SketchLine_37 = Sketch_5.addLine(-13.96424004376894, -17, -32, -17)
525 SketchLine_37.setName("SketchLine_29")
526 SketchLine_37.result().setName("SketchLine_29")
527 SketchLine_38 = Sketch_5.addLine(-32, 17, -13.96424004376904, 17)
528 SketchLine_38.setName("SketchLine_30")
529 SketchLine_38.result().setName("SketchLine_30")
530 SketchConstraintHorizontal_11 = Sketch_5.setHorizontal(SketchLine_37.result())
531 SketchConstraintHorizontal_11.setName("SketchConstraintHorizontal_10")
532 SketchConstraintHorizontal_12 = Sketch_5.setHorizontal(SketchLine_38.result())
533 SketchConstraintHorizontal_12.setName("SketchConstraintHorizontal_11")
534 SketchLine_39 = Sketch_5.addLine(model.selection("EDGE", "PartSet/OX"))
535 SketchLine_39.setName("SketchLine_31")
536 SketchLine_39.result().setName("SketchLine_31")
537 SketchConstraintDistance_17 = Sketch_5.setDistance(SketchLine_37.result(), SketchLine_38.startPoint(), "epaisseur*coeff")
538 SketchConstraintDistance_17.setName("SketchConstraintDistance_13")
539 SketchArc_19 = Sketch_5.addArc(0, 0, -13.964240043769, 17, -13.964240043769, -17, False)
540 SketchArc_19.setName("SketchArc_5")
541 SketchArc_19.result().setName("SketchArc_5")
542 SketchArc_19.results()[1].setName("SketchArc_5_2")
543 SketchConstraintCoincidence_54 = Sketch_5.setCoincident(SketchPoint_3.coordinates(), SketchArc_19.center())
544 SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_36")
545 SketchConstraintCoincidence_55 = Sketch_5.setCoincident(SketchLine_38.endPoint(), SketchArc_19.startPoint())
546 SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_37")
547 SketchConstraintCoincidence_56 = Sketch_5.setCoincident(SketchLine_37.result(), SketchArc_19.endPoint())
548 SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_39")
549 SketchConstraintRadius_12 = Sketch_5.setRadius(SketchArc_19.results()[1], "r2*coeff")
550 SketchConstraintRadius_12.setName("SketchConstraintRadius_11")
551 SketchLine_40 = Sketch_5.addLine(-32, -17, -32, 17)
552 SketchLine_40.setName("SketchLine_32")
553 SketchLine_40.result().setName("SketchLine_32")
554 SketchConstraintCoincidence_57 = Sketch_5.setCoincident(SketchLine_38.startPoint(), SketchLine_40.endPoint())
555 SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_35")
556 SketchConstraintCoincidence_58 = Sketch_5.setCoincident(SketchLine_40.startPoint(), SketchLine_37.endPoint())
557 SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_38")
558 SketchConstraintDistance_18 = Sketch_5.setDistance(SketchLine_40.result(), SketchArc_19.center(), "d1*coeff-entraxe*coeff")
559 SketchConstraintDistance_18.setName("SketchConstraintDistance_14")
560 SketchConstraintVertical_9 = Sketch_5.setVertical(SketchLine_40.result())
561 SketchConstraintVertical_9.setName("SketchConstraintVertical_6")
562 SketchConstraintDistance_19 = Sketch_5.setDistance(SketchLine_37.result(), SketchArc_19.center(), "epaisseur/2*coeff")
563 SketchConstraintDistance_19.setName("SketchConstraintDistance_15")
564 SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchArc_19.endPoint(), SketchLine_37.startPoint())
565 SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_40")
567 Extrusion_5 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_5/Face-SketchArc_5_2r-SketchLine_30r-SketchLine_32r-SketchLine_29r")], model.selection(), 0, "22*coeff")
568 Sketch_6_origin = GeomAPI_Pnt(0, 0, 0)
569 Sketch_6_norm = GeomAPI_Dir(0, 1, 0)
570 Sketch_6_dirx = GeomAPI_Dir(1, 0, 0)
571 Sketch_6 = model.addSketch(Part_1_doc, GeomAPI_Ax3(Sketch_6_origin, Sketch_6_dirx, Sketch_6_norm))
572 SketchLine_41 = Sketch_6.addLine(-32, -17, -32, 17)
573 SketchLine_41.setName("SketchLine_33")
574 SketchLine_41.result().setName("SketchLine_33")
575 SketchPoint_4 = Sketch_6.addPoint(model.selection("VERTEX", "Sketch_5/SketchLine_29_EndVertex"))
576 SketchPoint_4.setName("SketchPoint_3")
577 SketchPoint_4.result().setName("SketchPoint_3")
578 SketchConstraintCoincidence_60 = Sketch_6.setCoincident(SketchLine_41.startPoint(), SketchPoint_4.result())
579 SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_41")
580 SketchPoint_5 = Sketch_6.addPoint(model.selection("VERTEX", "Sketch_5/SketchLine_30_StartVertex"))
581 SketchPoint_5.setName("SketchPoint_4")
582 SketchPoint_5.result().setName("SketchPoint_4")
583 SketchConstraintCoincidence_61 = Sketch_6.setCoincident(SketchLine_41.endPoint(), SketchPoint_5.result())
584 SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_42")
585 SketchPoint_6 = Sketch_6.addPoint(model.selection("VERTEX", "Sketch_5/SketchPoint_2"))
586 SketchPoint_6.setName("SketchPoint_5")
587 SketchPoint_6.result().setName("SketchPoint_5")
588 SketchLine_42 = Sketch_6.addLine(model.selection("EDGE", "Sketch_5/SketchLine_30"))
589 SketchLine_42.setName("SketchLine_34")
590 SketchLine_42.result().setName("SketchLine_34")
591 SketchLine_43 = Sketch_6.addLine(model.selection("EDGE", "Sketch_5/SketchLine_29"))
592 SketchLine_43.setName("SketchLine_35")
593 SketchLine_43.result().setName("SketchLine_35")
594 SketchArc_20 = Sketch_6.addArc(0, 0, -20.32855135026245, 17, -20.32855135026245, -17, False)
595 SketchArc_20.setName("SketchArc_6")
596 SketchArc_20.result().setName("SketchArc_6")
597 SketchArc_20.results()[1].setName("SketchArc_6_2")
598 SketchConstraintCoincidence_62 = Sketch_6.setCoincident(SketchPoint_6.result(), SketchArc_20.center())
599 SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_43")
600 SketchConstraintCoincidence_63 = Sketch_6.setCoincident(SketchLine_42.result(), SketchArc_20.startPoint())
601 SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_44")
602 SketchConstraintCoincidence_64 = Sketch_6.setCoincident(SketchLine_43.result(), SketchArc_20.endPoint())
603 SketchConstraintCoincidence_64.setName("SketchConstraintCoincidence_45")
604 SketchLine_44 = Sketch_6.addLine(-20.32855135026245, -17, -32, -17)
605 SketchLine_44.setName("SketchLine_36")
606 SketchLine_44.result().setName("SketchLine_36")
607 SketchConstraintCoincidence_65 = Sketch_6.setCoincident(SketchArc_20.endPoint(), SketchLine_44.startPoint())
608 SketchConstraintCoincidence_65.setName("SketchConstraintCoincidence_46")
609 SketchConstraintCoincidence_66 = Sketch_6.setCoincident(SketchLine_41.startPoint(), SketchLine_44.endPoint())
610 SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_47")
611 SketchLine_45 = Sketch_6.addLine(-20.32855135026245, 17, -32, 17)
612 SketchLine_45.setName("SketchLine_37")
613 SketchLine_45.result().setName("SketchLine_37")
614 SketchConstraintCoincidence_67 = Sketch_6.setCoincident(SketchArc_20.startPoint(), SketchLine_45.startPoint())
615 SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_48")
616 SketchConstraintCoincidence_68 = Sketch_6.setCoincident(SketchLine_41.endPoint(), SketchLine_45.endPoint())
617 SketchConstraintCoincidence_68.setName("SketchConstraintCoincidence_49")
618 SketchConstraintRadius_13 = Sketch_6.setRadius(SketchArc_20.results()[1], "r1*coeff")
619 SketchConstraintRadius_13.setName("SketchConstraintRadius_10")
621 Extrusion_6 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_6/Face-SketchLine_36r-SketchArc_6_2r-SketchLine_37f-SketchLine_33r")], model.selection(), "77*coeff-h_p*coeff", 0)
622 Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_6_1/Generated_Face&Sketch_6/SketchLine_33"))
623 SketchLine_46 = Sketch_7.addLine(37, -8.881784197001252e-16, -22, 1.665334536937735e-15)
624 SketchLine_46.setName("SketchLine_38")
625 SketchLine_46.result().setName("SketchLine_38")
626 SketchLine_46.setAuxiliary(True)
627 SketchLine_47 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_6_1/Generated_Face&Sketch_6/SketchLine_33][Extrusion_6_1/To_Face]"))
628 SketchLine_47.setName("SketchLine_39")
629 SketchLine_47.result().setName("SketchLine_39")
630 SketchConstraintCoincidence_69 = Sketch_7.setCoincident(SketchLine_46.startPoint(), SketchLine_47.result())
631 SketchConstraintCoincidence_69.setName("SketchConstraintCoincidence_50")
632 SketchLine_48 = Sketch_7.addLine(model.selection("EDGE", "[Extrusion_5_1/Generated_Face&Sketch_5/SketchLine_32][Extrusion_5_1/From_Face]"))
633 SketchLine_48.setName("SketchLine_40")
634 SketchLine_48.result().setName("SketchLine_40")
635 SketchConstraintCoincidence_70 = Sketch_7.setCoincident(SketchLine_46.endPoint(), SketchLine_48.result())
636 SketchConstraintCoincidence_70.setName("SketchConstraintCoincidence_51")
637 SketchConstraintMiddle_5 = Sketch_7.setMiddlePoint(SketchLine_46.startPoint(), SketchLine_47.result())
638 SketchConstraintMiddle_5.setName("SketchConstraintMiddle_2")
639 SketchConstraintMiddle_6 = Sketch_7.setMiddlePoint(SketchLine_48.result(), SketchLine_46.endPoint())
640 SketchConstraintMiddle_6.setName("SketchConstraintMiddle_3")
641 SketchPoint_7 = Sketch_7.addPoint(17, -1.95597787542754e-16)
642 SketchPoint_7.setName("SketchPoint_6")
643 SketchPoint_7.result().setName("SketchPoint_6")
644 SketchConstraintCoincidence_71 = Sketch_7.setCoincident(SketchPoint_7.coordinates(), SketchLine_46.result())
645 SketchConstraintCoincidence_71.setName("SketchConstraintCoincidence_52")
646 SketchProjection_9 = Sketch_7.addProjection(model.selection("EDGE", "PartSet/OZ"))
647 SketchLine_49 = SketchProjection_9.createdFeature()
648 SketchLine_49.setName("SketchLine_41")
649 SketchLine_49.result().setName("SketchLine_41")
650 SketchConstraintDistance_20 = Sketch_7.setDistance(SketchLine_49.result(), SketchPoint_7.coordinates(), "(h_o-h_p)*coeff")
651 SketchConstraintDistance_20.setName("SketchConstraintDistance_16")
652 SketchCircle_11 = Sketch_7.addCircle(17, -1.95597787542754e-16, 2.5)
653 SketchCircle_11.setName("SketchCircle_10")
654 SketchCircle_11.result().setName("SketchCircle_10")
655 SketchCircle_11.results()[1].setName("SketchCircle_10_2")
656 SketchConstraintCoincidence_72 = Sketch_7.setCoincident(SketchPoint_7.coordinates(), SketchCircle_11.center())
657 SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_53")
658 SketchConstraintRadius_14 = Sketch_7.setRadius(SketchCircle_11.results()[1], "r3")
659 SketchConstraintRadius_14.setName("SketchConstraintRadius_12")
661 ExtrusionCut_9 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_7/Face-SketchCircle_10_2f_wire")], model.selection(), 0, "10*coeff", [model.selection("SOLID", "Extrusion_6_1")])
662 ExtrusionCut_10_objects_1 = [model.selection("WIRE", "Sketch_1/Face-SketchArc_10_2f-SketchLine_43f-SketchArc_14_2f-SketchArc_13_2r-SketchLine_48r-SketchArc_12_2r-SketchLine_44r-SketchArc_7_2r_wire"), model.selection("FACE", "Sketch_1/Face-SketchCircle_11_2f"), model.selection("WIRE", "Sketch_1/Face-SketchLine_50f-SketchLine_52f-SketchArc_17_2r-SketchLine_51r-SketchArc_16_2r-SketchArc_15_2f_wire"), model.selection("FACE", "Sketch_1/Face-SketchLine_53f-SketchArc_18_2r-SketchLine_54f-SketchArc_19_2r-SketchArc_20_2f-SketchLine_55r-SketchArc_21_2f-SketchArc_22_2r"), model.selection("FACE", "Sketch_1/Face-SketchLine_45f-SketchArc_11_2r-SketchLine_46r-SketchLine_42r-SketchArc_9_2f-SketchArc_8_2r")]
663 ExtrusionCut_10 = model.addExtrusionCut(Part_1_doc, ExtrusionCut_10_objects_1, model.selection(), model.selection("FACE", "ExtrusionCut_3_2/Modified_Face&Extrusion_1_1/To_Face"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_8_1_2")])
664 Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_9_1/Modified_Face&Sketch_6/SketchLine_33"))
665 SketchLine_50 = Sketch_8.addLine(37, 14.80042035331162, 37, -14)
666 SketchLine_50.setName("SketchLine_56")
667 SketchLine_50.result().setName("SketchLine_56")
668 SketchLine_50.setAuxiliary(True)
669 SketchLine_51 = Sketch_8.addLine(model.selection("EDGE", "[ExtrusionCut_9_1/Modified_Face&Sketch_6/SketchLine_33][Extrusion_6_1/To_Face]"))
670 SketchLine_51.setName("SketchLine_57")
671 SketchLine_51.result().setName("SketchLine_57")
672 SketchConstraintCoincidence_73 = Sketch_8.setCoincident(SketchLine_50.startPoint(), SketchLine_51.result())
673 SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_81")
674 SketchConstraintCoincidence_74 = Sketch_8.setCoincident(SketchLine_50.endPoint(), SketchLine_51.result())
675 SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_82")
676 SketchLine_52 = Sketch_8.addLine(model.selection("EDGE", "[Extrusion_6_1/Generated_Face&Sketch_6/SketchLine_36][ExtrusionCut_9_1/Modified_Face&Sketch_6/SketchLine_33]"))
677 SketchLine_52.setName("SketchLine_58")
678 SketchLine_52.result().setName("SketchLine_58")
679 SketchArc_21 = Sketch_8.addArc(34, -14, 37, -14, 33.9999999583228, -17, True)
680 SketchArc_21.setName("SketchArc_23")
681 SketchArc_21.result().setName("SketchArc_23")
682 SketchArc_21.results()[1].setName("SketchArc_23_2")
683 SketchConstraintCoincidence_75 = Sketch_8.setCoincident(SketchLine_50.endPoint(), SketchArc_21.startPoint())
684 SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_83")
685 SketchConstraintTangent_6 = Sketch_8.setTangent(SketchLine_50.result(), SketchArc_21.results()[1])
686 SketchConstraintCoincidence_76 = Sketch_8.setCoincident(SketchLine_52.result(), SketchArc_21.endPoint())
687 SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_84")
688 SketchConstraintTangent_7 = Sketch_8.setTangent(SketchArc_21.results()[1], SketchLine_52.result())
689 SketchLine_53 = Sketch_8.addLine(34, -17, 37, -17)
690 SketchLine_53.setName("SketchLine_59")
691 SketchLine_53.result().setName("SketchLine_59")
692 SketchConstraintCoincidence_77 = Sketch_8.setCoincident(SketchArc_21.endPoint(), SketchLine_53.startPoint())
693 SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_85")
694 SketchConstraintCoincidence_78 = Sketch_8.setCoincident(SketchLine_51.startPoint(), SketchLine_53.endPoint())
695 SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_86")
696 SketchLine_54 = Sketch_8.addLine(37, -14, 37, -17)
697 SketchLine_54.setName("SketchLine_60")
698 SketchLine_54.result().setName("SketchLine_60")
699 SketchConstraintCoincidence_79 = Sketch_8.setCoincident(SketchLine_50.endPoint(), SketchLine_54.startPoint())
700 SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_87")
701 SketchConstraintCoincidence_80 = Sketch_8.setCoincident(SketchLine_51.startPoint(), SketchLine_54.endPoint())
702 SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_88")
703 SketchConstraintRadius_15 = Sketch_8.setRadius(SketchArc_21.results()[1], "3*coeff")
704 SketchConstraintRadius_15.setName("SketchConstraintRadius_16")
705 SketchLine_55 = Sketch_8.addLine(model.selection("EDGE", "Sketch_7/SketchLine_38"))
706 SketchLine_55.setName("SketchLine_61")
707 SketchLine_55.result().setName("SketchLine_61")
708 SketchConstraintMirror_2_objects = [SketchArc_21.results()[1], SketchLine_54.result(), SketchLine_53.result()]
709 SketchConstraintMirror_2 = Sketch_8.addMirror(SketchLine_55.result(), SketchConstraintMirror_2_objects)
710 [SketchArc_22, SketchLine_56, SketchLine_57] = SketchConstraintMirror_2.mirrored()
711 SketchLine_57.setName("SketchLine_63")
712 SketchLine_57.result().setName("SketchLine_63")
713 SketchLine_56.setName("SketchLine_62")
714 SketchLine_56.result().setName("SketchLine_62")
715 SketchArc_22.setName("SketchArc_24")
716 SketchArc_22.result().setName("SketchArc_24")
717 SketchArc_22.results()[1].setName("SketchArc_24_2")
719 ExtrusionCut_11 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_8/Face-SketchLine_59f-SketchLine_60r-SketchArc_23_2r"), model.selection("WIRE", "Sketch_8/Face-SketchLine_62f-SketchLine_63r-SketchArc_24_2r_wire")], model.selection(), 0, "100*coeff", [model.selection("SOLID", "ExtrusionCut_9_1")])
720 Sketch_9 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_5_1/Generated_Face&Sketch_5/SketchLine_29"))
721 SketchLine_58 = Sketch_9.addLine(-32, -19, -32, -3.575047476349699)
722 SketchLine_58.setName("SketchLine_64")
723 SketchLine_58.result().setName("SketchLine_64")
724 SketchLine_58.setAuxiliary(True)
725 SketchLine_59 = Sketch_9.addLine(model.selection("EDGE", "[Extrusion_5_1/Generated_Face&Sketch_5/SketchLine_32][Extrusion_5_1/Generated_Face&Sketch_5/SketchLine_29]"))
726 SketchLine_59.setName("SketchLine_65")
727 SketchLine_59.result().setName("SketchLine_65")
728 SketchConstraintCoincidence_81 = Sketch_9.setCoincident(SketchLine_58.startPoint(), SketchLine_59.result())
729 SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_89")
730 SketchConstraintCoincidence_82 = Sketch_9.setCoincident(SketchLine_58.endPoint(), SketchLine_59.result())
731 SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_90")
732 SketchLine_60 = Sketch_9.addLine(model.selection("EDGE", "[Extrusion_5_1/Generated_Face&Sketch_5/SketchLine_29][Extrusion_5_1/From_Face]"))
733 SketchLine_60.setName("SketchLine_66")
734 SketchLine_60.result().setName("SketchLine_66")
735 SketchArc_23 = Sketch_9.addArc(-29, -19, -32, -19, -29.00002201340376, -22, False)
736 SketchArc_23.setName("SketchArc_25")
737 SketchArc_23.result().setName("SketchArc_25")
738 SketchArc_23.results()[1].setName("SketchArc_25_2")
739 SketchConstraintCoincidence_83 = Sketch_9.setCoincident(SketchLine_58.startPoint(), SketchArc_23.startPoint())
740 SketchConstraintCoincidence_83.setName("SketchConstraintCoincidence_91")
741 SketchConstraintTangent_8 = Sketch_9.setTangent(SketchLine_58.result(), SketchArc_23.results()[1])
742 SketchConstraintCoincidence_84 = Sketch_9.setCoincident(SketchLine_60.result(), SketchArc_23.endPoint())
743 SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_92")
744 SketchConstraintTangent_9 = Sketch_9.setTangent(SketchArc_23.results()[1], SketchLine_60.result())
745 SketchLine_61 = Sketch_9.addLine(-32, -19, -32, -22)
746 SketchLine_61.setName("SketchLine_67")
747 SketchLine_61.result().setName("SketchLine_67")
748 SketchConstraintCoincidence_85 = Sketch_9.setCoincident(SketchLine_58.startPoint(), SketchLine_61.startPoint())
749 SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_93")
750 SketchConstraintCoincidence_86 = Sketch_9.setCoincident(SketchLine_59.startPoint(), SketchLine_61.endPoint())
751 SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_94")
752 SketchLine_62 = Sketch_9.addLine(-32, -22, -29.00002201340376, -22)
753 SketchLine_62.setName("SketchLine_68")
754 SketchLine_62.result().setName("SketchLine_68")
755 SketchConstraintCoincidence_87 = Sketch_9.setCoincident(SketchLine_59.startPoint(), SketchLine_62.startPoint())
756 SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_95")
757 SketchConstraintCoincidence_88 = Sketch_9.setCoincident(SketchArc_23.endPoint(), SketchLine_62.endPoint())
758 SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_96")
759 SketchConstraintRadius_16 = Sketch_9.setRadius(SketchArc_23.results()[1], "3*coeff")
760 SketchConstraintRadius_16.setName("SketchConstraintRadius_17")
762 ExtrusionCut_12 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_9/Face-SketchLine_67f-SketchLine_68f-SketchArc_25_2r")], model.selection(), 0, "100*coeff", [model.selection("SOLID", "Extrusion_5_1")])
765 from GeomAPI import GeomAPI_Shape
767 model.testNbResults(Part_1, 1)
768 model.testNbSubResults(Part_1, [0])
769 model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [6])
770 model.testNbSubShapes(Part_1, GeomAPI_Shape.FACE, [85])
771 model.testNbSubShapes(Part_1, GeomAPI_Shape.EDGE, [444])
772 model.testNbSubShapes(Part_1, GeomAPI_Shape.VERTEX, [888])
773 model.testResultsVolumes(Part_1, [118190.673218984])
775 # checking for parametric update
776 Parameter_Epaisseur.setValue(33.9)
778 model.testResultsVolumes(Part_1, [122133.938213185])
779 Parameter_Epaisseur.setValue(34)
781 model.testResultsVolumes(Part_1, [118190.673218984])
784 assert(model.checkPythonDump())