    

 ## On this page

  

 

 # select\_elements

 Last update: 16.07.2026 

<a id="compolyx.Model.select_elements"></a>

## Model.select\_elements(selection='sel0', op='new', labels=None, indices=None, attached\_to=None, x=None, y=None, z=None, element\_type='all')

Selects element within active model and marks the selection as SELECTED.

### Parameters

- selection: The selection to update. Can be given as string (‘sel0’-‘sel5’ or ‘all’) or ObjectSelection object such as 
    - model.selection
    - scene.active\_set
- op: Select operation. Valid options: all, new (default), add, remove, intersect, inverse, and none.
- labels: List with element labels to select.
- indices: List with element indices to select.
- attached\_to: Elements attached to entities/vertices in this list will be selected.
- x: X-range to select.
- y: Y-range to select.
- z: Z-range to select.
- element\_type: Valid options: solid and shell.