Salome HOME
1aa708b3fd467ed97e66e3533aec8161ed911942
[modules/shaper.git] / src / ModelAPI / Test / TestWeakNaming2222.py
1 ## Copyright (C) 2014-2017  CEA/DEN, EDF R&D
2 ##
3 ## This library is free software; you can redistribute it and/or
4 ## modify it under the terms of the GNU Lesser General Public
5 ## License as published by the Free Software Foundation; either
6 ## version 2.1 of the License, or (at your option) any later version.
7 ##
8 ## This library is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 ## Lesser General Public License for more details.
12 ##
13 ## You should have received a copy of the GNU Lesser General Public
14 ## License along with this library; if not, write to the Free Software
15 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 ##
17 ## See http:##www.salome-platform.org/ or
18 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
19 ##
20
21 # -*- coding: utf-8 -*-
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 model.addParameter(Part_1_doc, "ep_base", "0.65")
30 model.addParameter(Part_1_doc, "ep_voiles", "0.1")
31 model.addParameter(Part_1_doc, "ep_poteau", "0.15")
32 model.addParameter(Part_1_doc, "h_ouverture", "0.95")
33 model.addParameter(Part_1_doc, "h_apres_ouverture", "0.6")
34 model.addParameter(Part_1_doc, "ep_dalles", "0.12")
35 Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY"))
36 SketchLine_1 = Sketch_1.addLine(0.275, 3.325, -0.375, 3.325)
37 SketchLine_2 = Sketch_1.addLine(-0.375, 3.325, -0.375, -0.325)
38 SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint())
39 SketchLine_3 = Sketch_1.addLine(-0.375, -0.325, 4.275, -0.325)
40 SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.startPoint())
41 SketchLine_4 = Sketch_1.addLine(4.275, -0.325, 4.275, 1.325)
42 SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint())
43 SketchLine_5 = Sketch_1.addLine(4.275, 1.325, 3.625, 1.325)
44 SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_5.startPoint())
45 SketchLine_6 = Sketch_1.addLine(3.625, 1.325, 3.625, 0.325)
46 SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_6.startPoint())
47 SketchLine_7 = Sketch_1.addLine(3.625, 0.325, 0.275, 0.3250000000000001)
48 SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_7.startPoint())
49 SketchLine_8 = Sketch_1.addLine(0.275, 0.3250000000000001, 0.275, 3.325)
50 SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchLine_8.startPoint())
51 SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_8.endPoint())
52 SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_1.result())
53 SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_5.result())
54 SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_3.result())
55 SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_7.result())
56 SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_2.result())
57 SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_8.result())
58 SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_6.result())
59 SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_4.result())
60 SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_1.result(), "ep_base")
61 SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_2.result(), 3.65)
62 SketchConstraintLength_3 = Sketch_1.setLength(SketchLine_3.result(), 4.65)
63 SketchConstraintLength_4 = Sketch_1.setLength(SketchLine_4.result(), 1.65)
64 SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_7.startPoint(), SketchLine_3.result(), "ep_base")
65 SketchLine_9 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX"))
66 SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_3.endPoint(), SketchLine_9.result(), "0.275+ep_voiles/2")
67 SketchLine_10 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OY"))
68 SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_2.startPoint(), SketchLine_10.result(), "0.325+ep_voiles/2")
69 SketchConstraintEqual_1 = Sketch_1.setEqual(SketchLine_5.result(), SketchLine_1.result())
70 model.do()
71 Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_1f-SketchLine_2f-SketchLine_3f-SketchLine_4f-SketchLine_5f-SketchLine_6f-SketchLine_7f-SketchLine_8f")], model.selection(), 0, 0.3)
72 Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/From_Face_1"))
73 SketchLine_11 = Sketch_2.addLine(2.26, -2.31, 1.64, -2.31)
74 SketchLine_12 = Sketch_2.addLine(1.64, -2.31, 1.64, -1.69)
75 SketchLine_13 = Sketch_2.addLine(1.64, -1.69, 2.26, -1.69)
76 SketchLine_14 = Sketch_2.addLine(2.26, -1.69, 2.26, -2.31)
77 SketchConstraintCoincidence_9 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchLine_11.startPoint())
78 SketchConstraintCoincidence_10 = Sketch_2.setCoincident(SketchLine_11.endPoint(), SketchLine_12.startPoint())
79 SketchConstraintCoincidence_11 = Sketch_2.setCoincident(SketchLine_12.endPoint(), SketchLine_13.startPoint())
80 SketchConstraintCoincidence_12 = Sketch_2.setCoincident(SketchLine_13.endPoint(), SketchLine_14.startPoint())
81 SketchConstraintHorizontal_5 = Sketch_2.setHorizontal(SketchLine_11.result())
82 SketchConstraintVertical_5 = Sketch_2.setVertical(SketchLine_12.result())
83 SketchConstraintHorizontal_6 = Sketch_2.setHorizontal(SketchLine_13.result())
84 SketchConstraintVertical_6 = Sketch_2.setVertical(SketchLine_14.result())
85 SketchPoint_1 = Sketch_2.addPoint(1.925, -1.875)
86 SketchConstraintLength_5 = Sketch_2.setLength(SketchLine_11.result(), 0.62)
87 SketchConstraintLength_5.setName("SketchConstraintLength_10")
88 SketchConstraintEqual_2 = Sketch_2.setEqual(SketchLine_11.result(), SketchLine_12.result())
89 SketchConstraintDistance_4 = Sketch_2.setDistance(SketchPoint_1.coordinates(), SketchLine_13.result(), "0.11+ep_poteau/2")
90 SketchConstraintDistance_4.setName("SketchConstraintDistance_6")
91 SketchConstraintDistance_5 = Sketch_2.setDistance(SketchPoint_1.coordinates(), SketchLine_12.result(), "0.21+ep_poteau/2")
92 SketchConstraintDistance_5.setName("SketchConstraintDistance_7")
93 SketchProjection_1 = Sketch_2.addProjection(model.selection("EDGE", "PartSet/OX"))
94 SketchLine_15 = SketchProjection_1.createdFeature()
95 SketchProjection_2 = Sketch_2.addProjection(model.selection("EDGE", "PartSet/OY"))
96 SketchLine_16 = SketchProjection_2.createdFeature()
97 SketchConstraintDistance_6 = Sketch_2.setDistance(SketchPoint_1.coordinates(), SketchLine_15.result(), "1.75+ep_poteau/2+ep_voiles/2")
98 SketchConstraintDistance_6.setName("SketchConstraintDistance_8")
99 SketchConstraintDistance_7 = Sketch_2.setDistance(SketchPoint_1.coordinates(), SketchLine_16.result(), "1.8+ep_poteau/2+ep_voiles/2")
100 SketchConstraintDistance_7.setName("SketchConstraintDistance_9")
101 model.do()
102 Extrusion_2 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchLine_11r-SketchLine_12r-SketchLine_13r-SketchLine_14r")], model.selection(), 0, 0.02)
103 Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "Sketch_1/Face-SketchLine_1f-SketchLine_2f-SketchLine_3f-SketchLine_4f-SketchLine_5f-SketchLine_6f-SketchLine_7f-SketchLine_8f"))
104 SketchLine_17 = Sketch_3.addLine(0, 2.950000000000001, 0, 1.700000000000001)
105 SketchLine_17.setName("SketchLine_15")
106 SketchLine_17.result().setName("SketchLine_15")
107 SketchLine_18 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OY"))
108 SketchLine_18.setName("SketchLine_16")
109 SketchLine_18.result().setName("SketchLine_16")
110 SketchConstraintCoincidence_13 = Sketch_3.setCoincident(SketchLine_17.startPoint(), SketchLine_18.result())
111 SketchConstraintCoincidence_14 = Sketch_3.setCoincident(SketchLine_17.endPoint(), SketchLine_18.result())
112 SketchLine_19 = Sketch_3.addLine(0, 1.2, 0, 0)
113 SketchLine_19.setName("SketchLine_17")
114 SketchLine_19.result().setName("SketchLine_17")
115 SketchConstraintCoincidence_15 = Sketch_3.setCoincident(SketchLine_19.startPoint(), SketchLine_18.result())
116 SketchConstraintCoincidence_16 = Sketch_3.setCoincident(SketchLine_19.endPoint(), SketchLine_18.result())
117 SketchLine_20 = Sketch_3.addLine(0, 0, 0.95, 0)
118 SketchLine_20.setName("SketchLine_18")
119 SketchLine_20.result().setName("SketchLine_18")
120 SketchLine_21 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OX"))
121 SketchLine_21.setName("SketchLine_19")
122 SketchLine_21.result().setName("SketchLine_19")
123 #SketchConstraintCoincidence_17 = Sketch_3.setCoincident(SketchLine_20.startPoint(), SketchLine_21.result())
124 #SketchConstraintCoincidence_18 = Sketch_3.setCoincident(SketchLine_20.endPoint(), SketchLine_21.result())
125 SketchLine_22 = Sketch_3.addLine(2.525000000000001, 0, 3.975000000000001, 0)
126 SketchLine_22.setName("SketchLine_20")
127 SketchLine_22.result().setName("SketchLine_20")
128 SketchConstraintCoincidence_19 = Sketch_3.setCoincident(SketchLine_22.startPoint(), SketchLine_21.result())
129 SketchConstraintCoincidence_20 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_21.result())
130 SketchLine_23 = Sketch_3.addLine(3.975000000000001, 0, 3.975000000000001, 0.95)
131 SketchLine_23.setName("SketchLine_21")
132 SketchLine_23.result().setName("SketchLine_21")
133 SketchConstraintCoincidence_21 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_23.startPoint())
134 SketchLine_24 = Sketch_3.addLine(model.selection("EDGE", "Extrusion_1_1/Generated_Face_4&Extrusion_1_1/To_Face_1"))
135 SketchLine_24.setName("SketchLine_22")
136 SketchLine_24.result().setName("SketchLine_22")
137 SketchConstraintLength_6 = Sketch_3.setLength(SketchLine_17.result(), 1.25)
138 SketchConstraintLength_6.setName("SketchConstraintLength_5")
139 SketchConstraintCoincidence_22 = Sketch_3.setCoincident(SketchLine_19.endPoint(), SketchLine_18.startPoint())
140 SketchConstraintCoincidence_23 = Sketch_3.setCoincident(SketchLine_20.startPoint(), SketchLine_19.endPoint())
141 SketchConstraintLength_7 = Sketch_3.setLength(SketchLine_19.result(), "1.25-ep_voiles/2")
142 SketchConstraintLength_7.setName("SketchConstraintLength_6")
143 SketchConstraintLength_8 = Sketch_3.setLength(SketchLine_20.result(), "1-ep_voiles/2")
144 SketchConstraintLength_8.setName("SketchConstraintLength_7")
145 SketchConstraintLength_9 = Sketch_3.setLength(SketchLine_22.result(), "1.5-ep_voiles/2")
146 SketchConstraintLength_9.setName("SketchConstraintLength_8")
147 SketchConstraintVertical_7 = Sketch_3.setVertical(SketchLine_23.result())
148 SketchLine_25 = Sketch_3.addLine(model.selection("EDGE", "Sketch_1/Edge-SketchLine_4"))
149 SketchLine_25.setName("SketchLine_23")
150 SketchLine_25.result().setName("SketchLine_23")
151 SketchConstraintDistance_8 = Sketch_3.setDistance(SketchLine_22.endPoint(), SketchLine_25.result(), "0.25+ep_voiles/2")
152 SketchConstraintDistance_8.setName("SketchConstraintDistance_5")
153 SketchConstraintLength_10 = Sketch_3.setLength(SketchLine_23.result(), "1-ep_voiles/2")
154 SketchConstraintLength_10.setName("SketchConstraintLength_9")
155 SketchLine_26 = Sketch_3.addLine(model.selection("EDGE", "Extrusion_1_1/Generated_Face_8&Extrusion_1_1/To_Face_1"))
156 SketchLine_26.setName("SketchLine_35")
157 SketchLine_26.result().setName("SketchLine_35")
158 SketchConstraintDistance_9 = Sketch_3.setDistance(SketchLine_17.startPoint(), SketchLine_26.result(), 0.375)
159 SketchConstraintDistance_9.setName("SketchConstraintDistance_12")
160 model.do()
161 Edge_1 = model.addEdge(Part_1_doc, [model.selection("EDGE", "Sketch_3/Edge-SketchLine_15"), model.selection("EDGE", "Sketch_3/Edge-SketchLine_17"), model.selection("EDGE", "Sketch_3/Edge-SketchLine_18"), model.selection("EDGE", "Sketch_3/Edge-SketchLine_20"), model.selection("EDGE", "Sketch_3/Edge-SketchLine_21")])
162 Extrusion_3 = model.addExtrusion(Part_1_doc, [model.selection("EDGE", "Edge_1_1"), model.selection("EDGE", "Edge_1_2"), model.selection("EDGE", "Edge_1_3"), model.selection("EDGE", "Edge_1_4"), model.selection("EDGE", "Edge_1_5")], model.selection("EDGE", "PartSet/OZ"), "h_ouverture", 0)
163 Plane_4 = model.addPlane(Part_1_doc, model.selection("VERTEX", "Extrusion_3_1/Generated_Edge_2&Extrusion_3_1/To_Edge_1"), model.selection("VERTEX", "Extrusion_3_3/Generated_Edge_2&Extrusion_3_3/To_Edge_1"), model.selection("VERTEX", "Extrusion_3_4/Generated_Edge_1&Extrusion_3_4/To_Edge_1"))
164 Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1"))
165 SketchLine_27 = Sketch_4.addLine(0, 2.950000000000001, 0, 0)
166 SketchLine_27.setName("SketchLine_26")
167 SketchLine_27.result().setName("SketchLine_26")
168 SketchPoint_2 = Sketch_4.addPoint(model.selection("VERTEX", "Extrusion_3_1/Generated_Edge_2&Extrusion_3_1/To_Edge_1"))
169 SketchConstraintCoincidence_24 = Sketch_4.setCoincident(SketchLine_27.startPoint(), SketchPoint_2.result())
170 SketchPoint_3 = Sketch_4.addPoint(model.selection("VERTEX", "Extrusion_3_3/Generated_Edge_2&Extrusion_3_3/To_Edge_1"))
171 SketchConstraintCoincidence_25 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchPoint_3.result())
172 SketchLine_28 = Sketch_4.addLine(0, 0, 3.975000000000001, 0)
173 SketchLine_28.setName("SketchLine_27")
174 SketchLine_28.result().setName("SketchLine_27")
175 SketchConstraintCoincidence_26 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_28.startPoint())
176 SketchPoint_4 = Sketch_4.addPoint(model.selection("VERTEX", "Extrusion_3_4/Generated_Edge_1&Extrusion_3_4/To_Edge_1"))
177 SketchConstraintCoincidence_27 = Sketch_4.setCoincident(SketchLine_28.endPoint(), SketchPoint_4.result())
178 SketchLine_29 = Sketch_4.addLine(3.975000000000001, 0, 3.975000000000001, 0.95)
179 SketchLine_29.setName("SketchLine_28")
180 SketchLine_29.result().setName("SketchLine_28")
181 SketchConstraintCoincidence_28 = Sketch_4.setCoincident(SketchLine_28.endPoint(), SketchLine_29.startPoint())
182 SketchPoint_5 = Sketch_4.addPoint(model.selection("VERTEX", "Extrusion_3_5/Generated_Edge_1&Extrusion_3_5/To_Edge_1"))
183 SketchConstraintCoincidence_29 = Sketch_4.setCoincident(SketchLine_29.endPoint(), SketchPoint_5.result())
184 model.do()
185 Edge_2 = model.addEdge(Part_1_doc, [model.selection("EDGE", "Sketch_4/Edge-SketchLine_26"), model.selection("EDGE", "Sketch_4/Edge-SketchLine_27"), model.selection("EDGE", "Sketch_4/Edge-SketchLine_28")])
186 Extrusion_4 = model.addExtrusion(Part_1_doc, [model.selection("EDGE", "Edge_2_1"), model.selection("EDGE", "Edge_2_2"), model.selection("EDGE", "Edge_2_3")], model.selection("EDGE", "PartSet/OZ"), "h_apres_ouverture-ep_dalles/2", 0)
187 Plane_5 = model.addPlane(Part_1_doc, model.selection("VERTEX", "Extrusion_4_1/Generated_Edge_2&Extrusion_4_1/To_Edge_1"), model.selection("VERTEX", "Extrusion_4_1/Generated_Edge_1&Extrusion_4_1/To_Edge_1"), model.selection("VERTEX", "Extrusion_4_2/Generated_Edge_1&Extrusion_4_2/To_Edge_1"))
188 Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_2"))
189 SketchLine_30 = Sketch_5.addLine(0, 2.950000000000001, 0, 0)
190 SketchLine_30.setName("SketchLine_29")
191 SketchLine_30.result().setName("SketchLine_29")
192 SketchPoint_6 = Sketch_5.addPoint(model.selection("VERTEX", "Extrusion_4_1/Generated_Edge_2&Extrusion_4_1/To_Edge_1"))
193 SketchConstraintCoincidence_30 = Sketch_5.setCoincident(SketchLine_30.startPoint(), SketchPoint_6.result())
194 SketchPoint_7 = Sketch_5.addPoint(model.selection("VERTEX", "Extrusion_4_1/Generated_Edge_1&Extrusion_4_1/To_Edge_1"))
195 SketchConstraintCoincidence_31 = Sketch_5.setCoincident(SketchLine_30.endPoint(), SketchPoint_7.result())
196 SketchLine_31 = Sketch_5.addLine(0, 0, 3.975000000000001, 0)
197 SketchLine_31.setName("SketchLine_30")
198 SketchLine_31.result().setName("SketchLine_30")
199 SketchConstraintCoincidence_32 = Sketch_5.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint())
200 SketchPoint_8 = Sketch_5.addPoint(model.selection("VERTEX", "Extrusion_4_2/Generated_Edge_1&Extrusion_4_2/To_Edge_1"))
201 SketchConstraintCoincidence_33 = Sketch_5.setCoincident(SketchLine_31.endPoint(), SketchPoint_8.result())
202 SketchLine_32 = Sketch_5.addLine(3.975000000000001, 0, 3.975000000000001, 0.95)
203 SketchLine_32.setName("SketchLine_31")
204 SketchLine_32.result().setName("SketchLine_31")
205 SketchConstraintCoincidence_34 = Sketch_5.setCoincident(SketchLine_31.endPoint(), SketchLine_32.startPoint())
206 SketchPoint_9 = Sketch_5.addPoint(model.selection("VERTEX", "Extrusion_4_3/Generated_Edge_1&Extrusion_4_3/To_Edge_1"))
207 SketchConstraintCoincidence_35 = Sketch_5.setCoincident(SketchLine_32.endPoint(), SketchPoint_9.result())
208 SketchLine_33 = Sketch_5.addLine(3.975000000000001, 0.95, 0, 2.950000000000001)
209 SketchLine_33.setName("SketchLine_32")
210 SketchLine_33.result().setName("SketchLine_32")
211 SketchConstraintCoincidence_36 = Sketch_5.setCoincident(SketchLine_32.endPoint(), SketchLine_33.startPoint())
212 SketchConstraintCoincidence_37 = Sketch_5.setCoincident(SketchLine_30.startPoint(), SketchLine_33.endPoint())
213 SketchConstraintCoincidence_38 = Sketch_5.setCoincident(SketchPoint_6.coordinates(), SketchLine_33.endPoint())
214 SketchLine_34 = Sketch_5.addLine(1.85, 2.019182389937107, 1.85, 0)
215 SketchLine_34.setName("SketchLine_33")
216 SketchLine_34.result().setName("SketchLine_33")
217 SketchConstraintCoincidence_39 = Sketch_5.setCoincident(SketchLine_34.startPoint(), SketchLine_33.result())
218 SketchLine_35 = Sketch_5.addLine(2.075000000000001, 1.905974842767296, 2.075000000000001, 0)
219 SketchLine_35.setName("SketchLine_34")
220 SketchLine_35.result().setName("SketchLine_34")
221 SketchConstraintCoincidence_40 = Sketch_5.setCoincident(SketchLine_35.startPoint(), SketchLine_33.result())
222 SketchConstraintCoincidence_41 = Sketch_5.setCoincident(SketchLine_35.endPoint(), SketchLine_31.result())
223 SketchConstraintCoincidence_42 = Sketch_5.setCoincident(SketchLine_34.endPoint(), SketchLine_31.result())
224 SketchConstraintVertical_8 = Sketch_5.setVertical(SketchLine_34.result())
225 SketchConstraintVertical_9 = Sketch_5.setVertical(SketchLine_35.result())
226 SketchConstraintDistance_10 = Sketch_5.setDistance(SketchLine_34.startPoint(), SketchLine_30.result(), "1.8+ep_voiles/2")
227 SketchConstraintDistance_11 = Sketch_5.setDistance(SketchLine_35.startPoint(), SketchLine_32.result(), "1.85+ep_voiles/2")
228 model.do()
229 Face_1 = model.addFace(Part_1_doc, [model.selection("WIRE", "Sketch_5/Wire-SketchLine_29f-SketchLine_30f-SketchLine_32f-SketchLine_33r")])
230 Face_2 = model.addFace(Part_1_doc, [model.selection("WIRE", "Sketch_5/Wire-SketchLine_30f-SketchLine_31f-SketchLine_32f-SketchLine_34f")])
231 Face_3 = model.addFace(Part_1_doc, [model.selection("WIRE", "Sketch_5/Wire-SketchLine_30f-SketchLine_32f-SketchLine_33f-SketchLine_34r")])
232 Translation_1 = model.addTranslation(Part_1_doc, [model.selection("FACE", "Extrusion_4_3"), model.selection("FACE", "Extrusion_3_3"), model.selection("FACE", "Extrusion_4_2"), model.selection("FACE", "Extrusion_3_5"), model.selection("FACE", "Extrusion_3_4"), model.selection("FACE", "Extrusion_3_2"), model.selection("FACE", "Extrusion_4_1"), model.selection("FACE", "Extrusion_3_1"), model.selection("FACE", "Face_1_1"), model.selection("FACE", "Face_3_1"), model.selection("FACE", "Face_2_1")], model.selection("EDGE", "PartSet/OZ"), "h_ouverture+h_apres_ouverture-ep_dalles/2")
233 Recover_1_objects = [Face_2.result(), Face_3.result(), Face_1.result(), Extrusion_3.result(), Extrusion_4.result(), Extrusion_3.results()[1], Extrusion_3.results()[3], Extrusion_3.results()[4], Extrusion_4.results()[1], Extrusion_3.results()[2], Extrusion_4.results()[2]]
234 Recover_1 = model.addRecover(Part_1_doc, Translation_1, Recover_1_objects)
235 Translation_2 = model.addTranslation(Part_1_doc, [model.selection("FACE", "Recover_1_2"), model.selection("FACE", "Recover_1_5"), model.selection("FACE", "Recover_1_3"), model.selection("FACE", "Recover_1_4"), model.selection("FACE", "Recover_1_1"), model.selection("FACE", "Recover_1_6"), model.selection("FACE", "Recover_1_8"), model.selection("FACE", "Recover_1_7"), model.selection("FACE", "Recover_1_11"), model.selection("FACE", "Recover_1_10"), model.selection("FACE", "Recover_1_9")], model.selection("EDGE", "PartSet/OZ"), "2*(h_ouverture+h_apres_ouverture-ep_dalles/2)")
236 Recover_2_objects = [Recover_1.results()[8], Recover_1.results()[9], Recover_1.results()[10], Recover_1.results()[6], Recover_1.results()[7], Recover_1.results()[5], Recover_1.result(), Recover_1.results()[3], Recover_1.results()[2], Recover_1.results()[4], Recover_1.results()[1]]
237 Recover_2 = model.addRecover(Part_1_doc, Translation_2, Recover_2_objects)
238 Vertex_1 = model.addVertex(Part_1_doc, [model.selection("VERTEX", "Sketch_2/Vertex-SketchPoint_1")])
239 Extrusion_5 = model.addExtrusion(Part_1_doc, [model.selection("VERTEX", "Vertex_1_1")], model.selection("EDGE", "PartSet/OZ"), model.selection("FACE", "Translation_2_11"), 0, model.selection(), 0)
240 Partition_1 = model.addPartition(Part_1_doc, [model.selection("SOLID", "Extrusion_1_1"), model.selection("SOLID", "Extrusion_2_1"), model.selection("FACE", "Translation_1_1"), model.selection("FACE", "Translation_1_2"), model.selection("FACE", "Translation_1_3"), model.selection("FACE", "Translation_1_4"), model.selection("FACE", "Translation_1_5"), model.selection("FACE", "Translation_1_6"), model.selection("FACE", "Translation_1_7"), model.selection("FACE", "Translation_1_8"), model.selection("FACE", "Translation_1_9"), model.selection("FACE", "Translation_1_10"), model.selection("FACE", "Translation_1_11"), model.selection("FACE", "Translation_2_1"), model.selection("FACE", "Translation_2_2"), model.selection("FACE", "Translation_2_3"), model.selection("FACE", "Translation_2_4"), model.selection("FACE", "Translation_2_5"), model.selection("FACE", "Translation_2_6"), model.selection("FACE", "Translation_2_7"), model.selection("FACE", "Translation_2_8"), model.selection("FACE", "Translation_2_9"), model.selection("FACE", "Translation_2_10"), model.selection("FACE", "Translation_2_11"), model.selection("FACE", "Recover_2_1"), model.selection("FACE", "Recover_2_2"), model.selection("FACE", "Recover_2_3"), model.selection("FACE", "Recover_2_4"), model.selection("FACE", "Recover_2_5"), model.selection("FACE", "Recover_2_6"), model.selection("FACE", "Recover_2_7"), model.selection("FACE", "Recover_2_8"), model.selection("FACE", "Recover_2_9"), model.selection("FACE", "Recover_2_10"), model.selection("FACE", "Recover_2_11"), model.selection("EDGE", "Extrusion_5_1")])
241 model.do()
242 model.testHaveNamingSubshapes(Partition_1, model, Part_1_doc)
243 model.end()