]> SALOME platform Git repositories - modules/shaper.git/blob - src/PythonAPI/MakeBrick3.py
Salome HOME
A correction to check modified value in extrusion cut/sketch/etc operations.
[modules/shaper.git] / src / PythonAPI / MakeBrick3.py
1 # Creation of a box using the end-user API
2 # Author: Daniel Brunier-Coulin
3 # -----------------------------
4
5 import modeler
6 import extension
7
8
9 # Initialisation
10
11 modeler.begin()
12 mypartset = modeler.moduleDocument()
13
14
15 # Creating a new Part
16
17 mypart = modeler.addPart(mypartset).document()
18
19
20 # Creating the base of the box
21
22 extension.addBox( mypart, 10, 20, 30 )
23 modeler.end()
24