Salome HOME
Update copyrights
[modules/shaper.git] / src / ModelAPI / Test / TestWeakNaming2222.py
1 # Copyright (C) 2014-2019  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 # -*- coding: utf-8 -*-
21
22 from salome.shaper import model
23
24 model.begin()
25 partSet = model.moduleDocument()
26 Part_1 = model.addPart(partSet)
27 Part_1_doc = Part_1.document()
28 model.addParameter(Part_1_doc, "ep_base", "0.65")
29 model.addParameter(Part_1_doc, "ep_voiles", "0.1")
30 model.addParameter(Part_1_doc, "ep_poteau", "0.15")
31 model.addParameter(Part_1_doc, "h_ouverture", "0.95")
32 model.addParameter(Part_1_doc, "h_apres_ouverture", "0.6")
33 model.addParameter(Part_1_doc, "ep_dalles", "0.12")
34 Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY"))
35 SketchLine_1 = Sketch_1.addLine(0.275, 3.325, -0.375, 3.325)
36 SketchLine_2 = Sketch_1.addLine(-0.375, 3.325, -0.375, -0.325)
37 SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint())
38 SketchLine_3 = Sketch_1.addLine(-0.375, -0.325, 4.275, -0.325)
39 SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.startPoint())
40 SketchLine_4 = Sketch_1.addLine(4.275, -0.325, 4.275, 1.325)
41 SketchConstraintCoincidence_3 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_4.startPoint())
42 SketchLine_5 = Sketch_1.addLine(4.275, 1.325, 3.625, 1.325)
43 SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_4.endPoint(), SketchLine_5.startPoint())
44 SketchLine_6 = Sketch_1.addLine(3.625, 1.325, 3.625, 0.325)
45 SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_5.endPoint(), SketchLine_6.startPoint())
46 SketchLine_7 = Sketch_1.addLine(3.625, 0.325, 0.275, 0.3250000000000001)
47 SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_7.startPoint())
48 SketchLine_8 = Sketch_1.addLine(0.275, 0.3250000000000001, 0.275, 3.325)
49 SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_7.endPoint(), SketchLine_8.startPoint())
50 SketchConstraintCoincidence_8 = Sketch_1.setCoincident(SketchLine_1.startPoint(), SketchLine_8.endPoint())
51 SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_1.result())
52 SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_5.result())
53 SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_3.result())
54 SketchConstraintHorizontal_4 = Sketch_1.setHorizontal(SketchLine_7.result())
55 SketchConstraintVertical_1 = Sketch_1.setVertical(SketchLine_2.result())
56 SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_8.result())
57 SketchConstraintVertical_3 = Sketch_1.setVertical(SketchLine_6.result())
58 SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_4.result())
59 SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_1.result(), "ep_base")
60 SketchConstraintLength_2 = Sketch_1.setLength(SketchLine_2.result(), 3.65)
61 SketchConstraintLength_3 = Sketch_1.setLength(SketchLine_3.result(), 4.65)
62 SketchConstraintLength_4 = Sketch_1.setLength(SketchLine_4.result(), 1.65)
63 SketchConstraintDistance_1 = Sketch_1.setDistance(SketchLine_7.startPoint(), SketchLine_3.result(), "ep_base", False)
64 SketchLine_9 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OX"))
65 SketchConstraintDistance_2 = Sketch_1.setDistance(SketchLine_3.endPoint(), SketchLine_9.result(), "0.275+ep_voiles/2", False)
66 SketchLine_10 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OY"))
67 SketchConstraintDistance_3 = Sketch_1.setDistance(SketchLine_2.startPoint(), SketchLine_10.result(), "0.325+ep_voiles/2", False)
68 SketchConstraintEqual_1 = Sketch_1.setEqual(SketchLine_5.result(), SketchLine_1.result())
69 model.do()
70 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)
71 Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/From_Face"))
72 SketchLine_11 = Sketch_2.addLine(2.26, -2.31, 1.64, -2.31)
73 SketchLine_12 = Sketch_2.addLine(1.64, -2.31, 1.64, -1.69)
74 SketchLine_13 = Sketch_2.addLine(1.64, -1.69, 2.26, -1.69)
75 SketchLine_14 = Sketch_2.addLine(2.26, -1.69, 2.26, -2.31)
76 SketchConstraintCoincidence_9 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchLine_11.startPoint())
77 SketchConstraintCoincidence_10 = Sketch_2.setCoincident(SketchLine_11.endPoint(), SketchLine_12.startPoint())
78 SketchConstraintCoincidence_11 = Sketch_2.setCoincident(SketchLine_12.endPoint(), SketchLine_13.startPoint())
79 SketchConstraintCoincidence_12 = Sketch_2.setCoincident(SketchLine_13.endPoint(), SketchLine_14.startPoint())
80 SketchConstraintHorizontal_5 = Sketch_2.setHorizontal(SketchLine_11.result())
81 SketchConstraintVertical_5 = Sketch_2.setVertical(SketchLine_12.result())
82 SketchConstraintHorizontal_6 = Sketch_2.setHorizontal(SketchLine_13.result())
83 SketchConstraintVertical_6 = Sketch_2.setVertical(SketchLine_14.result())
84 SketchPoint_1 = Sketch_2.addPoint(1.925, -1.875)
85 SketchConstraintLength_5 = Sketch_2.setLength(SketchLine_11.result(), 0.62)
86 SketchConstraintLength_5.setName("SketchConstraintLength_10")
87 SketchConstraintEqual_2 = Sketch_2.setEqual(SketchLine_11.result(), SketchLine_12.result())
88 SketchConstraintDistance_4 = Sketch_2.setDistance(SketchPoint_1.coordinates(), SketchLine_13.result(), "0.11+ep_poteau/2", False)
89 SketchConstraintDistance_4.setName("SketchConstraintDistance_6")
90 SketchConstraintDistance_5 = Sketch_2.setDistance(SketchPoint_1.coordinates(), SketchLine_12.result(), "0.21+ep_poteau/2", False)
91 SketchConstraintDistance_5.setName("SketchConstraintDistance_7")
92 SketchProjection_1 = Sketch_2.addProjection(model.selection("EDGE", "PartSet/OX"), False)
93 SketchLine_15 = SketchProjection_1.createdFeature()
94 SketchProjection_2 = Sketch_2.addProjection(model.selection("EDGE", "PartSet/OY"), False)
95 SketchLine_16 = SketchProjection_2.createdFeature()
96 SketchConstraintDistance_6 = Sketch_2.setDistance(SketchPoint_1.coordinates(), SketchLine_15.result(), "1.75+ep_poteau/2+ep_voiles/2", False)
97 SketchConstraintDistance_6.setName("SketchConstraintDistance_8")
98 SketchConstraintDistance_7 = Sketch_2.setDistance(SketchPoint_1.coordinates(), SketchLine_16.result(), "1.8+ep_poteau/2+ep_voiles/2", False)
99 SketchConstraintDistance_7.setName("SketchConstraintDistance_9")
100 model.do()
101 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)
102 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"))
103 SketchLine_17 = Sketch_3.addLine(0, 2.950000000000001, 0, 1.700000000000001)
104 SketchLine_17.setName("SketchLine_15")
105 SketchLine_17.result().setName("SketchLine_15")
106 SketchLine_18 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OY"))
107 SketchLine_18.setName("SketchLine_16")
108 SketchLine_18.result().setName("SketchLine_16")
109 SketchConstraintCoincidence_13 = Sketch_3.setCoincident(SketchLine_17.startPoint(), SketchLine_18.result())
110 SketchConstraintCoincidence_14 = Sketch_3.setCoincident(SketchLine_17.endPoint(), SketchLine_18.result())
111 SketchLine_19 = Sketch_3.addLine(0, 1.2, 0, 0)
112 SketchLine_19.setName("SketchLine_17")
113 SketchLine_19.result().setName("SketchLine_17")
114 SketchConstraintCoincidence_15 = Sketch_3.setCoincident(SketchLine_19.startPoint(), SketchLine_18.result())
115 SketchConstraintCoincidence_16 = Sketch_3.setCoincident(SketchLine_19.endPoint(), SketchLine_18.result())
116 SketchLine_20 = Sketch_3.addLine(0, 0, 0.95, 0)
117 SketchLine_20.setName("SketchLine_18")
118 SketchLine_20.result().setName("SketchLine_18")
119 SketchLine_21 = Sketch_3.addLine(model.selection("EDGE", "PartSet/OX"))
120 SketchLine_21.setName("SketchLine_19")
121 SketchLine_21.result().setName("SketchLine_19")
122 SketchLine_22 = Sketch_3.addLine(2.525000000000001, 0, 3.975000000000001, 0)
123 SketchLine_22.setName("SketchLine_20")
124 SketchLine_22.result().setName("SketchLine_20")
125 SketchConstraintCoincidence_17 = Sketch_3.setCoincident(SketchLine_22.startPoint(), SketchLine_21.result())
126 SketchConstraintCoincidence_18 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_21.result())
127 SketchLine_23 = Sketch_3.addLine(3.975000000000001, 0, 3.975000000000001, 0.95)
128 SketchLine_23.setName("SketchLine_21")
129 SketchLine_23.result().setName("SketchLine_21")
130 SketchConstraintCoincidence_19 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_23.startPoint())
131 SketchLine_24 = Sketch_3.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_5][Extrusion_1_1/To_Face]"))
132 SketchLine_24.setName("SketchLine_22")
133 SketchLine_24.result().setName("SketchLine_22")
134 SketchConstraintLength_6 = Sketch_3.setLength(SketchLine_17.result(), 1.25)
135 SketchConstraintLength_6.setName("SketchConstraintLength_5")
136 SketchConstraintCoincidence_20 = Sketch_3.setCoincident(SketchLine_19.endPoint(), SketchLine_18.startPoint())
137 SketchConstraintCoincidence_21 = Sketch_3.setCoincident(SketchLine_20.startPoint(), SketchLine_19.endPoint())
138 SketchConstraintLength_7 = Sketch_3.setLength(SketchLine_19.result(), "1.25-ep_voiles/2")
139 SketchConstraintLength_7.setName("SketchConstraintLength_6")
140 SketchConstraintLength_8 = Sketch_3.setLength(SketchLine_20.result(), "1-ep_voiles/2")
141 SketchConstraintLength_8.setName("SketchConstraintLength_7")
142 SketchConstraintLength_9 = Sketch_3.setLength(SketchLine_22.result(), "1.5-ep_voiles/2")
143 SketchConstraintLength_9.setName("SketchConstraintLength_8")
144 SketchConstraintVertical_7 = Sketch_3.setVertical(SketchLine_23.result())
145 SketchLine_25 = Sketch_3.addLine(model.selection("EDGE", "Sketch_1/SketchLine_4"))
146 SketchLine_25.setName("SketchLine_23")
147 SketchLine_25.result().setName("SketchLine_23")
148 SketchConstraintDistance_8 = Sketch_3.setDistance(SketchLine_22.endPoint(), SketchLine_25.result(), "0.25+ep_voiles/2", False)
149 SketchConstraintDistance_8.setName("SketchConstraintDistance_5")
150 SketchConstraintLength_10 = Sketch_3.setLength(SketchLine_23.result(), "1-ep_voiles/2")
151 SketchConstraintLength_10.setName("SketchConstraintLength_9")
152 SketchLine_26 = Sketch_3.addLine(model.selection("EDGE", "[Extrusion_1_1/Generated_Face&Sketch_1/SketchLine_1][Extrusion_1_1/To_Face]"))
153 SketchLine_26.setName("SketchLine_35")
154 SketchLine_26.result().setName("SketchLine_35")
155 SketchConstraintDistance_9 = Sketch_3.setDistance(SketchLine_17.startPoint(), SketchLine_26.result(), 0.375, False)
156 SketchConstraintDistance_9.setName("SketchConstraintDistance_12")
157 model.do()
158 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")]
159 Edge_1 = model.addEdge(Part_1_doc, Edge_1_objects)
160 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")]
161 Extrusion_3 = model.addExtrusion(Part_1_doc, Extrusion_3_objects, model.selection("EDGE", "PartSet/OZ"), "h_ouverture", 0)
162 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"))
163 Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_1"))
164 SketchLine_27 = Sketch_4.addLine(0, 2.950000000000001, 0, 0)
165 SketchLine_27.setName("SketchLine_26")
166 SketchLine_27.result().setName("SketchLine_26")
167 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"))
168 SketchConstraintCoincidence_22 = Sketch_4.setCoincident(SketchLine_27.startPoint(), SketchPoint_2.result())
169 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"))
170 SketchConstraintCoincidence_23 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchPoint_3.result())
171 SketchLine_28 = Sketch_4.addLine(0, 0, 3.975000000000001, 0)
172 SketchLine_28.setName("SketchLine_27")
173 SketchLine_28.result().setName("SketchLine_27")
174 SketchConstraintCoincidence_24 = Sketch_4.setCoincident(SketchLine_27.endPoint(), SketchLine_28.startPoint())
175 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"))
176 SketchConstraintCoincidence_25 = Sketch_4.setCoincident(SketchLine_28.endPoint(), SketchPoint_4.result())
177 SketchLine_29 = Sketch_4.addLine(3.975000000000001, 0, 3.975000000000001, 0.95)
178 SketchLine_29.setName("SketchLine_28")
179 SketchLine_29.result().setName("SketchLine_28")
180 SketchConstraintCoincidence_26 = Sketch_4.setCoincident(SketchLine_28.endPoint(), SketchLine_29.startPoint())
181 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"))
182 SketchConstraintCoincidence_27 = Sketch_4.setCoincident(SketchLine_29.endPoint(), SketchPoint_5.result())
183 model.do()
184 Edge_2_objects = [model.selection("EDGE", "Sketch_4/SketchLine_26"), model.selection("EDGE", "Sketch_4/SketchLine_27"), model.selection("EDGE", "Sketch_4/SketchLine_28")]
185 Edge_2 = model.addEdge(Part_1_doc, Edge_2_objects)
186 Extrusion_4_objects = [model.selection("EDGE", "Edge_2_1"), model.selection("EDGE", "Edge_2_2"), model.selection("EDGE", "Edge_2_3")]
187 Extrusion_4 = model.addExtrusion(Part_1_doc, Extrusion_4_objects, model.selection("EDGE", "PartSet/OZ"), "h_apres_ouverture-ep_dalles/2", 0)
188 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"))
189 Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "Plane_2"))
190 SketchLine_30 = Sketch_5.addLine(0, 2.950000000000001, 0, 0)
191 SketchLine_30.setName("SketchLine_29")
192 SketchLine_30.result().setName("SketchLine_29")
193 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"))
194 SketchConstraintCoincidence_28 = Sketch_5.setCoincident(SketchLine_30.startPoint(), SketchPoint_6.result())
195 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"))
196 SketchConstraintCoincidence_29 = Sketch_5.setCoincident(SketchLine_30.endPoint(), SketchPoint_7.result())
197 SketchLine_31 = Sketch_5.addLine(0, 0, 3.975000000000001, 0)
198 SketchLine_31.setName("SketchLine_30")
199 SketchLine_31.result().setName("SketchLine_30")
200 SketchConstraintCoincidence_30 = Sketch_5.setCoincident(SketchLine_30.endPoint(), SketchLine_31.startPoint())
201 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"))
202 SketchConstraintCoincidence_31 = Sketch_5.setCoincident(SketchLine_31.endPoint(), SketchPoint_8.result())
203 SketchLine_32 = Sketch_5.addLine(3.975000000000001, 0, 3.975000000000001, 0.95)
204 SketchLine_32.setName("SketchLine_31")
205 SketchLine_32.result().setName("SketchLine_31")
206 SketchConstraintCoincidence_32 = Sketch_5.setCoincident(SketchLine_31.endPoint(), SketchLine_32.startPoint())
207 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"))
208 SketchConstraintCoincidence_33 = Sketch_5.setCoincident(SketchLine_32.endPoint(), SketchPoint_9.result())
209 SketchLine_33 = Sketch_5.addLine(3.975000000000001, 0.95, 0, 2.950000000000001)
210 SketchLine_33.setName("SketchLine_32")
211 SketchLine_33.result().setName("SketchLine_32")
212 SketchConstraintCoincidence_34 = Sketch_5.setCoincident(SketchLine_32.endPoint(), SketchLine_33.startPoint())
213 SketchConstraintCoincidence_35 = Sketch_5.setCoincident(SketchLine_30.startPoint(), SketchLine_33.endPoint())
214 SketchConstraintCoincidence_36 = Sketch_5.setCoincident(SketchPoint_6.coordinates(), SketchLine_33.endPoint())
215 SketchLine_34 = Sketch_5.addLine(1.85, 2.019182389937107, 1.85, 0)
216 SketchLine_34.setName("SketchLine_33")
217 SketchLine_34.result().setName("SketchLine_33")
218 SketchConstraintCoincidence_37 = Sketch_5.setCoincident(SketchLine_34.startPoint(), SketchLine_33.result())
219 SketchLine_35 = Sketch_5.addLine(2.075000000000001, 1.905974842767296, 2.075000000000001, 0)
220 SketchLine_35.setName("SketchLine_34")
221 SketchLine_35.result().setName("SketchLine_34")
222 SketchConstraintCoincidence_38 = Sketch_5.setCoincident(SketchLine_35.startPoint(), SketchLine_33.result())
223 SketchConstraintCoincidence_39 = Sketch_5.setCoincident(SketchLine_35.endPoint(), SketchLine_31.result())
224 SketchConstraintCoincidence_40 = Sketch_5.setCoincident(SketchLine_34.endPoint(), SketchLine_31.result())
225 SketchConstraintVertical_8 = Sketch_5.setVertical(SketchLine_34.result())
226 SketchConstraintVertical_9 = Sketch_5.setVertical(SketchLine_35.result())
227 SketchConstraintDistance_10 = Sketch_5.setDistance(SketchLine_34.startPoint(), SketchLine_30.result(), "1.8+ep_voiles/2", False)
228 SketchConstraintDistance_10.setName("SketchConstraintDistance_10")
229 SketchConstraintDistance_11 = Sketch_5.setDistance(SketchLine_35.startPoint(), SketchLine_32.result(), "1.85+ep_voiles/2", False)
230 SketchConstraintDistance_11.setName("SketchConstraintDistance_11")
231 model.do()
232 Face_1 = model.addFace(Part_1_doc, [model.selection("WIRE", "Sketch_5/Face-SketchLine_29r-SketchLine_30f-SketchLine_33r-SketchLine_32f_wire")])
233 Face_2 = model.addFace(Part_1_doc, [model.selection("WIRE", "Sketch_5/Face-SketchLine_30f-SketchLine_31f-SketchLine_32f-SketchLine_34f_wire")])
234 Face_3 = model.addFace(Part_1_doc, [model.selection("WIRE", "Sketch_5/Face-SketchLine_30f-SketchLine_34r-SketchLine_32f-SketchLine_33f_wire")])
235 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")]
236 Translation_1 = model.addTranslation(Part_1_doc, Translation_1_objects, model.selection("EDGE", "PartSet/OZ"), "h_ouverture+h_apres_ouverture-ep_dalles/2")
237 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]]
238 Recover_1 = model.addRecover(Part_1_doc, Translation_1, Recover_1_objects)
239 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")]
240 Translation_2 = model.addTranslation(Part_1_doc, Translation_2_objects, model.selection("EDGE", "PartSet/OZ"), "2*(h_ouverture+h_apres_ouverture-ep_dalles/2)")
241 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]]
242 Recover_2 = model.addRecover(Part_1_doc, Translation_2, Recover_2_objects)
243 Vertex_1 = model.addVertex(Part_1_doc, [model.selection("VERTEX", "Sketch_2/SketchPoint_1")])
244 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)
245 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")]
246 Partition_1 = model.addPartition(Part_1_doc, Partition_1_objects)
247 model.do()
248 model.testHaveNamingSubshapes(Partition_1, model, Part_1_doc)
249 model.end()