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