Salome HOME
Parametric API high level for the primitive "Box".
[modules/shaper.git] / src / PythonAPI / examples / MakeBrick3.py
1 # Creation of a box using the end-user API
2 # Author: Daniel Brunier-Coulin
3 # -----------------------------
4
5 import model
6 import extension
7
8
9 # Initialisation
10
11 model.begin()
12 mypartset = model.moduleDocument()
13
14
15 # Creating a new Part
16
17 mypart = model.addPart(mypartset).document()
18
19
20 # Creating the base of the box
21
22 extension.addBoxScript( mypart, 10, 20, 30 )
23 model.end()
24