]> SALOME platform Git repositories - modules/shaper.git/blob - test.models/piece_02.py
Salome HOME
Merge remote-tracking branch 'origin/cbr/export_to_geom_via_xao'
[modules/shaper.git] / test.models / piece_02.py
1 # -*- coding: utf-8 -*-
2
3 ## Copyright (C) 2014-2017  CEA/DEN, EDF R&D
4 ##
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.
9 ##
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.
14 ##
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
18 ##
19 ## See http:##www.salome-platform.org/ or
20 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
21 ##
22
23 from salome.shaper import model
24
25 model.begin()
26 partSet = model.moduleDocument()
27 Part_1 = model.addPart(partSet)
28 Part_1_doc = Part_1.document()
29 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())
72 model.do()
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)
130 model.do()
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_1.result().setName("ExtrusionCut_1_1")
133 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")])
134 ExtrusionCut_2.result().setName("ExtrusionCut_2_1")
135 Sketch_3 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ"))
136 SketchCircle_5 = Sketch_3.addCircle(20.99999999999342, 22.99999999999327, 19)
137 SketchConstraintRadius_4 = Sketch_3.setRadius(SketchCircle_5.results()[1], 19)
138 SketchLine_13 = Sketch_3.addLine(41.99999999999999, 22.99999999998655, 0, 22.99999999998656)
139 SketchLine_13.setName("SketchLine_14")
140 SketchLine_13.result().setName("SketchLine_14")
141 SketchLine_13.setAuxiliary(True)
142 SketchLine_14 = Sketch_3.addLine(model.selection("EDGE", "ExtrusionCut_2_1/Modfied_2&Extrusion_1_1/Generated_Face_5"))
143 SketchLine_14.setName("SketchLine_15")
144 SketchLine_14.result().setName("SketchLine_15")
145 SketchConstraintCoincidence_26 = Sketch_3.setCoincident(SketchLine_13.startPoint(), SketchLine_14.result())
146 SketchConstraintCoincidence_26.setName("SketchConstraintCoincidence_27")
147 SketchLine_15 = Sketch_3.addLine(model.selection("EDGE", "Extrusion_1_1/Generated_Face_1&ExtrusionCut_2_1/Modfied_2"))
148 SketchLine_15.setName("SketchLine_16")
149 SketchLine_15.result().setName("SketchLine_16")
150 SketchConstraintCoincidence_27 = Sketch_3.setCoincident(SketchLine_13.endPoint(), SketchLine_15.result())
151 SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_28")
152 SketchLine_16 = Sketch_3.addLine(21, 45.99999999998655, 20.99999999998684, 0)
153 SketchLine_16.setName("SketchLine_17")
154 SketchLine_16.result().setName("SketchLine_17")
155 SketchLine_16.setAuxiliary(True)
156 SketchLine_17 = Sketch_3.addLine(model.selection("EDGE", "ExtrusionCut_2_1/Modfied_2&Extrusion_1_1/Generated_Face_3"))
157 SketchLine_17.setName("SketchLine_18")
158 SketchLine_17.result().setName("SketchLine_18")
159 SketchConstraintCoincidence_28 = Sketch_3.setCoincident(SketchLine_16.startPoint(), SketchLine_17.result())
160 SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_29")
161 SketchLine_18 = Sketch_3.addLine(model.selection("EDGE", "Sketch_1/Edge-SketchLine_3"))
162 SketchLine_18.setName("SketchLine_19")
163 SketchLine_18.result().setName("SketchLine_19")
164 SketchConstraintCoincidence_29 = Sketch_3.setCoincident(SketchLine_16.endPoint(), SketchLine_18.result())
165 SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_30")
166 SketchConstraintMiddle_5 = Sketch_3.setMiddlePoint(SketchLine_16.startPoint(), SketchLine_17.result())
167 SketchConstraintMiddle_6 = Sketch_3.setMiddlePoint(SketchLine_16.endPoint(), SketchLine_18.result())
168 SketchConstraintMiddle_7 = Sketch_3.setMiddlePoint(SketchLine_13.endPoint(), SketchLine_15.result())
169 SketchConstraintMiddle_8 = Sketch_3.setMiddlePoint(SketchLine_13.startPoint(), SketchLine_14.result())
170 SketchPoint_2 = Sketch_3.addPoint(20.99999999999342, 22.99999999999327)
171 SketchConstraintCoincidence_30 = Sketch_3.setCoincident(SketchPoint_2.coordinates(), SketchLine_16.result())
172 SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_31")
173 SketchConstraintMiddle_9 = Sketch_3.setMiddlePoint(SketchLine_16.result(), SketchPoint_2.coordinates())
174 SketchConstraintCoincidence_31 = Sketch_3.setCoincident(SketchCircle_5.center(), SketchPoint_2.coordinates())
175 SketchConstraintCoincidence_31.setName("SketchConstraintCoincidence_32")
176 SketchCircle_6 = Sketch_3.addCircle(28.99999999999342, 22.99999999998655, 2.5)
177 SketchConstraintCoincidence_32 = Sketch_3.setCoincident(SketchLine_13.result(), SketchCircle_6.center())
178 SketchConstraintCoincidence_32.setName("SketchConstraintCoincidence_33")
179 SketchCircle_7 = Sketch_3.addCircle(12.99999999999342, 22.99999999998656, 2.5)
180 SketchConstraintCoincidence_33 = Sketch_3.setCoincident(SketchLine_13.result(), SketchCircle_7.center())
181 SketchConstraintCoincidence_33.setName("SketchConstraintCoincidence_34")
182 SketchConstraintEqual_6 = Sketch_3.setEqual(SketchCircle_7.results()[1], SketchCircle_6.results()[1])
183 SketchConstraintRadius_5 = Sketch_3.setRadius(SketchCircle_7.results()[1], 2.5)
184 SketchConstraintDistance_4 = Sketch_3.setDistance(SketchCircle_6.center(), SketchCircle_7.center(), 16)
185 SketchConstraintDistance_5 = Sketch_3.setDistance(SketchCircle_6.center(), SketchLine_16.result(), 8)
186 model.do()
187 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")])
188 ExtrusionCut_3.result().setName("ExtrusionCut_3_1")
189 Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face_3"))
190 SketchProjection_1 = Sketch_4.addProjection(model.selection("EDGE", "Extrusion_1_1/Generated_Face_1&Extrusion_1_1/Generated_Face_2"))
191 SketchLine_19 = SketchProjection_1.createdFeature()
192 SketchLine_19.setName("SketchLine_20")
193 SketchLine_19.result().setName("SketchLine_20")
194 SketchProjection_2 = Sketch_4.addProjection(model.selection("EDGE", "Extrusion_1_1/Generated_Face_5&Extrusion_1_1/Generated_Face_4"))
195 SketchLine_20 = SketchProjection_2.createdFeature()
196 SketchLine_20.setName("SketchLine_21")
197 SketchLine_20.result().setName("SketchLine_21")
198 SketchLine_21 = Sketch_4.addLine(4.999999999999999, -28, 37, -28)
199 SketchLine_21.setName("SketchLine_22")
200 SketchLine_21.result().setName("SketchLine_22")
201 SketchLine_22 = Sketch_4.addLine(model.selection("EDGE", "Extrusion_1_1/Generated_Face_2&Extrusion_1_1/Generated_Face_3"))
202 SketchLine_22.setName("SketchLine_23")
203 SketchLine_22.result().setName("SketchLine_23")
204 SketchConstraintCoincidence_34 = Sketch_4.setCoincident(SketchLine_21.startPoint(), SketchLine_22.result())
205 SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_35")
206 SketchLine_23 = Sketch_4.addLine(model.selection("EDGE", "Extrusion_1_1/Generated_Face_3&Extrusion_1_1/Generated_Face_4"))
207 SketchLine_23.setName("SketchLine_24")
208 SketchLine_23.result().setName("SketchLine_24")
209 SketchConstraintCoincidence_35 = Sketch_4.setCoincident(SketchLine_21.endPoint(), SketchLine_23.result())
210 SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_36")
211 SketchLine_24 = Sketch_4.addLine(4.999999999999999, -48, 37, -48)
212 SketchLine_24.setName("SketchLine_25")
213 SketchLine_24.result().setName("SketchLine_25")
214 SketchConstraintCoincidence_36 = Sketch_4.setCoincident(SketchLine_24.startPoint(), SketchLine_22.result())
215 SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_37")
216 SketchConstraintCoincidence_37 = Sketch_4.setCoincident(SketchLine_24.endPoint(), SketchLine_23.result())
217 SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_38")
218 SketchConstraintHorizontal_3 = Sketch_4.setHorizontal(SketchLine_21.result())
219 SketchConstraintHorizontal_4 = Sketch_4.setHorizontal(SketchLine_24.result())
220 SketchLine_25 = Sketch_4.addLine(3.593262427359596e-30, -33, 0, -43)
221 SketchLine_25.setName("SketchLine_26")
222 SketchLine_25.result().setName("SketchLine_26")
223 SketchConstraintCoincidence_38 = Sketch_4.setCoincident(SketchLine_25.startPoint(), SketchLine_19.result())
224 SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_39")
225 SketchConstraintCoincidence_39 = Sketch_4.setCoincident(SketchLine_25.endPoint(), SketchLine_19.result())
226 SketchConstraintCoincidence_39.setName("SketchConstraintCoincidence_40")
227 SketchLine_26 = Sketch_4.addLine(42, -33, 42, -43)
228 SketchLine_26.setName("SketchLine_27")
229 SketchLine_26.result().setName("SketchLine_27")
230 SketchConstraintCoincidence_40 = Sketch_4.setCoincident(SketchLine_26.startPoint(), SketchLine_20.result())
231 SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_41")
232 SketchConstraintCoincidence_41 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchLine_20.result())
233 SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_42")
234 SketchArc_5 = Sketch_4.addArc(5, -33, 3.593262427359596e-30, -33, 4.999999999999999, -28, True)
235 SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_25.startPoint(), SketchArc_5.startPoint())
236 SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_43")
237 SketchConstraintTangent_9 = Sketch_4.setTangent(SketchLine_25.result(), SketchArc_5.results()[1])
238 SketchArc_6 = Sketch_4.addArc(5, -43, 0, -43, 4.999999999999999, -48, False)
239 SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchLine_25.endPoint(), SketchArc_6.startPoint())
240 SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_44")
241 SketchConstraintTangent_10 = Sketch_4.setTangent(SketchLine_25.result(), SketchArc_6.results()[1])
242 SketchArc_7 = Sketch_4.addArc(37, -33, 37, -28, 42, -33, True)
243 SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_21.endPoint(), SketchArc_7.startPoint())
244 SketchConstraintCoincidence_44.setName("SketchConstraintCoincidence_45")
245 SketchConstraintTangent_11 = Sketch_4.setTangent(SketchLine_21.result(), SketchArc_7.results()[1])
246 SketchArc_8 = Sketch_4.addArc(37, -43, 37, -48, 42, -43, False)
247 SketchConstraintCoincidence_45 = Sketch_4.setCoincident(SketchLine_24.endPoint(), SketchArc_8.startPoint())
248 SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_46")
249 SketchConstraintTangent_12 = Sketch_4.setTangent(SketchLine_24.result(), SketchArc_8.results()[1])
250 SketchConstraintDistance_6 = Sketch_4.setDistance(SketchLine_21.startPoint(), SketchLine_24.startPoint(), 20)
251 SketchConstraintEqual_7 = Sketch_4.setEqual(SketchLine_26.result(), SketchLine_25.result())
252 SketchConstraintCoincidence_46 = Sketch_4.setCoincident(SketchArc_5.endPoint(), SketchLine_21.startPoint())
253 SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_47")
254 SketchConstraintCoincidence_47 = Sketch_4.setCoincident(SketchLine_26.startPoint(), SketchArc_7.endPoint())
255 SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_48")
256 SketchConstraintCoincidence_48 = Sketch_4.setCoincident(SketchLine_26.endPoint(), SketchArc_8.endPoint())
257 SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_49")
258 SketchConstraintCoincidence_49 = Sketch_4.setCoincident(SketchLine_24.startPoint(), SketchArc_6.endPoint())
259 SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_50")
260 SketchConstraintTangent_13 = Sketch_4.setTangent(SketchArc_5.results()[1], SketchLine_21.result())
261 SketchConstraintTangent_14 = Sketch_4.setTangent(SketchArc_7.results()[1], SketchLine_26.result())
262 SketchConstraintTangent_15 = Sketch_4.setTangent(SketchArc_8.results()[1], SketchLine_26.result())
263 SketchLine_27 = Sketch_4.addLine(0, -38, 42, -38)
264 SketchLine_27.setName("SketchLine_28")
265 SketchLine_27.result().setName("SketchLine_28")
266 SketchLine_27.setAuxiliary(True)
267 SketchConstraintCoincidence_50 = Sketch_4.setCoincident(SketchLine_27.startPoint(), SketchLine_19.result())
268 SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_51")
269 SketchConstraintCoincidence_51 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_20.result())
270 SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_52")
271 SketchConstraintMiddle_10 = Sketch_4.setMiddlePoint(SketchLine_27.endPoint(), SketchLine_20.result())
272 SketchConstraintMiddle_11 = Sketch_4.setMiddlePoint(SketchLine_27.startPoint(), SketchLine_19.result())
273 SketchConstraintMiddle_12 = Sketch_4.setMiddlePoint(SketchLine_25.result(), SketchLine_27.startPoint())
274 model.do()
275 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)
276 Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_2_1/To_Face_1"))
277 SketchLine_28 = Sketch_5.addLine(5.000000000000001, -46, 37.00000000000001, -46)
278 SketchLine_28.setName("SketchLine_29")
279 SketchLine_28.result().setName("SketchLine_29")
280 SketchLine_29 = Sketch_5.addLine(5, -30, 37.00000000000001, -30)
281 SketchLine_29.setName("SketchLine_30")
282 SketchLine_29.result().setName("SketchLine_30")
283 SketchLine_30 = Sketch_5.addLine(2, -43, 2, -33)
284 SketchLine_30.setName("SketchLine_31")
285 SketchLine_30.result().setName("SketchLine_31")
286 SketchLine_31 = Sketch_5.addLine(40.00000000000001, -33, 40.00000000000001, -43)
287 SketchLine_31.setName("SketchLine_32")
288 SketchLine_31.result().setName("SketchLine_32")
289 SketchConstraintHorizontal_5 = Sketch_5.setHorizontal(SketchLine_29.result())
290 SketchConstraintHorizontal_6 = Sketch_5.setHorizontal(SketchLine_28.result())
291 SketchConstraintVertical_2 = Sketch_5.setVertical(SketchLine_30.result())
292 SketchConstraintVertical_3 = Sketch_5.setVertical(SketchLine_31.result())
293 SketchConstraintEqual_8 = Sketch_5.setEqual(SketchLine_29.result(), SketchLine_28.result())
294 SketchConstraintEqual_9 = Sketch_5.setEqual(SketchLine_31.result(), SketchLine_30.result())
295 SketchLine_32 = Sketch_5.addLine(model.selection("EDGE", "Extrusion_2_1/Generated_Face_7&Extrusion_2_1/To_Face_1"))
296 SketchLine_32.setName("SketchLine_33")
297 SketchLine_32.result().setName("SketchLine_33")
298 SketchConstraintDistance_7 = Sketch_5.setDistance(SketchLine_30.endPoint(), SketchLine_32.result(), 2)
299 SketchLine_33 = Sketch_5.addLine(model.selection("EDGE", "Extrusion_2_1/Generated_Face_3&Extrusion_2_1/To_Face_1"))
300 SketchLine_33.setName("SketchLine_34")
301 SketchLine_33.result().setName("SketchLine_34")
302 SketchConstraintDistance_8 = Sketch_5.setDistance(SketchLine_31.startPoint(), SketchLine_33.result(), 2)
303 SketchLine_34 = Sketch_5.addLine(model.selection("EDGE", "Extrusion_2_1/Generated_Face_1&Extrusion_2_1/To_Face_1"))
304 SketchLine_34.setName("SketchLine_35")
305 SketchLine_34.result().setName("SketchLine_35")
306 SketchConstraintDistance_9 = Sketch_5.setDistance(SketchLine_29.startPoint(), SketchLine_34.result(), 2)
307 SketchLine_35 = Sketch_5.addLine(model.selection("EDGE", "Extrusion_2_1/Generated_Face_5&Extrusion_2_1/To_Face_1"))
308 SketchLine_35.setName("SketchLine_36")
309 SketchLine_35.result().setName("SketchLine_36")
310 SketchConstraintDistance_10 = Sketch_5.setDistance(SketchLine_28.startPoint(), SketchLine_35.result(), 2)
311 SketchArc_9 = Sketch_5.addArc(5, -33, 2, -33, 5, -30, True)
312 SketchConstraintCoincidence_52 = Sketch_5.setCoincident(SketchLine_30.endPoint(), SketchArc_9.startPoint())
313 SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_53")
314 SketchConstraintTangent_16 = Sketch_5.setTangent(SketchLine_30.result(), SketchArc_9.results()[1])
315 SketchArc_10 = Sketch_5.addArc(5, -43, 2, -43, 5.000000000000001, -46, False)
316 SketchConstraintCoincidence_53 = Sketch_5.setCoincident(SketchLine_30.startPoint(), SketchArc_10.startPoint())
317 SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_54")
318 SketchConstraintTangent_17 = Sketch_5.setTangent(SketchLine_30.result(), SketchArc_10.results()[1])
319 SketchArc_11 = Sketch_5.addArc(37.00000000000001, -33, 37.00000000000001, -30, 40.00000000000001, -33, True)
320 SketchConstraintCoincidence_54 = Sketch_5.setCoincident(SketchLine_29.endPoint(), SketchArc_11.startPoint())
321 SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_55")
322 SketchConstraintTangent_18 = Sketch_5.setTangent(SketchLine_29.result(), SketchArc_11.results()[1])
323 SketchArc_12 = Sketch_5.addArc(37.00000000000001, -43, 37.00000000000001, -46, 40.00000000000001, -43, False)
324 SketchConstraintCoincidence_55 = Sketch_5.setCoincident(SketchLine_28.endPoint(), SketchArc_12.startPoint())
325 SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_56")
326 SketchConstraintTangent_19 = Sketch_5.setTangent(SketchLine_28.result(), SketchArc_12.results()[1])
327 SketchConstraintCoincidence_56 = Sketch_5.setCoincident(SketchArc_9.endPoint(), SketchLine_29.startPoint())
328 SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_57")
329 SketchConstraintCoincidence_57 = Sketch_5.setCoincident(SketchArc_11.endPoint(), SketchLine_31.startPoint())
330 SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_58")
331 SketchConstraintCoincidence_58 = Sketch_5.setCoincident(SketchLine_31.endPoint(), SketchArc_12.endPoint())
332 SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_59")
333 SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchArc_10.endPoint(), SketchLine_28.startPoint())
334 SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_60")
335 SketchConstraintEqual_10 = Sketch_5.setEqual(SketchArc_11.results()[1], SketchArc_9.results()[1])
336 SketchConstraintEqual_11 = Sketch_5.setEqual(SketchArc_10.results()[1], SketchArc_12.results()[1])
337 SketchConstraintEqual_12 = Sketch_5.setEqual(SketchArc_12.results()[1], SketchArc_11.results()[1])
338 SketchConstraintTangent_20 = Sketch_5.setTangent(SketchArc_9.results()[1], SketchLine_29.result())
339 SketchConstraintTangent_21 = Sketch_5.setTangent(SketchArc_12.results()[1], SketchLine_31.result())
340 SketchConstraintRadius_6 = Sketch_5.setRadius(SketchArc_9.results()[1], 3)
341 SketchLine_36 = Sketch_5.addLine(2, -38, 39.99999999999998, -38)
342 SketchLine_36.setName("SketchLine_37")
343 SketchLine_36.result().setName("SketchLine_37")
344 SketchLine_36.setAuxiliary(True)
345 SketchConstraintCoincidence_60 = Sketch_5.setCoincident(SketchLine_36.startPoint(), SketchLine_30.result())
346 SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_61")
347 SketchConstraintCoincidence_61 = Sketch_5.setCoincident(SketchLine_36.endPoint(), SketchLine_31.result())
348 SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_62")
349 SketchConstraintMiddle_13 = Sketch_5.setMiddlePoint(SketchLine_31.result(), SketchLine_36.endPoint())
350 SketchConstraintMiddle_14 = Sketch_5.setMiddlePoint(SketchLine_36.startPoint(), SketchLine_30.result())
351 SketchCircle_8 = Sketch_5.addCircle(13.00000000000001, -38, 2.5)
352 SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchLine_36.result(), SketchCircle_8.center())
353 SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_63")
354 SketchCircle_9 = Sketch_5.addCircle(29, -38, 2.5)
355 SketchConstraintCoincidence_63 = Sketch_5.setCoincident(SketchLine_36.result(), SketchCircle_9.center())
356 SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_64")
357 SketchConstraintEqual_13 = Sketch_5.setEqual(SketchCircle_9.results()[1], SketchCircle_8.results()[1])
358 SketchConstraintRadius_7 = Sketch_5.setRadius(SketchCircle_9.results()[1], 2.5)
359 SketchConstraintDistance_11 = Sketch_5.setDistance(SketchCircle_8.center(), SketchCircle_9.center(), 16)
360 SketchLine_37 = Sketch_5.addLine(21, -28, 21, -48)
361 SketchLine_37.setName("SketchLine_38")
362 SketchLine_37.result().setName("SketchLine_38")
363 SketchLine_37.setAuxiliary(True)
364 SketchConstraintCoincidence_64 = Sketch_5.setCoincident(SketchLine_37.startPoint(), SketchLine_34.result())
365 SketchConstraintCoincidence_64.setName("SketchConstraintCoincidence_65")
366 SketchConstraintCoincidence_65 = Sketch_5.setCoincident(SketchLine_37.endPoint(), SketchLine_35.result())
367 SketchConstraintCoincidence_65.setName("SketchConstraintCoincidence_66")
368 SketchConstraintMiddle_15 = Sketch_5.setMiddlePoint(SketchLine_37.startPoint(), SketchLine_34.result())
369 SketchConstraintMiddle_16 = Sketch_5.setMiddlePoint(SketchLine_37.endPoint(), SketchLine_35.result())
370 SketchConstraintDistance_12 = Sketch_5.setDistance(SketchCircle_8.center(), SketchLine_37.result(), 8)
371 model.do()
372 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")])
373 ExtrusionCut_4.result().setName("ExtrusionCut_4_1")
374 ExtrusionCut_4.results()[1].setName("ExtrusionCut_4_2")
375 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")])
376 ExtrusionCut_5.result().setName("ExtrusionCut_5_1")
377 ExtrusionCut_5.results()[1].setName("ExtrusionCut_5_2")
378 Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/YOZ"))
379 SketchLine_38 = Sketch_6.addLine(-59, 44, -59, 2)
380 SketchLine_38.setName("SketchLine_39")
381 SketchLine_38.result().setName("SketchLine_39")
382 SketchLine_39 = Sketch_6.addLine(-59, 2, -17, 2)
383 SketchLine_39.setName("SketchLine_40")
384 SketchLine_39.result().setName("SketchLine_40")
385 SketchConstraintCoincidence_66 = Sketch_6.setCoincident(SketchLine_38.endPoint(), SketchLine_39.startPoint())
386 SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_67")
387 SketchLine_40 = Sketch_6.addLine(-17, 2, -16.99997429885428, 44)
388 SketchLine_40.setName("SketchLine_41")
389 SketchLine_40.result().setName("SketchLine_41")
390 SketchConstraintCoincidence_67 = Sketch_6.setCoincident(SketchLine_39.endPoint(), SketchLine_40.startPoint())
391 SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_68")
392 SketchLine_41 = Sketch_6.addLine(-16.99997429885428, 44, -27.99998714942714, 44)
393 SketchLine_41.setName("SketchLine_42")
394 SketchLine_41.result().setName("SketchLine_42")
395 SketchConstraintCoincidence_68 = Sketch_6.setCoincident(SketchLine_40.endPoint(), SketchLine_41.startPoint())
396 SketchConstraintCoincidence_68.setName("SketchConstraintCoincidence_69")
397 SketchLine_42 = Sketch_6.addLine(-27.99998714942714, 44, -27.99998714942714, 29)
398 SketchLine_42.setName("SketchLine_43")
399 SketchLine_42.result().setName("SketchLine_43")
400 SketchConstraintCoincidence_69 = Sketch_6.setCoincident(SketchLine_41.endPoint(), SketchLine_42.startPoint())
401 SketchConstraintCoincidence_69.setName("SketchConstraintCoincidence_70")
402 SketchLine_43 = Sketch_6.addLine(-27.99998714942714, 29, -47.99998714942714, 29)
403 SketchLine_43.setName("SketchLine_44")
404 SketchLine_43.result().setName("SketchLine_44")
405 SketchConstraintCoincidence_70 = Sketch_6.setCoincident(SketchLine_42.endPoint(), SketchLine_43.startPoint())
406 SketchConstraintCoincidence_70.setName("SketchConstraintCoincidence_71")
407 SketchLine_44 = Sketch_6.addLine(-47.99998714942714, 29, -47.99998714942714, 44)
408 SketchLine_44.setName("SketchLine_45")
409 SketchLine_44.result().setName("SketchLine_45")
410 SketchConstraintCoincidence_71 = Sketch_6.setCoincident(SketchLine_43.endPoint(), SketchLine_44.startPoint())
411 SketchConstraintCoincidence_71.setName("SketchConstraintCoincidence_72")
412 SketchLine_45 = Sketch_6.addLine(-47.99998714942714, 44, -59, 44)
413 SketchLine_45.setName("SketchLine_46")
414 SketchLine_45.result().setName("SketchLine_46")
415 SketchConstraintCoincidence_72 = Sketch_6.setCoincident(SketchLine_44.endPoint(), SketchLine_45.startPoint())
416 SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_73")
417 SketchConstraintCoincidence_73 = Sketch_6.setCoincident(SketchLine_38.startPoint(), SketchLine_45.endPoint())
418 SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_74")
419 SketchConstraintEqual_14 = Sketch_6.setEqual(SketchLine_38.result(), SketchLine_40.result())
420 SketchConstraintEqual_15 = Sketch_6.setEqual(SketchLine_41.result(), SketchLine_45.result())
421 SketchConstraintEqual_16 = Sketch_6.setEqual(SketchLine_42.result(), SketchLine_44.result())
422 SketchConstraintHorizontal_7 = Sketch_6.setHorizontal(SketchLine_45.result())
423 SketchConstraintHorizontal_8 = Sketch_6.setHorizontal(SketchLine_43.result())
424 SketchConstraintHorizontal_9 = Sketch_6.setHorizontal(SketchLine_39.result())
425 SketchConstraintHorizontal_10 = Sketch_6.setHorizontal(SketchLine_41.result())
426 SketchConstraintVertical_4 = Sketch_6.setVertical(SketchLine_38.result())
427 SketchConstraintVertical_5 = Sketch_6.setVertical(SketchLine_44.result())
428 SketchConstraintVertical_6 = Sketch_6.setVertical(SketchLine_42.result())
429 SketchConstraintLength_3 = Sketch_6.setLength(SketchLine_38.result(), 42)
430 SketchConstraintLength_4 = Sketch_6.setLength(SketchLine_43.result(), 20)
431 SketchConstraintLength_5 = Sketch_6.setLength(SketchLine_44.result(), 15)
432 SketchConstraintLength_6 = Sketch_6.setLength(SketchLine_39.result(), 42)
433 SketchProjection_3 = Sketch_6.addProjection(model.selection("EDGE", "Extrusion_1_1/Generated_Face_7&Extrusion_1_1/Generated_Face_6"))
434 SketchLine_46 = SketchProjection_3.createdFeature()
435 SketchLine_46.setName("SketchLine_47")
436 SketchLine_46.result().setName("SketchLine_47")
437 SketchProjection_4 = Sketch_6.addProjection(model.selection("EDGE", "ExtrusionCut_1_1/Modfied_3&Extrusion_1_1/Generated_Face_5"))
438 SketchLine_47 = SketchProjection_4.createdFeature()
439 SketchLine_47.setName("SketchLine_48")
440 SketchLine_47.result().setName("SketchLine_48")
441 SketchProjection_5 = Sketch_6.addProjection(model.selection("EDGE", "Extrusion_1_1/Generated_Face_7&Extrusion_1_1/Generated_Face_6"))
442 SketchLine_48 = SketchProjection_5.createdFeature()
443 SketchLine_48.setName("SketchLine_49")
444 SketchLine_48.result().setName("SketchLine_49")
445 SketchConstraintDistance_13 = Sketch_6.setDistance(SketchLine_38.endPoint(), SketchLine_46.result(), 2)
446 SketchConstraintDistance_14 = Sketch_6.setDistance(SketchLine_38.startPoint(), SketchLine_47.result(), 17)
447 model.do()
448 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")])
449 ExtrusionCut_6.result().setName("ExtrusionCut_6_1")
450 Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face_1"))
451 SketchLine_49 = Sketch_7.addLine(0, -22.99999999998656, -76, -22.99999999998655)
452 SketchLine_49.setName("SketchLine_50")
453 SketchLine_49.result().setName("SketchLine_50")
454 SketchLine_49.setAuxiliary(True)
455 SketchLine_50 = Sketch_7.addLine(model.selection("EDGE", "Extrusion_1_1/Generated_Face_1&ExtrusionCut_3_1/Modfied_4"))
456 SketchLine_50.setName("SketchLine_51")
457 SketchLine_50.result().setName("SketchLine_51")
458 SketchConstraintCoincidence_74 = Sketch_7.setCoincident(SketchLine_49.startPoint(), SketchLine_50.result())
459 SketchConstraintCoincidence_74.setName("SketchConstraintCoincidence_75")
460 SketchPoint_3 = Sketch_7.addPoint(model.selection("VERTEX", "Sketch_2/Vertex-SketchLine_13s"))
461 SketchConstraintCoincidence_75 = Sketch_7.setCoincident(SketchLine_49.endPoint(), SketchPoint_3.result())
462 SketchConstraintCoincidence_75.setName("SketchConstraintCoincidence_76")
463 SketchConstraintMiddle_17 = Sketch_7.setMiddlePoint(SketchLine_49.startPoint(), SketchLine_50.result())
464 SketchLine_51 = Sketch_7.addLine(-38, -40.99999999998656, -38, -4.99999999998656)
465 SketchLine_51.setName("SketchLine_52")
466 SketchLine_51.result().setName("SketchLine_52")
467 SketchLine_51.setAuxiliary(True)
468 SketchLine_52 = Sketch_7.addLine(model.selection("EDGE", "Extrusion_1_1/Generated_Face_1&ExtrusionCut_4_2/Modfied_4"))
469 SketchLine_52.setName("SketchLine_53")
470 SketchLine_52.result().setName("SketchLine_53")
471 SketchConstraintCoincidence_76 = Sketch_7.setCoincident(SketchLine_51.startPoint(), SketchLine_52.result())
472 SketchConstraintCoincidence_76.setName("SketchConstraintCoincidence_77")
473 SketchLine_53 = Sketch_7.addLine(model.selection("EDGE", "Extrusion_1_1/Generated_Face_8&Extrusion_1_1/Generated_Face_1"))
474 SketchLine_53.setName("SketchLine_54")
475 SketchLine_53.result().setName("SketchLine_54")
476 SketchConstraintCoincidence_77 = Sketch_7.setCoincident(SketchLine_51.endPoint(), SketchLine_53.result())
477 SketchConstraintCoincidence_77.setName("SketchConstraintCoincidence_78")
478 SketchConstraintMiddle_18 = Sketch_7.setMiddlePoint(SketchLine_51.startPoint(), SketchLine_52.result())
479 SketchConstraintMiddle_19 = Sketch_7.setMiddlePoint(SketchLine_51.endPoint(), SketchLine_53.result())
480 SketchPoint_4 = Sketch_7.addPoint(-37.99999999999999, -22.99999999998656)
481 SketchConstraintCoincidence_78 = Sketch_7.setCoincident(SketchPoint_4.coordinates(), SketchLine_51.result())
482 SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_79")
483 SketchConstraintMiddle_20 = Sketch_7.setMiddlePoint(SketchPoint_4.coordinates(), SketchLine_51.result())
484 SketchCircle_10 = Sketch_7.addCircle(-37.99999999999999, -22.99999999998656, 17)
485 SketchConstraintCoincidence_79 = Sketch_7.setCoincident(SketchPoint_4.coordinates(), SketchCircle_10.center())
486 SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_80")
487 SketchConstraintRadius_8 = Sketch_7.setRadius(SketchCircle_10.results()[1], 17)
488 model.do()
489 Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_7/Wire-SketchCircle_10_2f")], model.selection(), 16, 0)
490 Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_3_1/To_Face_1"))
491 SketchProjection_6 = Sketch_8.addProjection(model.selection("EDGE", "Sketch_2/Edge-SketchLine_9"))
492 SketchLine_54 = SketchProjection_6.createdFeature()
493 SketchLine_54.setName("SketchLine_55")
494 SketchLine_54.result().setName("SketchLine_55")
495 SketchProjection_7 = Sketch_8.addProjection(model.selection("EDGE", "Extrusion_1_1/Generated_Face_1&ExtrusionCut_3_1/Modfied_4"))
496 SketchLine_55 = SketchProjection_7.createdFeature()
497 SketchLine_55.setName("SketchLine_56")
498 SketchLine_55.result().setName("SketchLine_56")
499 SketchLine_56 = Sketch_8.addLine(0, -22.99999999998656, -76, -22.99999999999327)
500 SketchLine_56.setName("SketchLine_57")
501 SketchLine_56.result().setName("SketchLine_57")
502 SketchLine_56.setAuxiliary(True)
503 SketchConstraintCoincidence_80 = Sketch_8.setCoincident(SketchLine_56.startPoint(), SketchLine_55.result())
504 SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_81")
505 SketchConstraintCoincidence_81 = Sketch_8.setCoincident(SketchLine_56.endPoint(), SketchLine_54.result())
506 SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_82")
507 SketchConstraintMiddle_21 = Sketch_8.setMiddlePoint(SketchLine_56.endPoint(), SketchLine_54.result())
508 SketchConstraintMiddle_22 = Sketch_8.setMiddlePoint(SketchLine_55.result(), SketchLine_56.startPoint())
509 SketchLine_57 = Sketch_8.addLine(-37.99999999999842, -40.99999999998655, -38.000000000002, 0)
510 SketchLine_57.setName("SketchLine_58")
511 SketchLine_57.result().setName("SketchLine_58")
512 SketchLine_57.setAuxiliary(True)
513 SketchPoint_5 = Sketch_8.addPoint(-38, -22.99999999998992)
514 SketchConstraintCoincidence_82 = Sketch_8.setCoincident(SketchPoint_5.coordinates(), SketchLine_56.result())
515 SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_83")
516 SketchConstraintMiddle_23 = Sketch_8.setMiddlePoint(SketchLine_56.result(), SketchPoint_5.coordinates())
517 SketchConstraintCoincidence_83 = Sketch_8.setCoincident(SketchLine_57.result(), SketchPoint_5.coordinates())
518 SketchConstraintCoincidence_83.setName("SketchConstraintCoincidence_84")
519 SketchConstraintPerpendicular_1 = Sketch_8.setPerpendicular(SketchLine_57.result(), SketchLine_56.result())
520 SketchProjection_8 = Sketch_8.addProjection(model.selection("EDGE", "Extrusion_1_1/Generated_Face_1&ExtrusionCut_4_2/Modfied_4"))
521 SketchLine_58 = SketchProjection_8.createdFeature()
522 SketchLine_58.setName("SketchLine_59")
523 SketchLine_58.result().setName("SketchLine_59")
524 SketchProjection_9 = Sketch_8.addProjection(model.selection("EDGE", "Extrusion_1_1/Generated_Face_8&Extrusion_1_1/Generated_Face_7"))
525 SketchLine_59 = SketchProjection_9.createdFeature()
526 SketchLine_59.setName("SketchLine_60")
527 SketchLine_59.result().setName("SketchLine_60")
528 SketchConstraintCoincidence_84 = Sketch_8.setCoincident(SketchLine_57.startPoint(), SketchLine_58.result())
529 SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_85")
530 SketchConstraintCoincidence_85 = Sketch_8.setCoincident(SketchLine_57.endPoint(), SketchLine_59.result())
531 SketchConstraintCoincidence_85.setName("SketchConstraintCoincidence_86")
532 SketchCircle_11 = Sketch_8.addCircle(-30, -22.99999999998921, 2.5)
533 SketchConstraintCoincidence_86 = Sketch_8.setCoincident(SketchLine_56.result(), SketchCircle_11.center())
534 SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_87")
535 SketchCircle_12 = Sketch_8.addCircle(-46.00000000004985, -22.99999999999062, 2.5)
536 SketchConstraintCoincidence_87 = Sketch_8.setCoincident(SketchLine_56.result(), SketchCircle_12.center())
537 SketchConstraintCoincidence_87.setName("SketchConstraintCoincidence_88")
538 SketchConstraintEqual_17 = Sketch_8.setEqual(SketchCircle_12.results()[1], SketchCircle_11.results()[1])
539 SketchConstraintRadius_9 = Sketch_8.setRadius(SketchCircle_11.results()[1], 2.5)
540 SketchConstraintDistance_15 = Sketch_8.setDistance(SketchCircle_11.center(), SketchLine_57.result(), 8)
541 SketchConstraintDistance_16 = Sketch_8.setDistance(SketchCircle_11.center(), SketchCircle_12.center(), 16)
542 model.do()
543 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)
544 Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "ExtrusionCut_3_1/Modfied_4"), 38, True)
545 Sketch_9 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1"))
546 SketchLine_60 = Sketch_9.addLine(-14, -36.99999999998992, 0, -36.99999999998992)
547 SketchLine_60.setName("SketchLine_61")
548 SketchLine_60.result().setName("SketchLine_61")
549 SketchLine_61 = Sketch_9.addLine(0, -36.99999999998992, 0, -22.99999999998992)
550 SketchLine_61.setName("SketchLine_62")
551 SketchLine_61.result().setName("SketchLine_62")
552 SketchLine_62 = Sketch_9.addLine(0, -22.99999999998992, -14, -22.99999999998992)
553 SketchLine_62.setName("SketchLine_63")
554 SketchLine_62.result().setName("SketchLine_63")
555 SketchLine_63 = Sketch_9.addLine(-14, -22.99999999998992, -14, -36.99999999998992)
556 SketchLine_63.setName("SketchLine_64")
557 SketchLine_63.result().setName("SketchLine_64")
558 SketchConstraintCoincidence_88 = Sketch_9.setCoincident(SketchLine_63.endPoint(), SketchLine_60.startPoint())
559 SketchConstraintCoincidence_88.setName("SketchConstraintCoincidence_89")
560 SketchConstraintCoincidence_89 = Sketch_9.setCoincident(SketchLine_60.endPoint(), SketchLine_61.startPoint())
561 SketchConstraintCoincidence_89.setName("SketchConstraintCoincidence_90")
562 SketchConstraintCoincidence_90 = Sketch_9.setCoincident(SketchLine_61.endPoint(), SketchLine_62.startPoint())
563 SketchConstraintCoincidence_90.setName("SketchConstraintCoincidence_91")
564 SketchConstraintCoincidence_91 = Sketch_9.setCoincident(SketchLine_62.endPoint(), SketchLine_63.startPoint())
565 SketchConstraintCoincidence_91.setName("SketchConstraintCoincidence_92")
566 SketchConstraintHorizontal_11 = Sketch_9.setHorizontal(SketchLine_60.result())
567 SketchConstraintVertical_7 = Sketch_9.setVertical(SketchLine_61.result())
568 SketchConstraintHorizontal_12 = Sketch_9.setHorizontal(SketchLine_62.result())
569 SketchConstraintVertical_8 = Sketch_9.setVertical(SketchLine_63.result())
570 SketchConstraintLength_7 = Sketch_9.setLength(SketchLine_61.result(), 14)
571 SketchConstraintEqual_18 = Sketch_9.setEqual(SketchLine_61.result(), SketchLine_60.result())
572 SketchLine_64 = Sketch_9.addLine(-5.662490896925754, -22.99999999998992, -60.5217691188193, -22.99999999998992)
573 SketchLine_64.setName("SketchLine_65")
574 SketchLine_64.result().setName("SketchLine_65")
575 SketchLine_64.setAuxiliary(True)
576 SketchPoint_6 = Sketch_9.addPoint(model.selection("VERTEX", "Sketch_8/Vertex-SketchPoint_5"))
577 SketchConstraintCoincidence_92 = Sketch_9.setCoincident(SketchLine_64.result(), SketchPoint_6.coordinates())
578 SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_93")
579 SketchConstraintHorizontal_13 = Sketch_9.setHorizontal(SketchLine_64.result())
580 SketchConstraintCoincidence_93 = Sketch_9.setCoincident(SketchLine_62.startPoint(), SketchLine_64.result())
581 SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_94")
582 SketchLine_65 = Sketch_9.addLine(model.selection("EDGE", "Sketch_7/Edge-SketchLine_52"))
583 SketchLine_65.setName("SketchLine_66")
584 SketchLine_65.result().setName("SketchLine_66")
585 SketchConstraintCoincidence_94 = Sketch_9.setCoincident(SketchLine_60.endPoint(), SketchLine_65.result())
586 SketchConstraintCoincidence_94.setName("SketchConstraintCoincidence_95")
587 model.do()
588 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")])
589 RevolutionCut_1.result().setName("RevolutionCut_1_1")
590 model.do()
591
592 from GeomAPI import  GeomAPI_Shape
593
594 model.testNbResults(Part_1, 1)
595 model.testNbSubResults(Part_1, [0])
596 model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [5])
597 model.testNbSubShapes(Part_1, GeomAPI_Shape.FACE, [78])
598 model.testNbSubShapes(Part_1, GeomAPI_Shape.EDGE, [340])
599 model.testNbSubShapes(Part_1, GeomAPI_Shape.VERTEX, [680])
600 model.testResultsVolumes(Part_1, [61675.12443110236])
601 model.end()
602
603 assert(model.checkPythonDump())