]> SALOME platform Git repositories - modules/shaper.git/blob - src/PythonAPI/examples/MakeBrick3.py
Salome HOME
[PythonAPI] Remove the word shaper from some places in PythonAPI
[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.addBox( mypart, 10, 20, 30 )
23 model.end()
24