# Paraview with C++

**URL:** https://discourse.paraview.org/t/paraview-with-c/7805
**Category:** ParaView Support
**Tags:** backwards-compat, vtk
**Created:** [August 12, 2021, 7:37am UTC](https://discourse.paraview.org/t/paraview-with-c/7805 "2021-08-12T07:37:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HeshamFS](https://discourse.paraview.org/user_avatar/discourse.paraview.org/heshamfs/32/6960_2.png) [@HeshamFS](https://discourse.paraview.org/u/HeshamFS)
#### Post date: [August 12, 2021, 7:37am UTC](https://discourse.paraview.org/t/paraview-with-c/7805/1 "2021-08-12T07:37:41Z")

</div>

Dear community members.

I have a question, and I hope will find the answer here.

So, I have a VTK file which is a 3D microstructure.

Is it possible to use the ParaView C++ API to slice the microstructure in all directions and save the output as an image? I mean, without using the ParaView GUI. Is that possible? If yes, Can you point me to the documentation?

The whole idea to automate my slicing using C++

Best regards,  
Hesham Salama

---

<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: [August 12, 2021, 8:28am UTC](https://discourse.paraview.org/t/paraview-with-c/7805/2 "2021-08-12T08:28:40Z")

</div>

In this case you probably want to use python scripting and pvpython.

---

<div class="post-metadata">

### Author: ![HeshamFS](https://discourse.paraview.org/user_avatar/discourse.paraview.org/heshamfs/32/6960_2.png) [@HeshamFS](https://discourse.paraview.org/u/HeshamFS)
#### Post date: [August 12, 2021, 1:42pm UTC](https://discourse.paraview.org/t/paraview-with-c/7805/3 "2021-08-12T13:42:02Z")

</div>

Thank you for the kind reply. I will try that.
