Salome HOME
Merge branch 'master' into cgt/split
[modules/shaper.git] / src / FeaturesPlugin / doc / examples / extrusion_fuse_by_sizes.py
1 # -*- coding: utf-8 -*-
2
3 from salome.shaper import model
4
5 model.begin()
6 partSet = model.moduleDocument()
7 Part_1 = model.addPart(partSet)
8 Part_1_doc = Part_1.document()
9 Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
10 ExtrusionFuse_1 = model.addExtrusionFuse(Part_1_doc,
11                                          [],
12                                          model.selection(),
13                                          0,
14                                          5,
15                                          [model.selection("SOLID", "Box_1_1")])
16 Sketch_1 = model.addSketch(Part_1_doc,
17                            model.selection("FACE", "Box_1_1/Top"))
18 SketchCircle_1 = Sketch_1.addCircle(5, 0, 2)
19 ExtrusionFuse_1.setNestedSketch(Sketch_1)
20 model.do()
21 model.end()