# add annotation that shows \*.pvsm

**URL:** https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578
**Category:** ParaView Support
**Created:** [February 17, 2020, 2:21am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578 "2020-02-17T02:21:59Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![randomwangran](https://discourse.paraview.org/user_avatar/discourse.paraview.org/randomwangran/32/5929_2.png) [@randomwangran](https://discourse.paraview.org/u/randomwangran)
#### Post date: [February 17, 2020, 2:21am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578/1 "2020-02-17T02:21:59Z")

</div>

It would be useful for user who open paraview from \*.pvsm to do batch process.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/0/038d36fdfd5ab28e45e365466abeb762d1e33421.png)

ParaView 5.6.0

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 17, 2020, 3:25am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578/2 "2020-02-17T03:25:03Z")

</div>

I’m not sure what is the usecase here. Could you give more precision ?

---

<div class="post-metadata">

### Author: ![randomwangran](https://discourse.paraview.org/user_avatar/discourse.paraview.org/randomwangran/32/5929_2.png) [@randomwangran](https://discourse.paraview.org/u/randomwangran)
#### Post date: [February 17, 2020, 3:37am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578/3 "2020-02-17T03:37:12Z")

</div>

user open paraview from \*.pvsm (delat\_v\_e4\_1p.pvsm)

![image](https://discourse.paraview.org/uploads/default/original/2X/a/aa78a4f1a76ac596d34b37f32071eb50753d4ed2.png)

---

<div class="post-metadata">

### Author: ![randomwangran](https://discourse.paraview.org/user_avatar/discourse.paraview.org/randomwangran/32/5929_2.png) [@randomwangran](https://discourse.paraview.org/u/randomwangran)
#### Post date: [February 17, 2020, 3:39am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578/4 "2020-02-17T03:39:11Z")

</div>

make it more simple:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/5c28fbb1f433848317f8cea1a266ec0621ca0bea.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 17, 2020, 3:49am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578/5 "2020-02-17T03:49:02Z")

</div>

So you want to be able to show the name of the .pvsm file used in the File-\>LoadState in all the views loaded by the state ?

I’m not sure we want that.

---

<div class="post-metadata">

### Author: ![randomwangran](https://discourse.paraview.org/user_avatar/discourse.paraview.org/randomwangran/32/5929_2.png) [@randomwangran](https://discourse.paraview.org/u/randomwangran)
#### Post date: [February 17, 2020, 3:54am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578/6 "2020-02-17T03:54:21Z")

</div>

![image](https://discourse.paraview.org/uploads/default/original/2X/5/58164a48cde9252a5c1667851c4f6d0b8664f6f0.png)

Do I make myself more clear?

In my case, \*.pvsm contains the same \*.foam

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 17, 2020, 4:00am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578/7 "2020-02-17T04:00:38Z")

</div>

Yes, very clear. But the .pvsm file is not related to the OpenFOAMReader. It would not make sense to display it.

The pipeline of a loaded state if the same as if it was created manually, we can’t discriminate between one and the other.

---

<div class="post-metadata">

### Author: ![randomwangran](https://discourse.paraview.org/user_avatar/discourse.paraview.org/randomwangran/32/5929_2.png) [@randomwangran](https://discourse.paraview.org/u/randomwangran)
#### Post date: [February 17, 2020, 4:01am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578/8 "2020-02-17T04:01:44Z")

</div>

> It would not make sense to display it.

it → \*.pvsm?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 17, 2020, 4:02am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578/9 "2020-02-17T04:02:59Z")

</div>

yes

---

<div class="post-metadata">

### Author: ![randomwangran](https://discourse.paraview.org/user_avatar/discourse.paraview.org/randomwangran/32/5929_2.png) [@randomwangran](https://discourse.paraview.org/u/randomwangran)
#### Post date: [February 17, 2020, 4:03am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578/10 "2020-02-17T04:03:43Z")

</div>

ParaView knows how to open a file with `*.foam` extension.

ParaView knows how to do with it.

ParaView knows how to open a file with `*.pvsm` extension.

ParaView can open with it with many filters.

So, I think ParaView stores some info about input argument.

* * *

ps.

@mwestphal  
I would like to investigate the source code.

Could you give me some reference to it?

I would like to contribute my effort.

* * *

So, the conclusion, is:

It is not possible, now, to show /PATH/TO/\*.pvsm as the function:

`Display File Path` does?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 17, 2020, 4:11am UTC](https://discourse.paraview.org/t/add-annotation-that-shows-pvsm/3578/11 "2020-02-17T04:11:02Z")

</div>

> ParaView can different open a file with \*.foam extension.

Yes ?

> ParaView knows how to do with it.

Yes.

> ParaView know how to open a file with \*.pvsm extension.

Yes and no. A .pvsm file is a state file that describe a full pipeline. It is not open by a reader but by the state loader. As you can see, File → Open and File → LoadState is not the same thing.

> ParaView can open it with many filters.

No. A .pvsm is opened by the state loaded.

> it is not possible, now, to show /PATH/TO/\*.pvsm as the function:

If you refer to the OpenFOAM property. It is not possible and never will be.

> Could you give me some reference to it?

[https://kitware.github.io/paraview-docs/latest/cxx/classvtkSMStateLoader.html](https://kitware.github.io/paraview-docs/latest/cxx/classvtkSMStateLoader.html)
