# Selection for ExtractSelection not saved in state

**URL:** https://discourse.paraview.org/t/selection-for-extractselection-not-saved-in-state/16113
**Category:** ParaView Support
**Tags:** python
**Created:** [February 5, 2025, 6:11pm UTC](https://discourse.paraview.org/t/selection-for-extractselection-not-saved-in-state/16113 "2025-02-05T18:11:40Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![alwaysonemorebug](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@alwaysonemorebug](https://discourse.paraview.org/u/alwaysonemorebug)
#### Post date: [February 5, 2025, 10:53pm UTC](https://discourse.paraview.org/t/selection-for-extractselection-not-saved-in-state/16113/3 "2025-02-05T22:53:51Z")

</div>

Thanks for the suggestion.  
Yes, I tried.  
At a first attempt, both `SelectPoints()` and `SelectCells()` caused ParaView to crash at the line `selection=SelectPoints()`. Not even an error message, the ParaView window just disappears. This seems unusual, I’ve not seen that before. I could try to narrow it down by simplifying my pipeline and see if the switch from `QuerySelect(..., FieldType='CELL', ...)` to `SelectCells` makes a difference.  
Do you have any other example showing the use of `SelectPoints` and `SelectCells`? I struggle to understand the [code posted by Jean M. Favre on Oct. 1, 2018](https://discourse.paraview.org/t/using-find-data-aka-extract-selection-with-python-scripting/562/5). According to the [documentation of `SelectPoints`](https://www.paraview.org/paraview-docs/latest/python/paraview.simple.html), the only arguments of `SelectPoints()` are `query` and `proxy`. But the post suggests to define `FieldType` and `QueryString` after `SelectPoints`. `selection=SelectPoint()` defines that points shall be selected. I don’t get the point (😀) of `selection.FieldType='POINT'` two lines later in that post.

---

_[View the full topic](https://discourse.paraview.org/t/selection-for-extractselection-not-saved-in-state/16113)._
