1 # -*- coding: utf-8 -*-
3 from salome.shaper import model
6 partSet = model.moduleDocument()
7 Part_1 = model.addPart(partSet)
8 Part_1_doc = Part_1.document()
9 Sketch_1 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
10 SketchCircle_1 = Sketch_1.addCircle(0, 0, 50)
12 Plane_4 = model.addPlane(Part_1_doc,
13 model.selection("FACE", "PartSet/XOY"),
14 model.selection("EDGE", "PartSet/OX"),
16 Plane_5 = model.addPlane(Part_1_doc,
17 model.selection("FACE", "PartSet/XOY"),
18 model.selection("EDGE", "PartSet/OX"),
20 Extrusion_1 = model.addExtrusion(Part_1_doc,
21 [model.selection("COMPOUND", "Sketch_1")],
23 model.selection("FACE", "Plane_2"),
25 model.selection("FACE", "Plane_1"),