# VTK Multiple Blocks in One File

**URL:** https://discourse.vtk.org/t/vtk-multiple-blocks-in-one-file/6645
**Category:** Support
**Tags:** file-formats
**Created:** [September 15, 2021, 9:26pm UTC](https://discourse.vtk.org/t/vtk-multiple-blocks-in-one-file/6645 "2021-09-15T21:26:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AhmedAlshawi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/c37758/32.png) [@AhmedAlshawi](https://discourse.vtk.org/u/AhmedAlshawi)
#### Post date: [September 15, 2021, 9:26pm UTC](https://discourse.vtk.org/t/vtk-multiple-blocks-in-one-file/6645/1 "2021-09-15T21:26:47Z")

</div>

Hi, I am relatively new to VTK, and I am using it with Qt.

I am trying to create a vtk file (XML based) that allows me to have multiple blocks/pieces (each an unstructured grid) in a single file. I have managed to create individual vtu files for each block/part, and then to create a parent pvd file which when read in works great.

However when I have 15-20 parts, that’s 15-20 files. I want just 1 file that contains everything.

Could I maybe somehow zip all the files together, and open the zip file with vtk?

I have tried to put the code for each file in a `<component>` tag but that doesnt seem to work.

Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![AhmedAlshawi](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/a/c37758/32.png) [@AhmedAlshawi](https://discourse.vtk.org/u/AhmedAlshawi)
#### Post date: [September 18, 2021, 5:46am UTC](https://discourse.vtk.org/t/vtk-multiple-blocks-in-one-file/6645/2 "2021-09-18T05:46:23Z")

</div>

Anyone have any ideas?
