# Write multiple timesteps for Multiblockdataset

**URL:** https://discourse.vtk.org/t/write-multiple-timesteps-for-multiblockdataset/3611
**Category:** Support
**Created:** [June 22, 2020, 9:17am UTC](https://discourse.vtk.org/t/write-multiple-timesteps-for-multiblockdataset/3611 "2020-06-22T09:17:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sprychipper](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@Sprychipper](https://discourse.vtk.org/u/Sprychipper)
#### Post date: [June 22, 2020, 9:17am UTC](https://discourse.vtk.org/t/write-multiple-timesteps-for-multiblockdataset/3611/1 "2020-06-22T09:17:54Z")

</div>

Hello ,

how do i create a multiblock dataset with multiple timesteps/steps. I have looked at the documentation and API without any success.

I used the following example as basis [CompositeDataSet] [https://lorensen.github.io/VTKExamples/site/Python/CompositeData/MultiBlockDataSet/](https://lorensen.github.io/VTKExamples/site/Python/CompositeData/MultiBlockDataSet/))

The example shows how to create one, which works well. I would like to have multiple steps for the same, how do i do it.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![Sprychipper](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@Sprychipper](https://discourse.vtk.org/u/Sprychipper)
#### Post date: [June 23, 2020, 7:44pm UTC](https://discourse.vtk.org/t/write-multiple-timesteps-for-multiblockdataset/3611/2 "2020-06-23T19:44:28Z")

</div>

so solved it myself. Solution is to write a new file each time and paraview recognizes them as a sequence of time steps.

e.g  
writer.SetName(“File\_0.vtm”)  
writer.Write()

```
writer.SetName("File_1.vtm")
writer.Write()
```
