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.standardPlane("XOY"))
8 SketchCircle_1 = Sketch_1.addCircle(20, 20, 10)
10 Revolution_1 = model.addRevolution(Part_1_doc,
11 [model.selection("COMPOUND", "Sketch_1")],
12 model.selection("EDGE", "PartSet/OY"),