1 from salome.shaper import model
4 partSet = model.moduleDocument()
5 Part_1 = model.addPart(partSet)
6 Part_1_doc = Part_1.document()
7 Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY"))
8 SketchLine_1 = Sketch_1.addLine(-70.81663645026607, 190, 229.1833635497339, 190)
9 SketchLine_1.setAuxiliary(True)
10 SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_1.result())
11 SketchLine_2 = Sketch_1.addLine(16.63997893808557, 190, 22.63997893808557, 190)
12 SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_2.startPoint(), SketchLine_1.result())
13 SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_1.result())
14 SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_2.result(), 6)
15 SketchArc_1 = Sketch_1.addArc(32.63997893808557, 190, 42.63997893808557, 190, 22.63997893808557, 190, True)
16 SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_1.result())
17 SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchArc_1.endPoint())
18 SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchArc_1.center(), SketchLine_1.result())
19 SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], 10)
20 SketchLine_3 = Sketch_1.addLine(42.63997893808557, 190, 147.6399789380856, 190)
21 SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_3.startPoint())
22 SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_1.result())
23 SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_3.result(), 105)
24 SketchLine_4 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX"))
25 SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_1.startPoint(), SketchLine_4.result(), 190)
26 SketchLine_5 = Sketch_1.addLine(167.6399789380856, 232.4170641625502, 167.6399789380856, 155.6475648742598)
27 SketchLine_5.setAuxiliary(True)
28 SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_5.result())
29 SketchArc_2 = Sketch_1.addArc(147.6399786642556, 202.5, 147.6399789380856, 190, 160.1399786642556, 202.50000027383, False)
30 SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchArc_2.startPoint())
31 SketchConstraintTangent_1 = Sketch_1.setTangent(SketchLine_3.result(), SketchArc_2.results()[1])
32 SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_2.results()[1], 12.5)
33 SketchLine_6 = Sketch_1.addLine(147.6399786642556, 202.5, 147.6399789380856, 190)
34 SketchLine_6.setAuxiliary(True)
35 SketchConstraintCoincidence_9 = Sketch_1.setCoincident(SketchArc_2.center(), SketchLine_6.startPoint())
36 SketchConstraintCoincidence_9.setName("SketchConstraintCoincidence_11")
37 SketchConstraintCoincidence_10 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_6.endPoint())
38 SketchConstraintCoincidence_10.setName("SketchConstraintCoincidence_12")
39 SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchLine_6.endPoint())
40 SketchConstraintCoincidence_11.setName("SketchConstraintCoincidence_13")
41 SketchLine_7 = Sketch_1.addLine(160.1399786642556, 202.50000027383, 147.6399786642556, 202.5)
42 SketchLine_7.setAuxiliary(True)
43 SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_7.startPoint())
44 SketchConstraintCoincidence_12.setName("SketchConstraintCoincidence_14")
45 SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchArc_2.center(), SketchLine_7.endPoint())
46 SketchConstraintCoincidence_13.setName("SketchConstraintCoincidence_16")
47 SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_6.startPoint(), SketchLine_7.endPoint())
48 SketchConstraintCoincidence_14.setName("SketchConstraintCoincidence_17")
49 SketchConstraintAngle_1 = Sketch_1.setAngle(SketchLine_6.result(), SketchLine_7.result(), 90)
50 SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_2.endPoint(), SketchLine_5.result(), 145)
51 SketchPoint_1 = Sketch_1.addPoint(167.6399789380856, 217.9010257567384)
52 SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchLine_5.result())
53 SketchArc_3 = Sketch_1.addArc(179.7027453914111, 202.5000028194857, 167.6399789380856, 217.9010257567384, 160.1399786642556, 202.50000027383, False)
54 SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchArc_3.startPoint())
55 SketchConstraintCoincidence_16.setName("SketchConstraintCoincidence_18")
56 SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchArc_3.endPoint())
57 SketchConstraintCoincidence_17.setName("SketchConstraintCoincidence_19")
58 SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_7.startPoint(), SketchArc_3.endPoint())
59 SketchConstraintCoincidence_18.setName("SketchConstraintCoincidence_20")
60 SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchArc_3.results()[1])
61 SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_3.results()[1], SketchArc_2.results()[1])
64 # check overconstraint message appears
65 assert Sketch_1.solverError().value() != "", "FAILED: Sketch should report over-constrained situation"
66 # remove duplicated Tangent constraint
67 Part_1_doc.removeFeature(SketchConstraintTangent_3.feature())
69 assert Sketch_1.solverError().value() == "", "FAILED: Sketch should NOT report over-constrained situation"
71 # continue creating model
72 SketchLine_8 = Sketch_1.addLine(16.63997893808557, 190, 16.63997893808557, 184)
73 SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_2.startPoint(), SketchLine_8.startPoint())
74 SketchConstraintCoincidence_19.setName("SketchConstraintCoincidence_21")
75 SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_8.result())
76 SketchConstraintLength_3 = Sketch_1.setLength(SketchLine_8.result(), 6)
77 SketchLine_9 = Sketch_1.addLine(16.63997893808557, 184, 169.1531000589648, 184)
78 SketchLine_9.setAuxiliary(True)
79 SketchConstraintCoincidence_20 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.startPoint())
80 SketchConstraintCoincidence_20.setName("SketchConstraintCoincidence_22")
81 SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_9.result())
82 SketchLine_10 = Sketch_1.addLine(16.63997893808557, 184, 18.25728991640986, 184.0340386082476)
83 SketchConstraintCoincidence_21 = Sketch_1.setCoincident(SketchLine_10.startPoint(), SketchLine_8.endPoint())
84 SketchConstraintCoincidence_21.setName("SketchConstraintCoincidence_26")
85 SketchLine_11 = Sketch_1.addLine(147.6399789380856, 190, 147.6399789380856, 184)
86 SketchLine_11.setAuxiliary(True)
87 SketchConstraintCoincidence_22 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_11.startPoint())
88 SketchConstraintCoincidence_22.setName("SketchConstraintCoincidence_27")
89 SketchConstraintCoincidence_23 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchLine_11.startPoint())
90 SketchConstraintCoincidence_23.setName("SketchConstraintCoincidence_28")
91 SketchConstraintCoincidence_24 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_11.startPoint())
92 SketchConstraintCoincidence_24.setName("SketchConstraintCoincidence_29")
93 SketchConstraintCoincidence_25 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchLine_9.result())
94 SketchConstraintCoincidence_25.setName("SketchConstraintCoincidence_30")
95 SketchConstraintPerpendicular_1 = Sketch_1.setPerpendicular(SketchLine_11.result(), SketchLine_9.result())
96 SketchArc_4 = Sketch_1.addArc(147.6399786642556, 202.5, 147.6399789380856, 184, 166.1399786642556, 202.5000004052683, False)
97 SketchArc_4.setName("SketchArc_5")
98 SketchArc_4.result().setName("SketchArc_5")
99 SketchArc_4.results()[1].setName("SketchArc_5_2")
100 SketchConstraintCoincidence_26 = Sketch_1.setCoincident(SketchArc_2.center(), SketchArc_4.center())
101 SketchConstraintCoincidence_26.setName("SketchConstraintCoincidence_31")
102 SketchConstraintCoincidence_27 = Sketch_1.setCoincident(SketchLine_6.startPoint(), SketchArc_4.center())
103 SketchConstraintCoincidence_27.setName("SketchConstraintCoincidence_32")
104 SketchConstraintCoincidence_28 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchArc_4.center())
105 SketchConstraintCoincidence_28.setName("SketchConstraintCoincidence_33")
106 SketchConstraintCoincidence_29 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchArc_4.startPoint())
107 SketchConstraintCoincidence_29.setName("SketchConstraintCoincidence_34")
108 SketchConstraintCoincidence_30 = Sketch_1.setCoincident(SketchArc_4.endPoint(), SketchLine_7.result())
109 SketchConstraintCoincidence_30.setName("SketchConstraintCoincidence_35")
110 SketchLine_12 = Sketch_1.addLine(47.41543561031094, 183.8811996227169, 147.6399789380856, 184)
111 SketchArc_5 = Sketch_1.addArc(32.62756748253716, 189.990123933557, 32.63997893808557, 173.9901287474201, 47.41543561031094, 183.8811996227169, False)
112 SketchArc_5.setName("SketchArc_10")
113 SketchArc_5.result().setName("SketchArc_10")
114 SketchArc_5.results()[1].setName("SketchArc_10_2")
115 SketchConstraintCoincidence_31 = Sketch_1.setCoincident(SketchArc_5.endPoint(), SketchLine_12.startPoint())
116 SketchConstraintCoincidence_31.setName("SketchConstraintCoincidence_36")
117 SketchConstraintCoincidence_32 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchLine_12.endPoint())
118 SketchConstraintCoincidence_32.setName("SketchConstraintCoincidence_37")
119 SketchConstraintCoincidence_33 = Sketch_1.setCoincident(SketchArc_4.startPoint(), SketchLine_12.endPoint())
120 SketchConstraintCoincidence_33.setName("SketchConstraintCoincidence_38")
121 SketchArc_6 = Sketch_1.addArc(179.7027453914111, 202.5000028194857, 166.1399786642556, 202.5000004052683, 171.3396907288292, 213.177453732788, True)
122 SketchConstraintCoincidence_34 = Sketch_1.setCoincident(SketchArc_4.endPoint(), SketchArc_6.startPoint())
123 SketchConstraintCoincidence_34.setName("SketchConstraintCoincidence_39")
124 SketchConstraintCoincidence_35 = Sketch_1.setCoincident(SketchArc_6.center(), SketchArc_3.center())
125 SketchConstraintCoincidence_35.setName("SketchConstraintCoincidence_41")
126 SketchLine_13 = Sketch_1.addLine(179.7027453914111, 202.5000028194857, 167.6399789380856, 217.9010257567384)
127 SketchLine_13.setAuxiliary(True)
128 SketchConstraintCoincidence_36 = Sketch_1.setCoincident(SketchArc_6.center(), SketchLine_13.startPoint())
129 SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_40")
130 SketchConstraintCoincidence_37 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchLine_13.endPoint())
131 SketchConstraintCoincidence_37.setName("SketchConstraintCoincidence_42")
132 SketchConstraintCoincidence_38 = Sketch_1.setCoincident(SketchArc_3.startPoint(), SketchLine_13.endPoint())
133 SketchConstraintCoincidence_38.setName("SketchConstraintCoincidence_43")
134 SketchConstraintCoincidence_39 = Sketch_1.setCoincident(SketchLine_13.result(), SketchArc_6.endPoint())
135 SketchConstraintCoincidence_39.setName("SketchConstraintCoincidence_44")
136 SketchLine_14 = Sketch_1.addLine(167.6399789380856, 217.9010257567384, 171.3396907288292, 213.177453732788)
137 SketchConstraintCoincidence_40 = Sketch_1.setCoincident(SketchPoint_1.coordinates(), SketchLine_14.startPoint())
138 SketchConstraintCoincidence_40.setName("SketchConstraintCoincidence_45")
139 SketchConstraintCoincidence_41 = Sketch_1.setCoincident(SketchArc_3.startPoint(), SketchLine_14.startPoint())
140 SketchConstraintCoincidence_41.setName("SketchConstraintCoincidence_46")
141 SketchConstraintCoincidence_42 = Sketch_1.setCoincident(SketchLine_13.endPoint(), SketchLine_14.startPoint())
142 SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_47")
143 SketchConstraintCoincidence_43 = Sketch_1.setCoincident(SketchArc_6.endPoint(), SketchLine_14.endPoint())
144 SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_48")
145 SketchLine_15 = Sketch_1.addLine(32.63997893808557, 190, 32.63997893808557, 173.9901287474201)
146 SketchLine_15.setAuxiliary(True)
147 SketchConstraintCoincidence_44 = Sketch_1.setCoincident(SketchArc_1.center(), SketchLine_15.startPoint())
148 SketchConstraintCoincidence_44.setName("SketchConstraintCoincidence_49")
149 SketchConstraintCoincidence_45 = Sketch_1.setCoincident(SketchLine_15.endPoint(), SketchArc_5.startPoint())
150 SketchConstraintCoincidence_45.setName("SketchConstraintCoincidence_51")
151 SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_15.result())
152 SketchLine_16 = Sketch_1.addLine(32.63997893808557, 173.9901287474201, 12.63997893808557, 173.9901287474201)
153 SketchConstraintCoincidence_46 = Sketch_1.setCoincident(SketchLine_15.endPoint(), SketchLine_16.startPoint())
154 SketchConstraintCoincidence_46.setName("SketchConstraintCoincidence_52")
155 SketchArc_7 = Sketch_1.addArc(12.63995378957197, 164.9901287474201, 12.63997893808557, 173.9901287474201, 3.639953789571974, 164.9901345179945, False)
156 SketchConstraintCoincidence_47 = Sketch_1.setCoincident(SketchLine_16.endPoint(), SketchArc_7.startPoint())
157 SketchConstraintCoincidence_47.setName("SketchConstraintCoincidence_53")
158 SketchLine_17 = Sketch_1.addLine(3.639953789571974, 164.9901345179945, 3.639953789571974, 100.0000679958514)
159 SketchConstraintCoincidence_48 = Sketch_1.setCoincident(SketchArc_7.endPoint(), SketchLine_17.startPoint())
160 SketchConstraintCoincidence_48.setName("SketchConstraintCoincidence_54")
161 SketchLine_18 = Sketch_1.addLine(3.639953789571974, 100.0000679958514, -5.360046210428025, 100.0000679958514)
162 SketchConstraintCoincidence_49 = Sketch_1.setCoincident(SketchLine_17.endPoint(), SketchLine_18.startPoint())
163 SketchConstraintCoincidence_49.setName("SketchConstraintCoincidence_55")
164 SketchLine_19 = Sketch_1.addLine(-5.360046210428025, 100.0000679958514, -5.360046210428025, 165.0000679958514)
165 SketchConstraintCoincidence_50 = Sketch_1.setCoincident(SketchLine_18.endPoint(), SketchLine_19.startPoint())
166 SketchConstraintCoincidence_50.setName("SketchConstraintCoincidence_56")
167 SketchLine_20 = Sketch_1.addLine(-5.360046210428025, 165.0000679958514, -5.360046210428025, 100.0000679958514)
168 SketchConstraintCoincidence_51 = Sketch_1.setCoincident(SketchLine_19.endPoint(), SketchLine_20.startPoint())
169 SketchConstraintCoincidence_51.setName("SketchConstraintCoincidence_57")
170 SketchConstraintCoincidence_52 = Sketch_1.setCoincident(SketchLine_18.endPoint(), SketchLine_20.endPoint())
171 SketchConstraintCoincidence_52.setName("SketchConstraintCoincidence_58")
172 SketchConstraintCoincidence_53 = Sketch_1.setCoincident(SketchLine_19.startPoint(), SketchLine_20.endPoint())
173 SketchConstraintCoincidence_53.setName("SketchConstraintCoincidence_59")
174 SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_16.result())
175 SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_18.result())
176 SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_17.result())
177 SketchConstraintVertical_5 = Sketch_1.setVertical(SketchLine_20.result())
178 SketchConstraintTangent_4 = Sketch_1.setTangent(SketchLine_16.result(), SketchArc_7.results()[1])
179 SketchConstraintTangent_5 = Sketch_1.setTangent(SketchLine_17.result(), SketchArc_7.results()[1])
180 SketchConstraintRadius_3 = Sketch_1.setRadius(SketchArc_7.results()[1], 9)
181 SketchConstraintRadius_3.setName("SketchConstraintRadius_4")
182 SketchConstraintLength_4 = Sketch_1.setLength(SketchLine_20.result(), 65)
183 SketchLine_21 = Sketch_1.addLine(12.63997893808557, 173.9901287474201, 12.63997893808557, 192.2067667108204)
184 SketchLine_21.setName("SketchLine_22")
185 SketchLine_21.result().setName("SketchLine_22")
186 SketchLine_21.setAuxiliary(True)
187 SketchConstraintCoincidence_54 = Sketch_1.setCoincident(SketchLine_16.endPoint(), SketchLine_21.startPoint())
188 SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_60")
189 SketchConstraintCoincidence_55 = Sketch_1.setCoincident(SketchArc_7.startPoint(), SketchLine_21.startPoint())
190 SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_61")
191 SketchConstraintVertical_6 = Sketch_1.setVertical(SketchLine_21.result())
192 SketchConstraintLength_5 = Sketch_1.setLength(SketchLine_16.result(), 20)
193 SketchArc_8 = Sketch_1.addArc(12.63995378957197, 164.9901287474201, -5.360046210428025, 165.0000679958514, 12.63997893808557, 182.9901314915493, True)
194 SketchConstraintCoincidence_56 = Sketch_1.setCoincident(SketchArc_7.center(), SketchArc_8.center())
195 SketchConstraintCoincidence_56.setName("SketchConstraintCoincidence_63")
196 SketchConstraintCoincidence_57 = Sketch_1.setCoincident(SketchLine_19.endPoint(), SketchArc_8.startPoint())
197 SketchConstraintCoincidence_57.setName("SketchConstraintCoincidence_65")
198 SketchConstraintCoincidence_58 = Sketch_1.setCoincident(SketchLine_20.startPoint(), SketchArc_8.startPoint())
199 SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_66")
200 SketchConstraintCoincidence_59 = Sketch_1.setCoincident(SketchArc_8.endPoint(), SketchLine_21.result())
201 SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_67")
202 SketchLine_22 = Sketch_1.addLine(12.63997893808557, 182.9901314915493, 18.25728991640986, 182.9901314915493)
203 SketchLine_22.setName("SketchLine_23")
204 SketchLine_22.result().setName("SketchLine_23")
205 SketchConstraintCoincidence_60 = Sketch_1.setCoincident(SketchArc_8.endPoint(), SketchLine_22.startPoint())
206 SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_64")
207 SketchConstraintHorizontal_5 = Sketch_1.setHorizontal(SketchLine_22.result())
208 SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_18.startPoint(), SketchLine_19.result(), 9)
209 SketchLine_23 = Sketch_1.addLine(18.25728991640986, 182.9901314915493, 18.25728991640986, 184.0340386082476)
210 SketchLine_23.setName("SketchLine_24")
211 SketchLine_23.result().setName("SketchLine_24")
212 SketchConstraintCoincidence_61 = Sketch_1.setCoincident(SketchLine_22.endPoint(), SketchLine_23.startPoint())
213 SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_62")
214 SketchConstraintCoincidence_62 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchLine_23.endPoint())
215 SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_68")
216 SketchConstraintVertical_7 = Sketch_1.setVertical(SketchLine_23.result())
218 Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_2r-SketchArc_1_2r-SketchLine_3r-SketchArc_2_2r-SketchArc_3_2f-SketchLine_8f-SketchLine_10f-SketchArc_5_2f-SketchLine_12f-SketchArc_6_2r-SketchLine_14r-SketchLine_16r-SketchArc_7_2r-SketchLine_17r-SketchLine_18r-SketchLine_20f-SketchArc_8_2f-SketchLine_23r-SketchArc_10_2f-SketchLine_24r")], model.selection("EDGE", "PartSet/OX"), 360, 0)
219 Sketch_2 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ"))
220 SketchCircle_1 = Sketch_2.addCircle(0, 120, 7.5)
221 SketchLine_24 = Sketch_2.addLine(model.selection("EDGE", "PartSet/OZ"))
222 SketchLine_24.setName("SketchLine_25")
223 SketchLine_24.result().setName("SketchLine_25")
224 SketchConstraintCoincidence_63 = Sketch_2.setCoincident(SketchCircle_1.center(), SketchLine_24.result())
225 SketchConstraintCoincidence_63.setName("SketchConstraintCoincidence_69")
226 SketchLine_25 = Sketch_2.addLine(model.selection("EDGE", "PartSet/OY"))
227 SketchLine_25.setName("SketchLine_26")
228 SketchLine_25.result().setName("SketchLine_26")
229 SketchConstraintDistance_4 = Sketch_2.setDistance(SketchCircle_1.center(), SketchLine_25.result(), 120)
230 SketchConstraintRadius_4 = Sketch_2.setRadius(SketchCircle_1.results()[1], 7.5)
231 SketchConstraintRadius_4.setName("SketchConstraintRadius_5")
232 SketchMultiRotation_1 = Sketch_2.addRotation([SketchCircle_1.results()[1]], SketchLine_24.startPoint(), 24, 15)
233 [SketchCircle_2, SketchCircle_3, SketchCircle_4, SketchCircle_5, SketchCircle_6, SketchCircle_7, SketchCircle_8, SketchCircle_9, SketchCircle_10, SketchCircle_11, SketchCircle_12, SketchCircle_13, SketchCircle_14, SketchCircle_15] = SketchMultiRotation_1.rotated()
235 Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketch_2")], model.selection(), 10, 10)
236 Boolean_1 = model.addCut(Part_1_doc, [model.selection("SOLID", "Revolution_1_1")], [model.selection("SOLID", "Extrusion_1_6"), model.selection("SOLID", "Extrusion_1_8"), model.selection("SOLID", "Extrusion_1_9"), model.selection("SOLID", "Extrusion_1_3"), model.selection("SOLID", "Extrusion_1_2"), model.selection("SOLID", "Extrusion_1_1"), model.selection("SOLID", "Extrusion_1_4"), model.selection("SOLID", "Extrusion_1_14"), model.selection("SOLID", "Extrusion_1_5"), model.selection("SOLID", "Extrusion_1_15"), model.selection("SOLID", "Extrusion_1_11"), model.selection("SOLID", "Extrusion_1_10"), model.selection("SOLID", "Extrusion_1_12"), model.selection("SOLID", "Extrusion_1_13"), model.selection("SOLID", "Extrusion_1_7")])
239 from GeomAPI import GeomAPI_Shape
241 model.testNbResults(Boolean_1, 1)
242 model.testNbSubResults(Boolean_1, [0])
243 model.testNbSubShapes(Boolean_1, GeomAPI_Shape.SOLID, [1])
244 model.testNbSubShapes(Boolean_1, GeomAPI_Shape.FACE, [35])
245 model.testNbSubShapes(Boolean_1, GeomAPI_Shape.EDGE, [162])
246 model.testNbSubShapes(Boolean_1, GeomAPI_Shape.VERTEX, [324])
247 model.testResultsVolumes(Boolean_1, [2053931.555419394280761480331420898])
249 assert(model.checkPythonDump())