diff --git a/doc/salome/examples/Makefile.am b/doc/salome/examples/Makefile.am index 211c7932e..034ad1597 100644 --- a/doc/salome/examples/Makefile.am +++ b/doc/salome/examples/Makefile.am @@ -35,6 +35,7 @@ GOOD_TESTS = \ advanced_geom_objs_ex02.py \ advanced_geom_objs_ex03.py \ angle.py \ + arranging_study_objects.py \ basic_geom_objs_ex01.py \ basic_geom_objs_ex02.py \ basic_geom_objs_ex03.py \ diff --git a/doc/salome/examples/arranging_study_objects.py b/doc/salome/examples/arranging_study_objects.py new file mode 100644 index 000000000..bedbe6161 --- /dev/null +++ b/doc/salome/examples/arranging_study_objects.py @@ -0,0 +1,25 @@ +# Using SALOME NoteBook + +import salome +salome.salome_init() + +import GEOM +from salome.geom import geomBuilder +geompy = geomBuilder.New(salome.myStudy) + +Circle_1 = geompy.MakeCircle(None, None, 100) +Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200) +Cylinder_1 = geompy.MakeCylinderRH(100, 300) +geompy.addToStudy( Circle_1, 'Circle_1' ) +geompy.addToStudy( Box_1, 'Box_1' ) +geompy.addToStudy( Cylinder_1, 'Cylinder_1' ) + +### Folders and it's content +Basic = geompy.NewFolder('Basic') +geompy.PutToFolder(Circle_1, Basic) +Primitives = geompy.NewFolder('Primitives') +geompy.PutListToFolder([Box_1, Cylinder_1], Primitives) + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(1) diff --git a/doc/salome/gui/GEOM/images/arranging1.png b/doc/salome/gui/GEOM/images/arranging1.png new file mode 100644 index 000000000..5a50eda36 Binary files /dev/null and b/doc/salome/gui/GEOM/images/arranging1.png differ diff --git a/doc/salome/gui/GEOM/images/arranging2.png b/doc/salome/gui/GEOM/images/arranging2.png new file mode 100644 index 000000000..2ca6c536e Binary files /dev/null and b/doc/salome/gui/GEOM/images/arranging2.png differ diff --git a/doc/salome/gui/GEOM/images/arranging3.png b/doc/salome/gui/GEOM/images/arranging3.png new file mode 100644 index 000000000..04cc29ad6 Binary files /dev/null and b/doc/salome/gui/GEOM/images/arranging3.png differ diff --git a/doc/salome/gui/GEOM/input/arranging_study_objects_page.doc b/doc/salome/gui/GEOM/input/arranging_study_objects_page.doc new file mode 100644 index 000000000..44df8f830 --- /dev/null +++ b/doc/salome/gui/GEOM/input/arranging_study_objects_page.doc @@ -0,0 +1,27 @@ +/*! + +\page arranging_study_objects_page Arranging objects in study + +The possibility to classify the geometrical objects by moving it into early created container (folder) was introduced to Geometry module. + +\image html arranging1.png "Classified objects in folders" + +To create a folder select "Create folder" popup menu item for root "Geometry" object or another folder. + +\image html arranging2.png "Creation of folder" + +"Drag&Drop" mechanism was integrated to arrange objects. + +\image html arranging3.png "Moving object into folder" + +\note Only two categories of objects can be moved into folder: + + +Our TUI Scripts provide you with useful examples of +\ref tui_arranging_study_objects "Arranging objects in study". + +*/ + diff --git a/doc/salome/gui/GEOM/input/geompy.doc b/doc/salome/gui/GEOM/input/geompy.doc index b339d3b64..43cee55d2 100644 --- a/doc/salome/gui/GEOM/input/geompy.doc +++ b/doc/salome/gui/GEOM/input/geompy.doc @@ -44,6 +44,7 @@ provided by Geometry module.
  • \subpage tui_measurement_tools_page
  • \subpage tui_notebook_geom_page
  • +
  • \subpage tui_arranging_study_objects_page
  • \subpage tui_swig_examples_page