geom/doc/salome/examples/GEOM_box.py
2021-08-12 08:45:03 +02:00

17 lines
417 B
Python

# --- salome initialization
import salome
salome.salome_init_without_session()
# --- geom Python interface
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()
# --- Create a box and publish it into the salome study
Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
geompy.addToStudy( Box_1, 'Box_1' )
# --- update the study object browser
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser()