# How to select points from the filter

**URL:** https://discourse.paraview.org/t/how-to-select-points-from-the-filter/13739
**Category:** Development
**Tags:** vtk
**Created:** [January 19, 2024, 11:35am UTC](https://discourse.paraview.org/t/how-to-select-points-from-the-filter/13739 "2024-01-19T11:35:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [January 19, 2024, 11:35am UTC](https://discourse.paraview.org/t/how-to-select-points-from-the-filter/13739/1 "2024-01-19T11:35:22Z")

</div>

Hello

There is a way to select data from the filter on the server side

```auto
 PythonScript->Push("source = paraview.simple.GetActiveSource()");
  PythonScript->Push("ClearSelection(source)");
  StrPython = "SelectIDs(IDs=[";
 ...
  StrPython.erase(StrPython.end() - 1);
  StrPython +=
      "], FieldType='POINT', ContainingCells=False, Source=source, "
      "Modifier='None')";
 PythonScript->Push(StrPython.data());

```

It works, but invokes tremendous volumes of code, including RequestData/RequestDataObject which is not a desirable outcome. However I have not find a native C++ way to do that.

How to do that with C++ inside filter code ?

I would appreciate your help very much

Thanks!
