Salome HOME
Remove coding information from the python scripts due to tuleap issue #16806
[modules/shaper.git] / src / FeaturesPlugin / doc / examples / revolution_by_angles.py
1 from salome.shaper import model
2
3 model.begin()
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)
9 model.do()
10 Revolution_1 = model.addRevolution(Part_1_doc,
11                                    [model.selection("COMPOUND", "Sketch_1")],
12                                    model.selection("EDGE", "PartSet/OY"),
13                                    360,
14                                    0)
15 model.do()
16 model.end()