Working with groups

Creation and editing groups of subshapes of a geometrical object makes handling subshapes much easier. This functionality is available in 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.