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