6 from salome.geom
import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
9 gg = salome.ImportComponentGUI(
"GEOM")
12 notebook = salome_notebook.notebook
13 notebook.set(
"Length", 150)
14 notebook.set(
"Width", 100)
17 box = geompy.MakeBoxDXDYDZ(
"Length",
"Width", 200)
20 id_box = geompy.addToStudy(box,
"Box")
23 gg.createAndDisplayGO(id_box)
24 gg.setDisplayMode(id_box,1)