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