Salome HOME
Correct documentation bugs, adapt for 'Read The Docs' theme (bos #18858)
[modules/shaper.git] / src / CollectionPlugin / doc / groupFeature.rst
1 .. |shape_group.icon| image:: images/shape_group.png
2
3 .. _groupPage:
4
5 Group
6 =====
7
8 A group is a set of geometrical entities created by selection of sub-shapes of the same type.
9 To create a Group in the active part:
10
11 #. select in the Main Menu *Features - > Group* item  or
12 #. click |shape_group.icon| **Group** button in the toolbar:
13
14 The following property panel appears. 
15
16 .. image:: images/group_property_panel.png
17   :align: center
18
19 .. centered::
20   Create a group
21
22 .. |group_vertices| image:: images/group_property_panel_vertice.png
23 .. |group_edges| image:: images/group_property_panel_edge.png
24 .. |group_faces| image:: images/group_property_panel_face.png
25 .. |group_solids| image:: images/group_property_panel_solid.png
26
27 Input fields:
28
29 - **Name** defines the name of the group, by default, it is **Group_n**.
30 - **Type** buttons select geometrical entities to be included in group:
31   
32     |group_vertices| Vertices;
33
34     |group_edges| Edges;
35
36     |group_faces| Faces;
37
38     |group_solids| Solids;
39  
40 - The list of selected entities of the given type.  Multiple selection can be done manually in OCC 3D Viewer by mouse click with Shift button pressed or by rectangle selection. To delete entities from the list, select them and call pop-up menu *Delete* item.
41
42 - **Selection by filters** button opens "selection by filters" property panel and allows to select entities by set of selected filters. For details on filters see :ref:`filtersPlugin`
43
44 - **Show only** button allows to hide all other objects and shapes and show only selected ones.
45
46 - Control **Add elements that share the same topology** allows to add automatically all elements laying on the same topology that was selected and remove these elements if they have disappeared due to the parametrical update. They will be represented as one line in the list of selection and managed in the viewer as one object if this flag is enabled. If flag becomes disabled when such elements are already in the list, they will become divided in one line per one shape.
47
48
49 **TUI Command**:
50
51 .. py:function:: model.addGroup(Part_1_doc, [model.selection("EDGE", "Cone_1_1/Face_1&Cone_1_1/Face_2"), model.selection("EDGE", "Cone_1_1/Face_1")])
52
53     :param part: The current part object
54     :param list: A list of selected entities with type
55     :return: Created object.
56
57 Result
58 """"""
59
60 Created Group appears in the view.
61
62 .. image:: images/group_res.png
63            :align: center
64
65 .. centered::
66    Created group
67
68 **See Also** a sample TUI Script of :ref:`tui_create_group` operation.