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(20, 20, 10)
12 Revolution_1 = model.addRevolution(Part_1_doc,
13 [model.selection("COMPOUND", "Sketch_1")],
14 model.selection("EDGE", "PartSet/OY"),