# Possible to specifiy "format" in vtp file?

**URL:** https://discourse.vtk.org/t/possible-to-specifiy-format-in-vtp-file/3283
**Category:** Support
**Created:** [May 12, 2020, 1:06pm UTC](https://discourse.vtk.org/t/possible-to-specifiy-format-in-vtp-file/3283 "2020-05-12T13:06:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ahmed_salih/32/1164_2.png) [@Ahmed\_Salih](https://discourse.vtk.org/u/Ahmed_Salih)
#### Post date: [May 12, 2020, 1:06pm UTC](https://discourse.vtk.org/t/possible-to-specifiy-format-in-vtp-file/3283/1 "2020-05-12T13:06:40Z")

</div>

Hello!

Basically what I want is that when I open a file in Paraview, it automatically applies the necessary conditions to render it properly. Currently when I load my file, it displays nothing, and I have to manually select “3D Glyps” --\> “2D Glyps” --\> “Vertex” etc. to represent it properly as I want. This makes my workflow a bit slower, since I have to spend about 1 minute on each file I open. (I work with small simulations)

So I wondered if it in a vtp file would be possible to add formatting options, which could do that automatically or how do I go about this efficiently? I am aware of states, but they take the same amount of time for me.

Kind regards

---

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ahmed_salih/32/1164_2.png) [@Ahmed\_Salih](https://discourse.vtk.org/u/Ahmed_Salih)
#### Post date: [May 12, 2020, 1:07pm UTC](https://discourse.vtk.org/t/possible-to-specifiy-format-in-vtp-file/3283/2 "2020-05-12T13:07:05Z")

</div>

[Part\_0000.vtp](https://discourse.vtk.org/uploads/short-url/2cpVdxVuftlWxBv6fPZd4604pfq.vtp) (899.2 KB)

Uploaded example file

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [May 12, 2020, 2:26pm UTC](https://discourse.vtk.org/t/possible-to-specifiy-format-in-vtp-file/3283/3 "2020-05-12T14:26:59Z")

</div>

You could record a Python trace and save it as a Macro. Then after you load the small file, run the macro to set up the filters you want.

---

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ahmed_salih/32/1164_2.png) [@Ahmed\_Salih](https://discourse.vtk.org/u/Ahmed_Salih)
#### Post date: [May 13, 2020, 7:09pm UTC](https://discourse.vtk.org/t/possible-to-specifiy-format-in-vtp-file/3283/4 "2020-05-13T19:09:12Z")

</div>

That is of course a solution, but that requires other users to do the same thing etc. Would be nice if it was possible to include a predefined format file, which would be able to use relevant settings.

Kind regards

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [May 13, 2020, 7:19pm UTC](https://discourse.vtk.org/t/possible-to-specifiy-format-in-vtp-file/3283/5 "2020-05-13T19:19:00Z")

</div>

Alas, there is no way to specify that sequence of filters in the .vtp file, nor is there a setting to automatically apply a macro, though that’s an interesting feature idea. One click to apply a macro doesn’t seem too onerous, and you can share your macro with others to import on their ParaView installations.

---

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ahmed_salih/32/1164_2.png) [@Ahmed\_Salih](https://discourse.vtk.org/u/Ahmed_Salih)
#### Post date: [May 20, 2020, 8:22pm UTC](https://discourse.vtk.org/t/possible-to-specifiy-format-in-vtp-file/3283/6 "2020-05-20T20:22:45Z")

</div>

I see. Hope it gets supported in the future.

Kind regards
