]> SALOME platform Git repositories - modules/shaper.git/blob - test.models/case24.py
Salome HOME
Issue #2577: EDF 2018-2 Fusion of connected faces.
[modules/shaper.git] / test.models / case24.py
1 ## Copyright (C) 2014-2017  CEA/DEN, EDF R&D
2 ##
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.
7 ##
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.
12 ##
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
16 ##
17 ## See http:##www.salome-platform.org/ or
18 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
19 ##
20
21 from SketchAPI import *
22
23 from salome.shaper import model
24
25 model.begin()
26 partSet = model.moduleDocument()
27 Part_1 = model.addPart(partSet)
28 Part_1_doc = Part_1.document()
29 Parameter_R = model.addParameter(Part_1_doc, "R", "3")
30 model.addParameter(Part_1_doc, "DBody", "65")
31 Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/YOZ"), 89, False)
32 Sketch_1 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1"))
33 SketchLine_1 = Sketch_1.addLine(0, 20, 16.99998550401508, 20)
34 SketchLine_1.setName("SketchLine_7")
35 SketchLine_1.result().setName("SketchLine_7")
36 SketchLine_2 = Sketch_1.addLine(20, 0, 0, 0)
37 SketchLine_2.setName("SketchLine_1")
38 SketchLine_2.result().setName("SketchLine_1")
39 SketchLine_3 = Sketch_1.addLine(0, 0, 0, 20)
40 SketchLine_3.setName("SketchLine_2")
41 SketchLine_3.result().setName("SketchLine_2")
42 SketchLine_4 = Sketch_1.addLine(20, 16.99999846116062, 20, 0)
43 SketchLine_4.setName("SketchLine_8")
44 SketchLine_4.result().setName("SketchLine_8")
45 SketchLine_5 = Sketch_1.addLine(20, 20, 20, 0)
46 SketchLine_5.setName("SketchLine_4")
47 SketchLine_5.result().setName("SketchLine_4")
48 SketchLine_5.setAuxiliary(True)
49 SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_2.startPoint())
50 SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.startPoint())
51 SketchLine_6 = Sketch_1.addLine(0, 20, 20, 20)
52 SketchLine_6.setName("SketchLine_3")
53 SketchLine_6.result().setName("SketchLine_3")
54 SketchLine_6.setAuxiliary(True)
55 SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_6.startPoint())
56 SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_5.startPoint())
57 SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_2.result())
58 SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_3.result())
59 SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_6.result())
60 SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_5.result())
61 SketchProjection_1 = Sketch_1.addProjection(model.selection("EDGE", "PartSet/OZ"))
62 SketchLine_7 = SketchProjection_1.createdFeature()
63 SketchLine_7.setName("SketchLine_5")
64 SketchLine_7.result().setName("SketchLine_5")
65 SketchProjection_2 = Sketch_1.addProjection(model.selection("EDGE", "PartSet/OY"))
66 SketchLine_8 = SketchProjection_2.createdFeature()
67 SketchLine_8.setName("SketchLine_6")
68 SketchLine_8.result().setName("SketchLine_6")
69 SketchArc_1 = Sketch_1.addArc(17, 17, 20, 16.99999846116062, 16.99998550401508, 20, False)
70 SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_4.startPoint())
71 SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_1.endPoint())
72 SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_1.result())
73 SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_4.result())
74 SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_6.startPoint(), SketchLine_1.startPoint())
75 SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_4.endPoint())
76 SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_6.result())
77 SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_4.startPoint(), SketchLine_5.result())
78 SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], "R")
79 SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchLine_3.startPoint(), SketchAPI_Line(SketchLine_7).startPoint())
80 SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_2.startPoint(), SketchLine_3.result(), 20)
81 SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_3.endPoint(), SketchLine_2.result(), 20)
82 model.do()
83 Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_7r-SketchLine_1r-SketchLine_2r-SketchLine_8r-SketchArc_1_2f")], model.selection("EDGE", "Sketch_1/Edge-SketchLine_2"), 0, 180)
84 ExtrusionFuse_1 = model.addExtrusionFuse(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_7r-SketchLine_1r-SketchLine_2r-SketchLine_8r-SketchArc_1_2f")], model.selection(), 0, 25, [model.selection("SOLID", "Revolution_1_1")])
85 Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1"))
86 SketchLine_9 = Sketch_2.addLine(0, 20, -17.00000285538278, 20)
87 SketchLine_9.setName("SketchLine_13")
88 SketchLine_9.result().setName("SketchLine_13")
89 SketchLine_10 = Sketch_2.addLine(-20, 0, 0, 0)
90 SketchLine_10.setName("SketchLine_9")
91 SketchLine_10.result().setName("SketchLine_9")
92 SketchPoint_1 = Sketch_2.addPoint(model.selection("VERTEX", "Sketch_1/Vertex-SketchLine_2s-SketchProjection_1s-SketchLine_5s-SketchProjection_2s-SketchLine_6s-SketchLine_1e"))
93 SketchConstraintCoincidence_12 = Sketch_2.setCoincident(SketchLine_10.endPoint(), SketchPoint_1.result())
94 SketchLine_11 = Sketch_2.addLine(0, 0, 0, 20)
95 SketchLine_11.setName("SketchLine_10")
96 SketchLine_11.result().setName("SketchLine_10")
97 SketchLine_12 = Sketch_2.addLine(-20, 17.00000633266883, -20, 0)
98 SketchLine_12.setName("SketchLine_14")
99 SketchLine_12.result().setName("SketchLine_14")
100 SketchLine_13 = Sketch_2.addLine(-20, 20, -20, 0)
101 SketchLine_13.setName("SketchLine_12")
102 SketchLine_13.result().setName("SketchLine_12")
103 SketchLine_13.setAuxiliary(True)
104 SketchConstraintCoincidence_13 = Sketch_2.setCoincident(SketchLine_13.endPoint(), SketchLine_10.startPoint())
105 SketchConstraintCoincidence_14 = Sketch_2.setCoincident(SketchLine_10.endPoint(), SketchLine_11.startPoint())
106 SketchLine_14 = Sketch_2.addLine(0, 20, -20, 20)
107 SketchLine_14.setName("SketchLine_11")
108 SketchLine_14.result().setName("SketchLine_11")
109 SketchLine_14.setAuxiliary(True)
110 SketchConstraintCoincidence_15 = Sketch_2.setCoincident(SketchLine_11.endPoint(), SketchLine_14.startPoint())
111 SketchConstraintCoincidence_16 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchLine_13.startPoint())
112 SketchConstraintHorizontal_3 = Sketch_2.setHorizontal(SketchLine_10.result())
113 SketchConstraintVertical_3 = Sketch_2.setVertical(SketchLine_11.result())
114 SketchConstraintHorizontal_4 = Sketch_2.setHorizontal(SketchLine_14.result())
115 SketchConstraintVertical_4 = Sketch_2.setVertical(SketchLine_13.result())
116 SketchArc_2 = Sketch_2.addArc(-17, 17, -17.00000285538278, 20, -20, 17.00000633266883, False)
117 SketchConstraintCoincidence_17 = Sketch_2.setCoincident(SketchArc_2.startPoint(), SketchLine_9.endPoint())
118 SketchConstraintCoincidence_18 = Sketch_2.setCoincident(SketchArc_2.endPoint(), SketchLine_12.startPoint())
119 SketchConstraintTangent_3 = Sketch_2.setTangent(SketchArc_2.results()[1], SketchLine_9.result())
120 SketchConstraintTangent_4 = Sketch_2.setTangent(SketchArc_2.results()[1], SketchLine_12.result())
121 SketchConstraintCoincidence_19 = Sketch_2.setCoincident(SketchLine_14.startPoint(), SketchLine_9.startPoint())
122 SketchConstraintCoincidence_20 = Sketch_2.setCoincident(SketchLine_13.endPoint(), SketchLine_12.endPoint())
123 SketchConstraintCoincidence_21 = Sketch_2.setCoincident(SketchLine_9.endPoint(), SketchLine_14.result())
124 SketchConstraintCoincidence_22 = Sketch_2.setCoincident(SketchLine_12.startPoint(), SketchLine_13.result())
125 SketchConstraintRadius_2 = Sketch_2.setRadius(SketchArc_2.results()[1], 3)
126 SketchConstraintDistance_3 = Sketch_2.setDistance(SketchLine_10.startPoint(), SketchLine_11.result(), 20)
127 SketchConstraintDistance_4 = Sketch_2.setDistance(SketchLine_11.endPoint(), SketchLine_10.result(), 20)
128 model.do()
129 ExtrusionFuse_2 = model.addExtrusionFuse(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchLine_13f-SketchLine_9f-SketchLine_10f-SketchLine_14f-SketchArc_2_2f")], model.selection(), 0, 25, [model.selection("SOLID", "ExtrusionFuse_1_1")])
130 Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionFuse_2_1/Modfied_8"))
131 SketchLine_15 = Sketch_3.addLine(0, -20, -17.00000002635728, -20)
132 SketchLine_15.setName("SketchLine_19")
133 SketchLine_15.result().setName("SketchLine_19")
134 SketchLine_16 = Sketch_3.addLine(-20, 0, 0, 0)
135 SketchLine_16.setName("SketchLine_15")
136 SketchLine_16.result().setName("SketchLine_15")
137 SketchPoint_2 = Sketch_3.addPoint(model.selection("VERTEX", "ExtrusionFuse_2_1/Modfied_9&ExtrusionFuse_2_1/Modfied_5&ExtrusionFuse_2_1/Modfied_8&ExtrusionFuse_2_1/Modfied_2"))
138 SketchConstraintCoincidence_23 = Sketch_3.setCoincident(SketchLine_16.endPoint(), SketchPoint_2.result())
139 SketchLine_17 = Sketch_3.addLine(0, 0, 0, -20)
140 SketchLine_17.setName("SketchLine_16")
141 SketchLine_17.result().setName("SketchLine_16")
142 SketchLine_18 = Sketch_3.addLine(-20, -16.99998301947517, -20, 0)
143 SketchLine_18.setName("SketchLine_20")
144 SketchLine_18.result().setName("SketchLine_20")
145 SketchLine_19 = Sketch_3.addLine(-20, -20, -20, 0)
146 SketchLine_19.setName("SketchLine_18")
147 SketchLine_19.result().setName("SketchLine_18")
148 SketchLine_19.setAuxiliary(True)
149 SketchConstraintCoincidence_24 = Sketch_3.setCoincident(SketchLine_19.endPoint(), SketchLine_16.startPoint())
150 SketchConstraintCoincidence_25 = Sketch_3.setCoincident(SketchLine_16.endPoint(), SketchLine_17.startPoint())
151 SketchLine_20 = Sketch_3.addLine(0, -20, -20, -20)
152 SketchLine_20.setName("SketchLine_17")
153 SketchLine_20.result().setName("SketchLine_17")
154 SketchLine_20.setAuxiliary(True)
155 SketchConstraintCoincidence_26 = Sketch_3.setCoincident(SketchLine_17.endPoint(), SketchLine_20.startPoint())
156 SketchConstraintCoincidence_27 = Sketch_3.setCoincident(SketchLine_20.endPoint(), SketchLine_19.startPoint())
157 SketchConstraintHorizontal_5 = Sketch_3.setHorizontal(SketchLine_16.result())
158 SketchConstraintVertical_5 = Sketch_3.setVertical(SketchLine_17.result())
159 SketchConstraintHorizontal_6 = Sketch_3.setHorizontal(SketchLine_20.result())
160 SketchConstraintVertical_6 = Sketch_3.setVertical(SketchLine_19.result())
161 SketchArc_3 = Sketch_3.addArc(-17, -17, -20, -16.99998301947517, -17.00000002635728, -20, False)
162 SketchConstraintCoincidence_28 = Sketch_3.setCoincident(SketchArc_3.startPoint(), SketchLine_18.startPoint())
163 SketchConstraintCoincidence_29 = Sketch_3.setCoincident(SketchArc_3.endPoint(), SketchLine_15.endPoint())
164 SketchConstraintTangent_5 = Sketch_3.setTangent(SketchArc_3.results()[1], SketchLine_15.result())
165 SketchConstraintTangent_6 = Sketch_3.setTangent(SketchArc_3.results()[1], SketchLine_18.result())
166 SketchConstraintCoincidence_30 = Sketch_3.setCoincident(SketchLine_20.startPoint(), SketchLine_15.startPoint())
167 SketchConstraintCoincidence_31 = Sketch_3.setCoincident(SketchLine_19.endPoint(), SketchLine_18.endPoint())
168 SketchConstraintCoincidence_32 = Sketch_3.setCoincident(SketchLine_15.endPoint(), SketchLine_20.result())
169 SketchConstraintCoincidence_33 = Sketch_3.setCoincident(SketchLine_18.startPoint(), SketchLine_19.result())
170 SketchConstraintRadius_3 = Sketch_3.setRadius(SketchArc_3.results()[1], 3)
171 SketchConstraintDistance_5 = Sketch_3.setDistance(SketchLine_15.startPoint(), SketchLine_16.result(), 20)
172 SketchConstraintDistance_6 = Sketch_3.setDistance(SketchLine_18.endPoint(), SketchLine_17.result(), 20)
173 SketchLine_21 = Sketch_3.addLine(-23, -0.01462093666115485, -23, -19.98755081419712)
174 SketchConstraintParallel_1 = Sketch_3.setParallel(SketchLine_17.result(), SketchLine_21.result())
175 SketchConstraintDistance_7 = Sketch_3.setDistance(SketchLine_21.startPoint(), SketchLine_18.result(), 3)
176 model.do()
177 RevolutionFuse_1 = model.addRevolutionFuse(Part_1_doc, [model.selection("COMPOUND", "Sketch_3")], model.selection("EDGE", "Sketch_3/Edge-SketchLine_21"), 71, 0, [model.selection("SOLID", "ExtrusionFuse_2_1")])
178 Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "RevolutionFuse_1_1/Modfied_4"))
179 SketchLine_22 = Sketch_4.addLine(-3, -20, 17.00000452949485, -20)
180 SketchLine_22.setName("SketchLine_26")
181 SketchLine_22.result().setName("SketchLine_26")
182 SketchLine_23 = Sketch_4.addLine(20, 0, -3, 0)
183 SketchLine_23.setName("SketchLine_22")
184 SketchLine_23.result().setName("SketchLine_22")
185 SketchLine_24 = Sketch_4.addLine(-3, 0, -3, -20)
186 SketchLine_24.setName("SketchLine_23")
187 SketchLine_24.result().setName("SketchLine_23")
188 SketchLine_25 = Sketch_4.addLine(20, -17.00001580618423, 20, 0)
189 SketchLine_25.setName("SketchLine_27")
190 SketchLine_25.result().setName("SketchLine_27")
191 SketchLine_26 = Sketch_4.addLine(20, -20, 20, 0)
192 SketchLine_26.setName("SketchLine_25")
193 SketchLine_26.result().setName("SketchLine_25")
194 SketchLine_26.setAuxiliary(True)
195 SketchConstraintCoincidence_34 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_23.startPoint())
196 SketchConstraintCoincidence_35 = Sketch_4.setCoincident(SketchLine_23.endPoint(), SketchLine_24.startPoint())
197 SketchLine_27 = Sketch_4.addLine(-3, -20, 20, -20)
198 SketchLine_27.setName("SketchLine_24")
199 SketchLine_27.result().setName("SketchLine_24")
200 SketchLine_27.setAuxiliary(True)
201 SketchConstraintCoincidence_36 = Sketch_4.setCoincident(SketchLine_24.endPoint(), SketchLine_27.startPoint())
202 SketchConstraintCoincidence_37 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_26.startPoint())
203 SketchConstraintHorizontal_7 = Sketch_4.setHorizontal(SketchLine_23.result())
204 SketchConstraintVertical_7 = Sketch_4.setVertical(SketchLine_24.result())
205 SketchConstraintHorizontal_8 = Sketch_4.setHorizontal(SketchLine_27.result())
206 SketchConstraintVertical_8 = Sketch_4.setVertical(SketchLine_26.result())
207 SketchArc_4 = Sketch_4.addArc(17, -17, 17.00000452949485, -20, 20, -17.00001580618423, False)
208 SketchConstraintCoincidence_38 = Sketch_4.setCoincident(SketchArc_4.startPoint(), SketchLine_22.endPoint())
209 SketchConstraintCoincidence_39 = Sketch_4.setCoincident(SketchArc_4.endPoint(), SketchLine_25.startPoint())
210 SketchConstraintTangent_7 = Sketch_4.setTangent(SketchArc_4.results()[1], SketchLine_22.result())
211 SketchConstraintTangent_8 = Sketch_4.setTangent(SketchArc_4.results()[1], SketchLine_25.result())
212 SketchConstraintCoincidence_40 = Sketch_4.setCoincident(SketchLine_27.startPoint(), SketchLine_22.startPoint())
213 SketchConstraintCoincidence_41 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_25.endPoint())
214 SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_22.endPoint(), SketchLine_27.result())
215 SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchLine_25.startPoint(), SketchLine_26.result())
216 SketchConstraintRadius_4 = Sketch_4.setRadius(SketchArc_4.results()[1], 3)
217 SketchLine_28 = Sketch_4.addLine(model.selection("EDGE", "Sketch_3/Edge-SketchLine_15"))
218 SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_24.startPoint(), SketchLine_28.result())
219 SketchConstraintDistance_8 = Sketch_4.setDistance(SketchLine_22.endPoint(), SketchLine_23.result(), 20)
220 SketchConstraintDistance_9 = Sketch_4.setDistance(SketchLine_28.endPoint(), SketchLine_25.result(), 20)
221 SketchConstraintDistance_10 = Sketch_4.setDistance(SketchLine_24.result(), SketchLine_28.endPoint(), 3)
222 SketchLine_29 = Sketch_4.addLine(23, -0.2448405100241045, 23, -19.61338093143246)
223 SketchConstraintParallel_2 = Sketch_4.setParallel(SketchLine_25.result(), SketchLine_29.result())
224 SketchConstraintDistance_11 = Sketch_4.setDistance(SketchLine_23.startPoint(), SketchLine_29.result(), 3)
225 model.do()
226 RevolutionFuse_2 = model.addRevolutionFuse(Part_1_doc, [model.selection("FACE", "Sketch_4/Face-SketchLine_26f-SketchLine_22f-SketchLine_23f-SketchLine_27f-SketchArc_4_2f")], model.selection("EDGE", "Sketch_4/Edge-SketchLine_29"), 0, 71, [model.selection("SOLID", "RevolutionFuse_1_1")])
227 Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/XOZ"))
228 SketchLine_30 = Sketch_5.addLine(0, 0, 0, 82)
229 SketchLine_31 = Sketch_5.addLine(model.selection("EDGE", "PartSet/OZ"))
230 SketchConstraintCoincidence_45 = Sketch_5.setCoincident(SketchLine_30.endPoint(), SketchLine_31.result())
231 SketchLine_32 = Sketch_5.addLine(27.41618692363446, 77.00000000000001, 58.99998109391454, 77.00000000000001)
232 SketchLine_32.setName("SketchLine_39")
233 SketchLine_32.result().setName("SketchLine_39")
234 SketchLine_33 = Sketch_5.addLine(0, 82, 20, 82)
235 SketchLine_33.setName("SketchLine_32")
236 SketchLine_33.result().setName("SketchLine_32")
237 SketchConstraintCoincidence_46 = Sketch_5.setCoincident(SketchLine_30.endPoint(), SketchLine_33.startPoint())
238 SketchLine_34 = Sketch_5.addLine(65, 70.99999917134223, 65, 0)
239 SketchLine_34.setName("SketchLine_40")
240 SketchLine_34.result().setName("SketchLine_40")
241 SketchLine_35 = Sketch_5.addLine(27.41618692363446, 77.00000000000001, 65, 77.00000000000001)
242 SketchLine_35.setName("SketchLine_34")
243 SketchLine_35.result().setName("SketchLine_34")
244 SketchLine_35.setAuxiliary(True)
245 SketchLine_36 = Sketch_5.addLine(65, 77.00000000000001, 65, 0)
246 SketchLine_36.setName("SketchLine_35")
247 SketchLine_36.result().setName("SketchLine_35")
248 SketchLine_36.setAuxiliary(True)
249 SketchConstraintCoincidence_47 = Sketch_5.setCoincident(SketchLine_35.endPoint(), SketchLine_36.startPoint())
250 SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_49")
251 SketchLine_37 = Sketch_5.addLine(65, 0, 0, 0)
252 SketchLine_37.setName("SketchLine_38")
253 SketchLine_37.result().setName("SketchLine_38")
254 SketchConstraintCoincidence_48 = Sketch_5.setCoincident(SketchLine_30.startPoint(), SketchLine_37.endPoint())
255 SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_53")
256 SketchConstraintCoincidence_49 = Sketch_5.setCoincident(SketchLine_37.endPoint(), SketchLine_31.startPoint())
257 SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_54")
258 SketchConstraintHorizontal_9 = Sketch_5.setHorizontal(SketchLine_37.result())
259 SketchConstraintVertical_9 = Sketch_5.setVertical(SketchLine_36.result())
260 SketchConstraintHorizontal_10 = Sketch_5.setHorizontal(SketchLine_33.result())
261 SketchConstraintHorizontal_11 = Sketch_5.setHorizontal(SketchLine_35.result())
262 SketchConstraintDistance_12 = Sketch_5.setDistance(SketchLine_33.endPoint(), SketchLine_35.result(), 5)
263 SketchConstraintDistance_12.setName("SketchConstraintDistance_14")
264 SketchConstraintDistance_13 = Sketch_5.setDistance(SketchLine_30.endPoint(), SketchLine_37.result(), 82)
265 SketchConstraintDistance_13.setName("SketchConstraintDistance_15")
266 SketchArc_5 = Sketch_5.addArc(59, 70.99999999999999, 65, 70.99999917134223, 58.99998109391454, 77.00000000000001, False)
267 SketchArc_5.setName("SketchArc_6")
268 SketchArc_5.result().setName("SketchArc_6")
269 SketchArc_5.results()[1].setName("SketchArc_6_2")
270 SketchConstraintCoincidence_50 = Sketch_5.setCoincident(SketchArc_5.startPoint(), SketchLine_34.startPoint())
271 SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_57")
272 SketchConstraintCoincidence_51 = Sketch_5.setCoincident(SketchArc_5.endPoint(), SketchLine_32.endPoint())
273 SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_58")
274 SketchConstraintTangent_9 = Sketch_5.setTangent(SketchArc_5.results()[1], SketchLine_32.result())
275 SketchConstraintTangent_9.setName("SketchConstraintTangent_10")
276 SketchConstraintTangent_10 = Sketch_5.setTangent(SketchArc_5.results()[1], SketchLine_34.result())
277 SketchConstraintTangent_10.setName("SketchConstraintTangent_11")
278 SketchConstraintCoincidence_52 = Sketch_5.setCoincident(SketchLine_35.startPoint(), SketchLine_32.startPoint())
279 SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_59")
280 SketchConstraintCoincidence_53 = Sketch_5.setCoincident(SketchLine_36.endPoint(), SketchLine_34.endPoint())
281 SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_60")
282 SketchConstraintCoincidence_54 = Sketch_5.setCoincident(SketchLine_32.endPoint(), SketchLine_35.result())
283 SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_61")
284 SketchConstraintCoincidence_55 = Sketch_5.setCoincident(SketchLine_34.startPoint(), SketchLine_36.result())
285 SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_62")
286 SketchConstraintRadius_5 = Sketch_5.setRadius(SketchArc_5.results()[1], 6)
287 SketchConstraintRadius_5.setName("SketchConstraintRadius_6")
288 SketchArc_6 = Sketch_5.addArc(27.41619848709567, 84.99999999999999, 27.41618692363446, 77.00000000000001, 20, 82, True)
289 SketchArc_6.setName("SketchArc_7")
290 SketchArc_6.result().setName("SketchArc_7")
291 SketchArc_6.results()[1].setName("SketchArc_7_2")
292 SketchConstraintCoincidence_56 = Sketch_5.setCoincident(SketchArc_6.startPoint(), SketchLine_32.startPoint())
293 SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_63")
294 SketchConstraintTangent_11 = Sketch_5.setTangent(SketchArc_6.results()[1], SketchLine_32.result())
295 SketchConstraintTangent_11.setName("SketchConstraintTangent_12")
296 SketchConstraintCoincidence_57 = Sketch_5.setCoincident(SketchLine_33.endPoint(), SketchArc_6.endPoint())
297 SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_64")
298 SketchConstraintRadius_6 = Sketch_5.setRadius(SketchArc_6.results()[1], 8)
299 SketchConstraintRadius_6.setName("SketchConstraintRadius_7")
300 SketchConstraintDistance_14 = Sketch_5.setDistance(SketchLine_33.endPoint(), SketchLine_30.result(), 20)
301 SketchConstraintDistance_14.setName("SketchConstraintDistance_17")
302 SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchLine_34.endPoint(), SketchLine_37.startPoint())
303 SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_66")
304 SketchConstraintDistance_15 = Sketch_5.setDistance(SketchLine_37.startPoint(), SketchLine_30.result(), "DBody")
305 SketchConstraintDistance_15.setName("SketchConstraintDistance_16")
306 model.do()
307 RevolutionFuse_3 = model.addRevolutionFuse(Part_1_doc, [model.selection("WIRE", "Sketch_5/Wire-SketchLine_30r-SketchLine_39r-SketchLine_32r-SketchLine_40r-SketchLine_38r-SketchArc_6_2f-SketchArc_7_2r")], model.selection("EDGE", "PartSet/OZ"), 45, 315, [model.selection("SOLID", "RevolutionFuse_2_1")])
308 Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/YOZ"))
309 SketchLine_38 = Sketch_6.addLine(19.99999999999999, 60, -20, 60)
310 SketchLine_38.setName("SketchLine_48")
311 SketchLine_38.result().setName("SketchLine_48")
312 SketchLine_39 = Sketch_6.addLine(-20, 30, 20, 30)
313 SketchLine_39.setName("SketchLine_52")
314 SketchLine_39.result().setName("SketchLine_52")
315 SketchLine_40 = Sketch_6.addLine(-20, 60, -20, 30)
316 SketchLine_40.setName("SketchLine_51")
317 SketchLine_40.result().setName("SketchLine_51")
318 SketchLine_41 = Sketch_6.addLine(20, 30, 19.99999999999999, 60)
319 SketchLine_41.setName("SketchLine_50")
320 SketchLine_41.result().setName("SketchLine_50")
321 SketchLine_43 = Sketch_6.addLine(-19.99999999999998, 30.00000000000001, 20, 30.00000000000001)
322 SketchLine_43.setName("SketchLine_41")
323 SketchLine_43.result().setName("SketchLine_41")
324 SketchLine_43.setAuxiliary(True)
325 SketchLine_42 = Sketch_6.addLine(-19.99999999999999, 60, -19.99999999999998, 30.00000000000001)
326 SketchLine_42.setName("SketchLine_44")
327 SketchLine_42.result().setName("SketchLine_44")
328 SketchLine_42.setAuxiliary(True)
329 SketchConstraintCoincidence_60 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_43.startPoint())
330 SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_67")
331 SketchLine_44 = Sketch_6.addLine(20, 30.00000000000001, 19.99999999999998, 60)
332 SketchLine_44.setName("SketchLine_42")
333 SketchLine_44.result().setName("SketchLine_42")
334 SketchLine_44.setAuxiliary(True)
335 SketchConstraintCoincidence_61 = Sketch_6.setCoincident(SketchLine_43.endPoint(), SketchLine_44.startPoint())
336 SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_68")
337 SketchLine_45 = Sketch_6.addLine(19.99999999999998, 60, -19.99999999999999, 60)
338 SketchLine_45.setName("SketchLine_43")
339 SketchLine_45.result().setName("SketchLine_43")
340 SketchLine_45.setAuxiliary(True)
341 SketchConstraintCoincidence_62 = Sketch_6.setCoincident(SketchLine_44.endPoint(), SketchLine_45.startPoint())
342 SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_69")
343 SketchConstraintCoincidence_63 = Sketch_6.setCoincident(SketchLine_45.endPoint(), SketchLine_42.startPoint())
344 SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_70")
345 SketchConstraintHorizontal_12 = Sketch_6.setHorizontal(SketchLine_43.result())
346 SketchConstraintVertical_10 = Sketch_6.setVertical(SketchLine_44.result())
347 SketchConstraintHorizontal_13 = Sketch_6.setHorizontal(SketchLine_45.result())
348 SketchConstraintVertical_11 = Sketch_6.setVertical(SketchLine_42.result())
349 SketchLine_46 = Sketch_6.addLine(19.99999999999998, 60, -20, 60)
350 SketchLine_46.setName("SketchLine_45")
351 SketchLine_46.result().setName("SketchLine_45")
352 SketchLine_46.setAuxiliary(True)
353 SketchConstraintCoincidence_64 = Sketch_6.setCoincident(SketchLine_45.startPoint(), SketchLine_46.startPoint())
354 SketchConstraintCoincidence_64.setName("SketchConstraintCoincidence_73")
355 SketchLine_47 = Sketch_6.addLine(-20, 60, -19.99999999999998, 30.00000000000001)
356 SketchLine_47.setName("SketchLine_46")
357 SketchLine_47.result().setName("SketchLine_46")
358 SketchLine_47.setAuxiliary(True)
359 SketchConstraintCoincidence_65 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_47.endPoint())
360 SketchConstraintCoincidence_65.setName("SketchConstraintCoincidence_74")
361 SketchConstraintCoincidence_66 = Sketch_6.setCoincident(SketchLine_46.endPoint(), SketchLine_45.result())
362 SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_75")
363 SketchConstraintCoincidence_67 = Sketch_6.setCoincident(SketchLine_47.startPoint(), SketchLine_42.result())
364 SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_76")
365 SketchLine_48 = Sketch_6.addLine(20, 30.00000000000001, 19.99999999999999, 60)
366 SketchLine_48.setName("SketchLine_47")
367 SketchLine_48.result().setName("SketchLine_47")
368 SketchLine_48.setAuxiliary(True)
369 SketchConstraintCoincidence_68 = Sketch_6.setCoincident(SketchLine_44.startPoint(), SketchLine_48.startPoint())
370 SketchConstraintCoincidence_68.setName("SketchConstraintCoincidence_79")
371 SketchConstraintCoincidence_69 = Sketch_6.setCoincident(SketchLine_46.endPoint(), SketchLine_38.endPoint())
372 SketchConstraintCoincidence_69.setName("SketchConstraintCoincidence_80")
373 SketchConstraintCoincidence_70 = Sketch_6.setCoincident(SketchLine_48.endPoint(), SketchLine_44.result())
374 SketchConstraintCoincidence_70.setName("SketchConstraintCoincidence_81")
375 SketchConstraintCoincidence_71 = Sketch_6.setCoincident(SketchLine_38.startPoint(), SketchLine_46.result())
376 SketchConstraintCoincidence_71.setName("SketchConstraintCoincidence_82")
377 SketchLine_49 = Sketch_6.addLine(-19.99999999999998, 30.00000000000001, 20, 30)
378 SketchLine_49.setAuxiliary(True)
379 SketchConstraintCoincidence_72 = Sketch_6.setCoincident(SketchLine_43.startPoint(), SketchLine_49.startPoint())
380 SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_85")
381 SketchConstraintCoincidence_73 = Sketch_6.setCoincident(SketchLine_48.endPoint(), SketchLine_41.endPoint())
382 SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_86")
383 SketchConstraintCoincidence_74 = Sketch_6.setCoincident(SketchLine_49.endPoint(), SketchLine_43.result())
384 SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_87")
385 SketchConstraintCoincidence_75 = Sketch_6.setCoincident(SketchLine_41.startPoint(), SketchLine_48.result())
386 SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_88")
387 SketchConstraintCoincidence_76 = Sketch_6.setCoincident(SketchLine_47.startPoint(), SketchLine_40.startPoint())
388 SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_91")
389 SketchConstraintCoincidence_77 = Sketch_6.setCoincident(SketchLine_49.endPoint(), SketchLine_39.endPoint())
390 SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_92")
391 SketchConstraintCoincidence_78 = Sketch_6.setCoincident(SketchLine_40.endPoint(), SketchLine_47.result())
392 SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_93")
393 SketchConstraintCoincidence_79 = Sketch_6.setCoincident(SketchLine_39.startPoint(), SketchLine_49.result())
394 SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_94")
395 SketchPoint_3 = Sketch_6.addPoint(model.selection("VERTEX", "Sketch_5/Vertex-SketchLine_30s-SketchLine_31s-SketchLine_38e"))
396 SketchConstraintDistance_16 = Sketch_6.setDistance(SketchLine_40.result(), SketchPoint_3.coordinates(), 20)
397 SketchConstraintDistance_16.setName("SketchConstraintDistance_18")
398 SketchConstraintDistance_17 = Sketch_6.setDistance(SketchPoint_3.coordinates(), SketchLine_41.result(), 20)
399 SketchConstraintDistance_17.setName("SketchConstraintDistance_19")
400 SketchConstraintDistance_18 = Sketch_6.setDistance(SketchLine_39.result(), SketchPoint_3.coordinates(), 30)
401 SketchConstraintDistance_18.setName("SketchConstraintDistance_20")
402 SketchConstraintDistance_19 = Sketch_6.setDistance(SketchLine_39.result(), SketchLine_38.endPoint(), 30)
403 SketchConstraintDistance_19.setName("SketchConstraintDistance_21")
404 SketchConstraintCoincidence_80 = Sketch_6.setCoincident(SketchLine_40.startPoint(), SketchLine_38.endPoint())
405 SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_152")
406 SketchConstraintCoincidence_81 = Sketch_6.setCoincident(SketchLine_38.startPoint(), SketchLine_41.endPoint())
407 SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_153")
408 SketchConstraintCoincidence_82 = Sketch_6.setCoincident(SketchLine_40.endPoint(), SketchLine_39.startPoint())
409 SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_154")
410 SketchConstraintCoincidence_84 = Sketch_6.setCoincident(SketchLine_41.startPoint(), SketchLine_39.endPoint())
411 SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_156")
412 model.do()
413 ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_6")], model.selection(), 100, 0, [model.selection("SOLID", "RevolutionFuse_3_1")])
414 Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/XOZ"))
415 SketchLine_50 = Sketch_7.addLine(65, 23.09999999999939, 65, 23.00000523211526)
416 SketchLine_50.setName("SketchLine_61")
417 SketchLine_50.result().setName("SketchLine_61")
418 SketchLine_51 = Sketch_7.addLine(model.selection("EDGE", "Sketch_5/Edge-SketchLine_35"))
419 SketchLine_51.setName("SketchLine_54")
420 SketchLine_51.result().setName("SketchLine_54")
421 SketchLine_52 = Sketch_7.addLine(65, 23.09999999999939, 65, 20)
422 SketchLine_52.setName("SketchLine_53")
423 SketchLine_52.result().setName("SketchLine_53")
424 SketchLine_52.setAuxiliary(True)
425 SketchConstraintCoincidence_85 = Sketch_7.setCoincident(SketchLine_52.startPoint(), SketchLine_51.result())
426 SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_95")
427 SketchLine_53 = Sketch_7.addLine(68.00001763534438, 19.99999999999997, 68.09999999999999, 20)
428 SketchLine_53.setName("SketchLine_62")
429 SketchLine_53.result().setName("SketchLine_62")
430 SketchLine_54 = Sketch_7.addLine(65, 20, 68.09999999999999, 20)
431 SketchLine_54.setName("SketchLine_55")
432 SketchLine_54.result().setName("SketchLine_55")
433 SketchLine_54.setAuxiliary(True)
434 SketchConstraintCoincidence_86 = Sketch_7.setCoincident(SketchLine_52.endPoint(), SketchLine_54.startPoint())
435 SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_96")
436 SketchLine_55 = Sketch_7.addLine(model.selection("EDGE", "RevolutionFuse_3_1/Modfied_6&RevolutionFuse_3_1/Modfied_5"))
437 SketchLine_55.setName("SketchLine_56")
438 SketchLine_55.result().setName("SketchLine_56")
439 SketchConstraintCoincidence_87 = Sketch_7.setCoincident(SketchLine_54.endPoint(), SketchLine_55.result())
440 SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_97")
441 SketchLine_56 = Sketch_7.addLine(68.09999999999999, 20, 68.09999999999999, 18.51336352164785)
442 SketchLine_56.setName("SketchLine_57")
443 SketchLine_56.result().setName("SketchLine_57")
444 SketchConstraintCoincidence_88 = Sketch_7.setCoincident(SketchLine_54.endPoint(), SketchLine_56.startPoint())
445 SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_98")
446 SketchLine_57 = Sketch_7.addLine(68.09999999999999, 18.51336352164785, 63.35445204813018, 18.51336352164785)
447 SketchLine_57.setName("SketchLine_58")
448 SketchLine_57.result().setName("SketchLine_58")
449 SketchConstraintCoincidence_89 = Sketch_7.setCoincident(SketchLine_56.endPoint(), SketchLine_57.startPoint())
450 SketchConstraintCoincidence_89.setName("SketchConstraintCoincidence_99")
451 SketchLine_58 = Sketch_7.addLine(63.35445204813018, 18.51336352164785, 63.35445204813018, 23.09999999999939)
452 SketchLine_58.setName("SketchLine_59")
453 SketchLine_58.result().setName("SketchLine_59")
454 SketchConstraintCoincidence_90 = Sketch_7.setCoincident(SketchLine_57.endPoint(), SketchLine_58.startPoint())
455 SketchConstraintCoincidence_90.setName("SketchConstraintCoincidence_100")
456 SketchLine_59 = Sketch_7.addLine(63.35445204813018, 23.09999999999939, 65, 23.09999999999939)
457 SketchLine_59.setName("SketchLine_60")
458 SketchLine_59.result().setName("SketchLine_60")
459 SketchConstraintCoincidence_91 = Sketch_7.setCoincident(SketchLine_58.endPoint(), SketchLine_59.startPoint())
460 SketchConstraintCoincidence_91.setName("SketchConstraintCoincidence_101")
461 SketchConstraintCoincidence_92 = Sketch_7.setCoincident(SketchLine_52.startPoint(), SketchLine_59.endPoint())
462 SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_102")
463 SketchConstraintVertical_12 = Sketch_7.setVertical(SketchLine_52.result())
464 SketchConstraintHorizontal_14 = Sketch_7.setHorizontal(SketchLine_54.result())
465 SketchConstraintHorizontal_15 = Sketch_7.setHorizontal(SketchLine_57.result())
466 SketchConstraintHorizontal_16 = Sketch_7.setHorizontal(SketchLine_59.result())
467 SketchConstraintVertical_13 = Sketch_7.setVertical(SketchLine_56.result())
468 SketchConstraintVertical_14 = Sketch_7.setVertical(SketchLine_58.result())
469 SketchArc_7 = Sketch_7.addArc(68, 22.99999999999999, 65, 23.00000523211526, 68.00001763534438, 19.99999999999997, False)
470 SketchArc_7.setName("SketchArc_12")
471 SketchArc_7.result().setName("SketchArc_12")
472 SketchArc_7.results()[1].setName("SketchArc_12_2")
473 SketchConstraintCoincidence_93 = Sketch_7.setCoincident(SketchArc_7.startPoint(), SketchLine_50.endPoint())
474 SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_103")
475 SketchConstraintCoincidence_94 = Sketch_7.setCoincident(SketchArc_7.endPoint(), SketchLine_53.startPoint())
476 SketchConstraintCoincidence_94.setName("SketchConstraintCoincidence_104")
477 SketchConstraintTangent_12 = Sketch_7.setTangent(SketchArc_7.results()[1], SketchLine_50.result())
478 SketchConstraintTangent_12.setName("SketchConstraintTangent_21")
479 SketchConstraintTangent_13 = Sketch_7.setTangent(SketchArc_7.results()[1], SketchLine_53.result())
480 SketchConstraintTangent_13.setName("SketchConstraintTangent_22")
481 SketchConstraintCoincidence_95 = Sketch_7.setCoincident(SketchLine_52.startPoint(), SketchLine_50.startPoint())
482 SketchConstraintCoincidence_95.setName("SketchConstraintCoincidence_105")
483 SketchConstraintCoincidence_96 = Sketch_7.setCoincident(SketchLine_54.endPoint(), SketchLine_53.endPoint())
484 SketchConstraintCoincidence_96.setName("SketchConstraintCoincidence_106")
485 SketchConstraintCoincidence_97 = Sketch_7.setCoincident(SketchLine_50.endPoint(), SketchLine_52.result())
486 SketchConstraintCoincidence_97.setName("SketchConstraintCoincidence_107")
487 SketchConstraintCoincidence_98 = Sketch_7.setCoincident(SketchLine_53.startPoint(), SketchLine_54.result())
488 SketchConstraintCoincidence_98.setName("SketchConstraintCoincidence_108")
489 SketchConstraintRadius_7 = Sketch_7.setRadius(SketchArc_7.results()[1], 3)
490 SketchConstraintRadius_7.setName("SketchConstraintRadius_12")
491 SketchConstraintDistance_20 = Sketch_7.setDistance(SketchLine_53.endPoint(), SketchLine_50.result(), 3.1)
492 SketchConstraintDistance_20.setName("SketchConstraintDistance_22")
493 SketchConstraintDistance_21 = Sketch_7.setDistance(SketchLine_50.startPoint(), SketchLine_53.result(), 3.1)
494 SketchConstraintDistance_21.setName("SketchConstraintDistance_23")
495 model.do()
496 RevolutionFuse_4 = model.addRevolutionFuse(Part_1_doc, [model.selection("COMPOUND", "Sketch_7")], model.selection("EDGE", "PartSet/OZ"), 14.4, 14.4, [model.selection("SOLID", "ExtrusionCut_1_1")])
497 Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/XOZ"))
498 SketchCircle_1 = Sketch_8.addCircle(0, 45, 12.5)
499 SketchLine_60 = Sketch_8.addLine(model.selection("EDGE", "Sketch_5/Edge-SketchLine_30"))
500 SketchLine_60.setName("SketchLine_63")
501 SketchLine_60.result().setName("SketchLine_63")
502 SketchConstraintCoincidence_99 = Sketch_8.setCoincident(SketchCircle_1.center(), SketchLine_60.result())
503 SketchConstraintCoincidence_99.setName("SketchConstraintCoincidence_109")
504 SketchLine_61 = Sketch_8.addLine(model.selection("EDGE", "Sketch_5/Edge-SketchLine_38"))
505 SketchLine_61.setName("SketchLine_64")
506 SketchLine_61.result().setName("SketchLine_64")
507 SketchConstraintDistance_22 = Sketch_8.setDistance(SketchCircle_1.center(), SketchLine_61.result(), 45)
508 SketchConstraintDistance_22.setName("SketchConstraintDistance_24")
509 SketchConstraintRadius_8 = Sketch_8.setRadius(SketchCircle_1.results()[1], 12.5)
510 SketchConstraintRadius_8.setName("SketchConstraintRadius_13")
511 model.do()
512 ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_8/Face-SketchCircle_1_2f")], model.selection(), 100, 100, [model.selection("SOLID", "RevolutionFuse_4_1")])
513 Sketch_9 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ"))
514 SketchLine_62 = Sketch_9.addLine(0, 84, 0, -2)
515 SketchLine_62.setName("SketchLine_65")
516 SketchLine_62.result().setName("SketchLine_65")
517 SketchLine_63 = Sketch_9.addLine(model.selection("EDGE", "PartSet/OZ"))
518 SketchLine_63.setName("SketchLine_66")
519 SketchLine_63.result().setName("SketchLine_66")
520 SketchConstraintCoincidence_100 = Sketch_9.setCoincident(SketchLine_62.startPoint(), SketchLine_63.result())
521 SketchConstraintCoincidence_100.setName("SketchConstraintCoincidence_110")
522 SketchConstraintCoincidence_101 = Sketch_9.setCoincident(SketchLine_62.endPoint(), SketchLine_63.result())
523 SketchConstraintCoincidence_101.setName("SketchConstraintCoincidence_111")
524 SketchLine_64 = Sketch_9.addLine(50, 8, 50, 63.99999981522573)
525 SketchLine_64.setName("SketchLine_91")
526 SketchLine_64.result().setName("SketchLine_91")
527 SketchLine_65 = Sketch_9.addLine(0, -2, 58, -2)
528 SketchLine_65.setName("SketchLine_67")
529 SketchLine_65.result().setName("SketchLine_67")
530 SketchConstraintCoincidence_102 = Sketch_9.setCoincident(SketchLine_62.endPoint(), SketchLine_65.startPoint())
531 SketchConstraintCoincidence_102.setName("SketchConstraintCoincidence_112")
532 SketchLine_66 = Sketch_9.addLine(44.0000002728486, 70, 15, 70)
533 SketchLine_66.setName("SketchLine_92")
534 SketchLine_66.result().setName("SketchLine_92")
535 SketchLine_67 = Sketch_9.addLine(58, -2, 58.00000000000001, 3.999997221073)
536 SketchLine_67.setName("SketchLine_93")
537 SketchLine_67.result().setName("SketchLine_93")
538 SketchLine_68 = Sketch_9.addLine(58, -2, 58, 8)
539 SketchLine_68.setAuxiliary(True)
540 SketchConstraintCoincidence_103 = Sketch_9.setCoincident(SketchLine_65.endPoint(), SketchLine_68.startPoint())
541 SketchConstraintCoincidence_103.setName("SketchConstraintCoincidence_113")
542 SketchLine_69 = Sketch_9.addLine(53.99999482393354, 8, 50, 8)
543 SketchLine_69.setName("SketchLine_94")
544 SketchLine_69.result().setName("SketchLine_94")
545 SketchLine_70 = Sketch_9.addLine(58, 8, 50, 8)
546 SketchLine_70.setName("SketchLine_69")
547 SketchLine_70.result().setName("SketchLine_69")
548 SketchLine_70.setAuxiliary(True)
549 SketchConstraintCoincidence_104 = Sketch_9.setCoincident(SketchLine_68.endPoint(), SketchLine_70.startPoint())
550 SketchConstraintCoincidence_104.setName("SketchConstraintCoincidence_114")
551 SketchLine_71 = Sketch_9.addLine(50, 8, 49.99999999999999, 70)
552 SketchLine_71.setName("SketchLine_70")
553 SketchLine_71.result().setName("SketchLine_70")
554 SketchLine_71.setAuxiliary(True)
555 SketchConstraintCoincidence_105 = Sketch_9.setCoincident(SketchLine_70.endPoint(), SketchLine_71.startPoint())
556 SketchConstraintCoincidence_105.setName("SketchConstraintCoincidence_115")
557 SketchLine_72 = Sketch_9.addLine(49.99999999999999, 70, 15, 70)
558 SketchLine_72.setName("SketchLine_71")
559 SketchLine_72.result().setName("SketchLine_71")
560 SketchLine_72.setAuxiliary(True)
561 SketchConstraintCoincidence_106 = Sketch_9.setCoincident(SketchLine_71.endPoint(), SketchLine_72.startPoint())
562 SketchConstraintCoincidence_106.setName("SketchConstraintCoincidence_116")
563 SketchLine_73 = Sketch_9.addLine(15, 70, 15, 84)
564 SketchLine_73.setName("SketchLine_72")
565 SketchLine_73.result().setName("SketchLine_72")
566 SketchConstraintCoincidence_107 = Sketch_9.setCoincident(SketchLine_72.endPoint(), SketchLine_73.startPoint())
567 SketchConstraintCoincidence_107.setName("SketchConstraintCoincidence_117")
568 SketchLine_74 = Sketch_9.addLine(15, 84, 0, 84)
569 SketchLine_74.setName("SketchLine_73")
570 SketchLine_74.result().setName("SketchLine_73")
571 SketchConstraintCoincidence_108 = Sketch_9.setCoincident(SketchLine_73.endPoint(), SketchLine_74.startPoint())
572 SketchConstraintCoincidence_108.setName("SketchConstraintCoincidence_118")
573 SketchConstraintCoincidence_109 = Sketch_9.setCoincident(SketchLine_62.startPoint(), SketchLine_74.endPoint())
574 SketchConstraintCoincidence_109.setName("SketchConstraintCoincidence_119")
575 SketchLine_75 = Sketch_9.addLine(model.selection("EDGE", "PartSet/OX"))
576 SketchLine_75.setName("SketchLine_74")
577 SketchLine_75.result().setName("SketchLine_74")
578 SketchConstraintDistance_23 = Sketch_9.setDistance(SketchLine_65.endPoint(), SketchLine_75.result(), 2)
579 SketchConstraintDistance_23.setName("SketchConstraintDistance_25")
580 SketchConstraintDistance_24 = Sketch_9.setDistance(SketchLine_65.endPoint(), SketchLine_63.result(), 58)
581 SketchConstraintDistance_24.setName("SketchConstraintDistance_26")
582 SketchConstraintHorizontal_17 = Sketch_9.setHorizontal(SketchLine_65.result())
583 SketchConstraintVertical_15 = Sketch_9.setVertical(SketchLine_71.result())
584 SketchConstraintVertical_16 = Sketch_9.setVertical(SketchLine_73.result())
585 SketchConstraintVertical_17 = Sketch_9.setVertical(SketchLine_68.result())
586 SketchConstraintHorizontal_18 = Sketch_9.setHorizontal(SketchLine_74.result())
587 SketchConstraintHorizontal_19 = Sketch_9.setHorizontal(SketchLine_72.result())
588 SketchConstraintHorizontal_20 = Sketch_9.setHorizontal(SketchLine_70.result())
589 SketchConstraintDistance_25 = Sketch_9.setDistance(SketchLine_70.endPoint(), SketchLine_62.result(), 50)
590 SketchConstraintDistance_25.setName("SketchConstraintDistance_27")
591 SketchConstraintDistance_26 = Sketch_9.setDistance(SketchLine_71.endPoint(), SketchLine_75.result(), 70)
592 SketchConstraintDistance_26.setName("SketchConstraintDistance_28")
593 SketchConstraintDistance_27 = Sketch_9.setDistance(SketchLine_72.endPoint(), SketchLine_63.result(), 15)
594 SketchConstraintDistance_27.setName("SketchConstraintDistance_29")
595 SketchLine_76 = Sketch_9.addLine(model.selection("EDGE", "Sketch_5/Edge-SketchLine_32"))
596 SketchLine_76.setName("SketchLine_75")
597 SketchLine_76.result().setName("SketchLine_75")
598 SketchConstraintDistance_28 = Sketch_9.setDistance(SketchLine_62.startPoint(), SketchLine_76.result(), 2)
599 SketchConstraintDistance_28.setName("SketchConstraintDistance_30")
600 SketchConstraintDistance_29 = Sketch_9.setDistance(SketchLine_71.startPoint(), SketchLine_75.result(), 8)
601 SketchConstraintDistance_29.setName("SketchConstraintDistance_31")
602 SketchArc_8 = Sketch_9.addArc(44.00000000000001, 64.00000000000001, 50, 63.99999981522573, 44.0000002728486, 70, False)
603 SketchArc_8.setName("SketchArc_22")
604 SketchArc_8.result().setName("SketchArc_22")
605 SketchArc_8.results()[1].setName("SketchArc_22_2")
606 SketchConstraintCoincidence_110 = Sketch_9.setCoincident(SketchArc_8.startPoint(), SketchLine_64.endPoint())
607 SketchConstraintCoincidence_110.setName("SketchConstraintCoincidence_140")
608 SketchConstraintCoincidence_111 = Sketch_9.setCoincident(SketchArc_8.endPoint(), SketchLine_66.startPoint())
609 SketchConstraintCoincidence_111.setName("SketchConstraintCoincidence_141")
610 SketchConstraintTangent_14 = Sketch_9.setTangent(SketchArc_8.results()[1], SketchLine_64.result())
611 SketchConstraintTangent_14.setName("SketchConstraintTangent_26")
612 SketchConstraintTangent_15 = Sketch_9.setTangent(SketchArc_8.results()[1], SketchLine_66.result())
613 SketchConstraintTangent_15.setName("SketchConstraintTangent_27")
614 SketchConstraintCoincidence_112 = Sketch_9.setCoincident(SketchLine_71.startPoint(), SketchLine_64.startPoint())
615 SketchConstraintCoincidence_112.setName("SketchConstraintCoincidence_142")
616 SketchConstraintCoincidence_113 = Sketch_9.setCoincident(SketchLine_72.endPoint(), SketchLine_66.endPoint())
617 SketchConstraintCoincidence_113.setName("SketchConstraintCoincidence_143")
618 SketchConstraintCoincidence_114 = Sketch_9.setCoincident(SketchLine_64.endPoint(), SketchLine_71.result())
619 SketchConstraintCoincidence_114.setName("SketchConstraintCoincidence_144")
620 SketchConstraintCoincidence_115 = Sketch_9.setCoincident(SketchLine_66.startPoint(), SketchLine_72.result())
621 SketchConstraintCoincidence_115.setName("SketchConstraintCoincidence_145")
622 SketchArc_9 = Sketch_9.addArc(54, 4, 58.00000000000001, 3.999997221073, 53.99999482393354, 8, False)
623 SketchArc_9.setName("SketchArc_23")
624 SketchArc_9.result().setName("SketchArc_23")
625 SketchArc_9.results()[1].setName("SketchArc_23_2")
626 SketchConstraintCoincidence_116 = Sketch_9.setCoincident(SketchArc_9.startPoint(), SketchLine_67.endPoint())
627 SketchConstraintCoincidence_116.setName("SketchConstraintCoincidence_146")
628 SketchConstraintCoincidence_117 = Sketch_9.setCoincident(SketchArc_9.endPoint(), SketchLine_69.startPoint())
629 SketchConstraintCoincidence_117.setName("SketchConstraintCoincidence_147")
630 SketchConstraintTangent_16 = Sketch_9.setTangent(SketchArc_9.results()[1], SketchLine_67.result())
631 SketchConstraintTangent_16.setName("SketchConstraintTangent_28")
632 SketchConstraintTangent_17 = Sketch_9.setTangent(SketchArc_9.results()[1], SketchLine_69.result())
633 SketchConstraintTangent_17.setName("SketchConstraintTangent_29")
634 SketchConstraintCoincidence_118 = Sketch_9.setCoincident(SketchLine_68.startPoint(), SketchLine_67.startPoint())
635 SketchConstraintCoincidence_118.setName("SketchConstraintCoincidence_148")
636 SketchConstraintCoincidence_119 = Sketch_9.setCoincident(SketchLine_70.endPoint(), SketchLine_69.endPoint())
637 SketchConstraintCoincidence_119.setName("SketchConstraintCoincidence_149")
638 SketchConstraintCoincidence_120 = Sketch_9.setCoincident(SketchLine_67.endPoint(), SketchLine_68.result())
639 SketchConstraintCoincidence_120.setName("SketchConstraintCoincidence_150")
640 SketchConstraintCoincidence_121 = Sketch_9.setCoincident(SketchLine_69.startPoint(), SketchLine_70.result())
641 SketchConstraintCoincidence_121.setName("SketchConstraintCoincidence_151")
642 SketchConstraintRadius_9 = Sketch_9.setRadius(SketchArc_8.results()[1], 6)
643 SketchConstraintRadius_9.setName("SketchConstraintRadius_16")
644 SketchConstraintRadius_10 = Sketch_9.setRadius(SketchArc_9.results()[1], 4)
645 SketchConstraintRadius_10.setName("SketchConstraintRadius_17")
646 model.do()
647 Sketch_10 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/XOY"))
648 SketchLine_77 = Sketch_10.addLine(64, 20, 89, 20)
649 SketchLine_77.setName("SketchLine_76")
650 SketchLine_77.result().setName("SketchLine_76")
651 SketchPoint_4 = Sketch_10.addPoint(model.selection("VERTEX", "Sketch_4/Vertex-SketchLine_22s-SketchLine_27e-SketchLine_25e"))
652 SketchConstraintCoincidence_122 = Sketch_10.setCoincident(SketchLine_77.startPoint(), SketchPoint_4.result())
653 SketchConstraintCoincidence_122.setName("SketchConstraintCoincidence_120")
654 SketchPoint_5 = Sketch_10.addPoint(model.selection("VERTEX", "Sketch_1/Vertex-SketchLine_1s-SketchLine_8e-SketchLine_4e"))
655 SketchConstraintCoincidence_123 = Sketch_10.setCoincident(SketchLine_77.endPoint(), SketchPoint_5.result())
656 SketchConstraintCoincidence_123.setName("SketchConstraintCoincidence_121")
657 SketchLine_78 = Sketch_10.addLine(64, -20, 89, -20)
658 SketchLine_78.setName("SketchLine_77")
659 SketchLine_78.result().setName("SketchLine_77")
660 SketchPoint_6 = Sketch_10.addPoint(model.selection("VERTEX", "RevolutionFuse_3_1/Modfied_12&RevolutionFuse_1_1/Modfied_5&RevolutionFuse_3_1/Modfied_1divided_f_2&RevolutionFuse_1_1/Modfied_10"))
661 SketchConstraintCoincidence_124 = Sketch_10.setCoincident(SketchLine_78.startPoint(), SketchPoint_6.result())
662 SketchConstraintCoincidence_124.setName("SketchConstraintCoincidence_122")
663 SketchPoint_7 = Sketch_10.addPoint(model.selection("VERTEX", "Sketch_2/Vertex-SketchLine_9s-SketchLine_14e-SketchLine_12e"))
664 SketchConstraintCoincidence_125 = Sketch_10.setCoincident(SketchLine_78.endPoint(), SketchPoint_7.result())
665 SketchConstraintCoincidence_125.setName("SketchConstraintCoincidence_123")
666 SketchArc_10 = Sketch_10.addArc(89.00000104846708, 1.669244441022778e-015, 89, -20, 89, 20, False)
667 SketchArc_10.setName("SketchArc_13")
668 SketchArc_10.result().setName("SketchArc_13")
669 SketchArc_10.results()[1].setName("SketchArc_13_2")
670 SketchConstraintCoincidence_126 = Sketch_10.setCoincident(SketchArc_10.startPoint(), SketchLine_78.endPoint())
671 SketchConstraintCoincidence_126.setName("SketchConstraintCoincidence_124")
672 SketchConstraintTangent_18 = Sketch_10.setTangent(SketchArc_10.results()[1], SketchLine_78.result())
673 SketchConstraintTangent_18.setName("SketchConstraintTangent_23")
674 SketchConstraintCoincidence_127 = Sketch_10.setCoincident(SketchLine_77.endPoint(), SketchArc_10.endPoint())
675 SketchConstraintCoincidence_127.setName("SketchConstraintCoincidence_125")
676 SketchConstraintCoincidence_128 = Sketch_10.setCoincident(SketchPoint_5.coordinates(), SketchArc_10.endPoint())
677 SketchConstraintCoincidence_128.setName("SketchConstraintCoincidence_126")
678 SketchArc_11 = Sketch_10.addArc(63.9999997725999, -23.01134810362887, 64, -20, 61.15622559702544, -22.02080994708719, False)
679 SketchArc_11.setName("SketchArc_14")
680 SketchArc_11.result().setName("SketchArc_14")
681 SketchArc_11.results()[1].setName("SketchArc_14_2")
682 SketchConstraintCoincidence_129 = Sketch_10.setCoincident(SketchArc_11.startPoint(), SketchLine_78.startPoint())
683 SketchConstraintCoincidence_129.setName("SketchConstraintCoincidence_127")
684 SketchConstraintTangent_19 = Sketch_10.setTangent(SketchArc_11.results()[1], SketchLine_78.result())
685 SketchConstraintTangent_19.setName("SketchConstraintTangent_24")
686 SketchPoint_8 = Sketch_10.addPoint(model.selection("VERTEX", "RevolutionFuse_3_1/Modfied_1divided_f_2&RevolutionFuse_1_1/Modfied_10&RevolutionFuse_3_1/Modfied_8"))
687 SketchConstraintCoincidence_130 = Sketch_10.setCoincident(SketchArc_11.endPoint(), SketchPoint_8.result())
688 SketchConstraintCoincidence_130.setName("SketchConstraintCoincidence_128")
689 SketchArc_12 = Sketch_10.addArc(64.00001789135865, 23.01137360115889, 64, 20, 61.15622559702543, 22.02080994708722, True)
690 SketchArc_12.setName("SketchArc_15")
691 SketchArc_12.result().setName("SketchArc_15")
692 SketchArc_12.results()[1].setName("SketchArc_15_2")
693 SketchConstraintCoincidence_131 = Sketch_10.setCoincident(SketchArc_12.startPoint(), SketchLine_77.startPoint())
694 SketchConstraintCoincidence_131.setName("SketchConstraintCoincidence_129")
695 SketchConstraintTangent_20 = Sketch_10.setTangent(SketchArc_12.results()[1], SketchLine_77.result())
696 SketchConstraintTangent_20.setName("SketchConstraintTangent_25")
697 SketchPoint_9 = Sketch_10.addPoint(model.selection("VERTEX", "RevolutionFuse_3_1/Modfied_1divided_f_1&RevolutionFuse_2_1/Modfied_11&RevolutionFuse_3_1/Modfied_7"))
698 SketchConstraintCoincidence_132 = Sketch_10.setCoincident(SketchArc_12.endPoint(), SketchPoint_9.result())
699 SketchConstraintCoincidence_132.setName("SketchConstraintCoincidence_130")
700 SketchLine_79 = Sketch_10.addLine(61.15622559702543, 22.02080994708722, 59.81204392543111, 22.0208099470871)
701 SketchLine_79.setName("SketchLine_78")
702 SketchLine_79.result().setName("SketchLine_78")
703 SketchConstraintCoincidence_133 = Sketch_10.setCoincident(SketchArc_12.endPoint(), SketchLine_79.startPoint())
704 SketchConstraintCoincidence_133.setName("SketchConstraintCoincidence_131")
705 SketchConstraintCoincidence_134 = Sketch_10.setCoincident(SketchPoint_9.coordinates(), SketchLine_79.startPoint())
706 SketchConstraintCoincidence_134.setName("SketchConstraintCoincidence_132")
707 SketchLine_80 = Sketch_10.addLine(59.81204392543111, 22.0208099470871, 59.81204392543111, -22.02080994708712)
708 SketchLine_80.setName("SketchLine_79")
709 SketchLine_80.result().setName("SketchLine_79")
710 SketchConstraintCoincidence_135 = Sketch_10.setCoincident(SketchLine_79.endPoint(), SketchLine_80.startPoint())
711 SketchConstraintCoincidence_135.setName("SketchConstraintCoincidence_133")
712 SketchLine_81 = Sketch_10.addLine(61.15622559702544, -22.02080994708719, 59.81204392543111, -22.02080994708712)
713 SketchLine_81.setName("SketchLine_80")
714 SketchLine_81.result().setName("SketchLine_80")
715 SketchConstraintCoincidence_136 = Sketch_10.setCoincident(SketchArc_11.endPoint(), SketchLine_81.startPoint())
716 SketchConstraintCoincidence_136.setName("SketchConstraintCoincidence_134")
717 SketchConstraintCoincidence_137 = Sketch_10.setCoincident(SketchPoint_8.coordinates(), SketchLine_81.startPoint())
718 SketchConstraintCoincidence_137.setName("SketchConstraintCoincidence_135")
719 SketchConstraintCoincidence_138 = Sketch_10.setCoincident(SketchLine_80.endPoint(), SketchLine_81.endPoint())
720 SketchConstraintCoincidence_138.setName("SketchConstraintCoincidence_136")
721 SketchConstraintParallel_3 = Sketch_10.setParallel(SketchLine_78.result(), SketchLine_81.result())
722 SketchConstraintParallel_4 = Sketch_10.setParallel(SketchLine_77.result(), SketchLine_79.result())
723 SketchConstraintPerpendicular_1 = Sketch_10.setPerpendicular(SketchLine_80.result(), SketchLine_77.result())
724 SketchPoint_10 = Sketch_10.addPoint(model.selection("VERTEX", "Sketch_6/Vertex-SketchPoint_3"))
725 SketchMultiRotation_1_objects = [SketchArc_10.results()[1], SketchLine_77.result(), SketchLine_78.result(), SketchArc_12.results()[1], SketchLine_79.result(), SketchLine_80.result(), SketchLine_81.result(), SketchArc_11.results()[1]]
726 SketchMultiRotation_1 = Sketch_10.addRotation(SketchMultiRotation_1_objects, SketchPoint_10.coordinates(), 120, 3)
727 [SketchArc_13, SketchArc_14, SketchLine_82, SketchLine_83, SketchLine_84, SketchLine_85, SketchArc_15, SketchArc_16, SketchLine_86, SketchLine_87, SketchLine_88, SketchLine_89, SketchLine_90, SketchLine_91, SketchArc_17, SketchArc_18] = SketchMultiRotation_1.rotated()
728 SketchArc_18.setName("SketchArc_21")
729 SketchArc_18.result().setName("SketchArc_21")
730 SketchArc_18.results()[1].setName("SketchArc_21_2")
731 SketchArc_17.setName("SketchArc_18")
732 SketchArc_17.result().setName("SketchArc_18")
733 SketchArc_17.results()[1].setName("SketchArc_18_2")
734 SketchLine_91.setName("SketchLine_90")
735 SketchLine_91.result().setName("SketchLine_90")
736 SketchLine_90.setName("SketchLine_85")
737 SketchLine_90.result().setName("SketchLine_85")
738 SketchLine_88.setName("SketchLine_84")
739 SketchLine_88.result().setName("SketchLine_84")
740 SketchLine_87.setName("SketchLine_88")
741 SketchLine_87.result().setName("SketchLine_88")
742 SketchLine_86.setName("SketchLine_83")
743 SketchLine_86.result().setName("SketchLine_83")
744 SketchArc_16.setName("SketchArc_20")
745 SketchArc_16.result().setName("SketchArc_20")
746 SketchArc_16.results()[1].setName("SketchArc_20_2")
747 SketchArc_15.setName("SketchArc_17")
748 SketchArc_15.result().setName("SketchArc_17")
749 SketchArc_15.results()[1].setName("SketchArc_17_2")
750 SketchLine_85.setName("SketchLine_87")
751 SketchLine_85.result().setName("SketchLine_87")
752 SketchLine_84.setName("SketchLine_82")
753 SketchLine_84.result().setName("SketchLine_82")
754 SketchLine_83.setName("SketchLine_86")
755 SketchLine_83.result().setName("SketchLine_86")
756 SketchLine_82.setName("SketchLine_81")
757 SketchLine_82.result().setName("SketchLine_81")
758 SketchArc_14.setName("SketchArc_19")
759 SketchArc_14.result().setName("SketchArc_19")
760 SketchArc_14.results()[1].setName("SketchArc_19_2")
761 SketchArc_13.setName("SketchArc_16")
762 SketchArc_13.result().setName("SketchArc_16")
763 SketchArc_13.results()[1].setName("SketchArc_16_2")
764 model.do()
765 ExtrusionFuse_3 = model.addExtrusionFuse(Part_1_doc, [model.selection("FACE", "Sketch_10/Face-SketchArc_16_2f-SketchLine_81r-SketchLine_82f-SketchArc_17_2r-SketchLine_83f-SketchLine_84f-SketchLine_85r-SketchArc_18_2r"), model.selection("FACE", "Sketch_10/Face-SketchArc_19_2f-SketchLine_86r-SketchLine_87f-SketchArc_20_2r-SketchLine_88f-SketchLine_89f-SketchLine_90r-SketchArc_21_2r")], model.selection(), 20, 0, [model.selection("SOLID", "ExtrusionCut_2_1")])
766 Sketch_11 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/XOY"))
767 SketchCircle_2 = Sketch_11.addCircle(89, 0, 6)
768 SketchPoint_11 = Sketch_11.addPoint(model.selection("VERTEX", "Sketch_2/Vertex-SketchPoint_1-SketchLine_10s-SketchLine_9e"))
769 SketchConstraintCoincidence_139 = Sketch_11.setCoincident(SketchCircle_2.center(), SketchPoint_11.result())
770 SketchConstraintCoincidence_139.setName("SketchConstraintCoincidence_137")
771 SketchConstraintRadius_11 = Sketch_11.setRadius(SketchCircle_2.results()[1], 6)
772 SketchConstraintRadius_11.setName("SketchConstraintRadius_14")
773 SketchCircle_3 = Sketch_11.addCircle(89, 0, 12)
774 SketchConstraintCoincidence_140 = Sketch_11.setCoincident(SketchCircle_2.center(), SketchCircle_3.center())
775 SketchConstraintCoincidence_140.setName("SketchConstraintCoincidence_138")
776 SketchConstraintCoincidence_141 = Sketch_11.setCoincident(SketchPoint_11.coordinates(), SketchCircle_3.center())
777 SketchConstraintCoincidence_141.setName("SketchConstraintCoincidence_139")
778 SketchConstraintRadius_12 = Sketch_11.setRadius(SketchCircle_3.results()[1], 12)
779 SketchConstraintRadius_12.setName("SketchConstraintRadius_15")
780 SketchPoint_12 = Sketch_11.addPoint(model.selection("VERTEX", "PartSet/Origin"))
781 SketchMultiRotation_2 = Sketch_11.addRotation([SketchCircle_3.results()[1], SketchCircle_2.results()[1]], SketchPoint_12.coordinates(), 120, 3)
782 [SketchCircle_4, SketchCircle_5, SketchCircle_6, SketchCircle_7] = SketchMultiRotation_2.rotated()
783 model.do()
784 RevolutionCut_1 = model.addRevolutionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_9")], model.selection("EDGE", "PartSet/OZ"), 0, 360, [model.selection("SOLID", "ExtrusionFuse_3_1")])
785 ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_11/Wire-SketchCircle_4_2f"), model.selection("WIRE", "Sketch_11/Wire-SketchCircle_3_2f"), model.selection("WIRE", "Sketch_11/Wire-SketchCircle_5_2f")], model.selection(), 30, -15, [model.selection("SOLID", "RevolutionCut_1_1")])
786 ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_11/Wire-SketchCircle_2_2f"), model.selection("FACE", "Sketch_11/Face-SketchCircle_6_2f"), model.selection("WIRE", "Sketch_11/Wire-SketchCircle_7_2f")], model.selection(), 30, 2, [model.selection("SOLID", "ExtrusionCut_3_1")])
787
788 # Test reexecution after parameter change
789 Parameter_R.setValue(5)
790 model.do()
791 model.testResultsVolumes(ExtrusionCut_4, [502616.749082866765093058347702026])
792 Parameter_R.setValue(3)
793 model.end()
794
795 from GeomAPI import GeomAPI_Shape
796
797 model.testNbResults(ExtrusionCut_4, 1)
798 model.testNbSubResults(ExtrusionCut_4, [0])
799 model.testNbSubShapes(ExtrusionCut_4, GeomAPI_Shape.SOLID, [1])
800 model.testNbSubShapes(ExtrusionCut_4, GeomAPI_Shape.FACE, [81])
801 model.testNbSubShapes(ExtrusionCut_4, GeomAPI_Shape.EDGE, [406])
802 model.testNbSubShapes(ExtrusionCut_4, GeomAPI_Shape.VERTEX, [812])
803 model.testResultsVolumes(ExtrusionCut_4, [502903.236060981987975537776947021])
804
805 assert(model.checkPythonDump())