Working with groups

The Salome platform offers such a useful functionality as creation and editing groups of subshapes of a geometrical object which makes handling subshapes much easier. However the functionality is available in the OCC viewer only.

 

Create a group

 

To create a group of subshapes of a geometrical object in the main menu select New entity > Group > Create.

The following menu will appear.

 

 

In this Menu:

 

 

The Result of the operation will be a GEOM_Object.

 

TUI Command: geompy.CreateGroup(MainShape, ShapeType), where MainShape is a shape for which the group is created, ShapeType is a type of shapes in the created group.

 

Arguments: 1 Shape + Type of subshape.

 

Example:

 

 

 

 

Edit a group

 

To Edit an existing group in the main menu select New entity > Group > Edit. This menu is designed in the same way as the Create a group menu.

 

The Result of the operation will be a GEOM_Object.

 

TUI Command:

Returns: List of IDs.

 

Arguments: 1 Shape + its subshapes.

 

Dialog Box:

 

 

Our TUI Scripts provide you with useful examples of Working with Groups.