]> SALOME platform Git repositories - modules/smesh.git/blobdiff - doc/salome/gui/SMESH/input/tui_grouping_elements.doc
Salome HOME
0020752: EDF 1303 SMESH : Add a 'Select All' button in Create Group dialog box
[modules/smesh.git] / doc / salome / gui / SMESH / input / tui_grouping_elements.doc
index b77edd21ed5608368bb7d28438ec0671617b15b2..763e939d4fa9cea7f510f213119e434d6df4d901 100644 (file)
@@ -19,7 +19,11 @@ aFilter = smesh.GetFilter(smesh.FACE, smesh.FT_Area, smesh.FT_MoreThan, 100.)
 anIds = mesh.GetIdsFromFilter(aFilter) 
 
 # create a group consisting of faces with area > 100
-aGroup = mesh.MakeGroupByIds("Area > 100", smesh.FACE, anIds)
+aGroup1 = mesh.MakeGroupByIds("Area > 100", smesh.FACE, anIds)
+
+# create a group that contains all nodes from the mesh
+aGroup2 = mesh.CreateEmptyGroup(smesh.NODE, "all nodes")
+aGroup2.AddFrom(mesh.mesh)
 
 salome.sg.updateObjBrowser(1)
 \endcode