    

 ## On this page

  

 

 # get\_element\_indices

 Last update: 16.07.2026 

<a id="compolyx.plot_data.ContourData.get_element_indices"></a>

## ContourData.get\_element\_indices(visible=None, selected=None)

Get element indices (ACP internal element numbers starting from 0) of plot.

### Parameters

- visible: One or more objects defining visible scope
- selected: Selected one or more objects for ply-wise evaluations.

### Returns

Resulting array with element indices from the intersection of

- data\_scope of plot
- visible\_scope defined by visible
- selection\_scope defined by selected

Indices are returned independent of update status of plot, but only if results for the current plot configuration are available, else an empty array is returned.

### Examples

: Get element indices for current plot with visible scope set to element set “All\_Elements” and with ply1 and ply2 selected:

```default
>>> eis = my_plot.get_element_indices(visible=db.active_model.element_sets['All_Elements'], selected=[ply1, ply2])

```

   
 Get element indices for current plot with visible scope equal to all objects visible in current scene:   
 ```default &gt;&gt;&gt; eis = my_plot.get_element_indices(visible=db.active_model.active_scene.active_set.entities) ```