Salome HOME
Merge from BR_plugins_pbyacs 03/04/2013
[modules/geom.git] / doc / salome / examples / GEOM_box.py
1 # --- salome initialization
2 import salome
3 salome.salome_init()
4
5 # --- geom Python interface
6 import GEOM
7 from salome.geom import geomBuilder
8 geompy = geomBuilder.New(salome.myStudy)
9
10 # --- Create a box and publish it into the salome study
11 Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
12 geompy.addToStudy( Box_1, 'Box_1' )
13
14 # --- update the study object browser
15 if salome.sg.hasDesktop():
16   salome.sg.updateObjBrowser(1)