From 4612039b465ff3758a3739d33ae707ac4a36ec10 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 14 Jul 2009 12:03:17 +0000 Subject: [PATCH] Fix of bug 0020420: Bad links in Documentation --- .../gui/GEOM/input/tui_notebook_geom.doc | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 doc/salome/gui/GEOM/input/tui_notebook_geom.doc diff --git a/doc/salome/gui/GEOM/input/tui_notebook_geom.doc b/doc/salome/gui/GEOM/input/tui_notebook_geom.doc new file mode 100644 index 000000000..629ce6329 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_notebook_geom.doc @@ -0,0 +1,29 @@ +/*! + +\page tui_notebook_geom_page Using SALOME NoteBook + +\anchor tui_notebook_geom + +\code +import geompy +import salome +import salome_notebook +gg = salome.ImportComponentGUI("GEOM") + +# set variables +notebook = salome_notebook.notebook +notebook.set("Length", 150) +notebook.set("Width", 100) + +# create box +box = geompy.MakeBoxDXDYDZ("Length", "Width", 200) + +# add object in the study +id_box = geompy.addToStudy(box,"Box") + +# display the boxes +gg.createAndDisplayGO(id_box) +gg.setDisplayMode(id_box,1) +\endcode + +*/ -- 2.39.2