# Visualizing numbered file using a state file

**URL:** https://discourse.paraview.org/t/visualizing-numbered-file-using-a-state-file/16155
**Category:** ParaView Support
**Tags:** python
**Created:** [February 11, 2025, 4:26pm UTC](https://discourse.paraview.org/t/visualizing-numbered-file-using-a-state-file/16155 "2025-02-11T16:26:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mh0120](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/ba9def/32.png) [@mh0120](https://discourse.paraview.org/u/mh0120)
#### Post date: [February 11, 2025, 4:26pm UTC](https://discourse.paraview.org/t/visualizing-numbered-file-using-a-state-file/16155/1 "2025-02-11T16:26:18Z")

</div>

Hello experts.  
I am trying to load a state file using paraview.simple, version 5.10.1.  
I am using LoadState in paraview.simple to load a state file.  
Is there any way to visualize a sequentially numbered file using a state file?

For example,

```auto
for dnum in range(100, 200 + 1, 10):
    file_path = “FULLPATH/data-{}.cgns”.format(dnum)
    LoadState('a.pvsm',
              LoadStateDataFileOptions='Choose File Names',
              DataDirectory='FILE DIRECTORY',
              filenames=[file_path]
            )

    output_filename = output_filename.format(dnum)
    SaveScreenshot(output_filename, GetActiveView())
    Delete(GetRenderView())

```

and I tried this, but only the data-10.cgns in a.pvsm is loaded.  
Is there a built-in search/replace mechanism I can use to make this work?  
Thank you!
