# Export Perspective View using a script

**URL:** <https://forum.inductiveautomation.com/t/export-perspective-view-using-a-script/34395>\
**Category:** General Discussion\
**Created:** [May 4, 2020, 5:42am UTC](https://forum.inductiveautomation.com/t/export-perspective-view-using-a-script/34395 "2020-05-04T05:42:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwin.m](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@ashwin.m](https://forum.inductiveautomation.com/u/ashwin.m)\
**Post date:** [May 4, 2020, 5:42am UTC](https://forum.inductiveautomation.com/t/export-perspective-view-using-a-script/34395/1 "2020-05-04T05:42:07Z")

</div>

Hi,

I have a trend View that needs to be exported on users call.

Can we do that in property binding or somewhere else?

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [May 4, 2020, 12:26pm UTC](https://forum.inductiveautomation.com/t/export-perspective-view-using-a-script/34395/2 "2020-05-04T12:26:04Z")

</div>

What format are you looking to export the trend data:

1. CSV
2. Image
3. Trend Preset (Tags, Axes, etc.)

Numbers 1 and 3 are very possible (not sure about 2)

Also are you using the TimeSeries chart, or the XY Chart?

If you let me know I can give you an example of how to do so 🙂

---

<div class="post-metadata">

**Author:** ![ashwin.m](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@ashwin.m](https://forum.inductiveautomation.com/u/ashwin.m)\
**Post date:** [May 4, 2020, 2:05pm UTC](https://forum.inductiveautomation.com/t/export-perspective-view-using-a-script/34395/3 "2020-05-04T14:05:47Z")

</div>

Not the data, i am looking if its possible to export the view itself, such that i can import it to any other project using script

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 4, 2020, 2:59pm UTC](https://forum.inductiveautomation.com/t/export-perspective-view-using-a-script/34395/4 "2020-05-04T14:59:30Z")

</div>

It’s not possible to do directly, but project resources are just files on the disk. From a script in Perspective, you could theoretically read from `${ignitionInstallDirectory}/data/projects/${nameOfProject}/com.inductiveautomation.perspective/views/path/to/view/view.json`
