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