# Define Exports option not available

**URL:** https://discourse.paraview.org/t/define-exports-option-not-available/9662
**Category:** In Situ Support
**Tags:** catalyst
**Created:** [May 23, 2022, 2:07pm UTC](https://discourse.paraview.org/t/define-exports-option-not-available/9662 "2022-05-23T14:07:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dutta-alankar](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dutta-alankar/32/13310_2.png) [@dutta-alankar](https://discourse.paraview.org/u/dutta-alankar)
#### Post date: [May 23, 2022, 2:07pm UTC](https://discourse.paraview.org/t/define-exports-option-not-available/9662/1 "2022-05-23T14:07:52Z")

</div>

@Andy_Bauer @utkarsh.ayachit @mwestphal or any experienced user/developer of catalyst  
Define Exports option not available. I’m a beginner in ParaView Catalyst. I was going through the UserGuide. I’m stuck because I don’t see the Define Export option in ParaView GUI. Please help.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/7/7a761ad7f5fa955cd72fa28eca0ea479c63ddba1.jpeg)

I’m stuck in this for long and am unable to follow along with the tutorial provided to use ParaView Catalyst in the documentation. Please help.

---

<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: [June 1, 2022, 12:15pm UTC](https://discourse.paraview.org/t/define-exports-option-not-available/9662/3 "2022-06-01T12:15:12Z")

</div>

@Francois_Mazen @nicolas.vuaille maybe

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [June 1, 2022, 12:26pm UTC](https://discourse.paraview.org/t/define-exports-option-not-available/9662/4 "2022-06-01T12:26:29Z")

</div>

Hello @dutta-alankar ,

You are trying to use old-fashion Catalyst scripts. The option `Define Export` is not available anymore, you should use the new scripts version and the `Extractors` instead.

You can have a look at this short introduction to Catalyst2: [How to try out Catalyst2](https://discourse.paraview.org/t/how-to-try-out-catalyst2/9008)

---

<div class="post-metadata">

### Author: ![dutta-alankar](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dutta-alankar/32/13310_2.png) [@dutta-alankar](https://discourse.paraview.org/u/dutta-alankar)
#### Post date: [June 13, 2022, 3:51pm UTC](https://discourse.paraview.org/t/define-exports-option-not-available/9662/5 "2022-06-13T15:51:44Z")

</div>

@nicolas.vuaille  
I was going through the Catalyst link you provided and tried to use it for CFullExample given as I intend to use it with a C code. I don’t seem to get a proper png extract. grid seems to be fine.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/1/16ae3c3e83b58ec68073e88bb18e853d87ce0eff.jpeg)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/e/e6abe0ab1202da3fdb625c8877d26d912017e64e.jpeg)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/b/b9670847819c34b3a003234b9515b4f8dc5486f4.jpeg)

Although the code runs, I get the following error messages:

```auto
( 25.905s) [pvbatch.3]vtkSMImageExtractWriter:173 ERR| vtkSMImageExtractWriterProxy (0x5560ee007250): No view provided to generate extract from!
( 25.905s) [pvbatch.3]vtkSMExtractsController:185 ERR| vtkSMExtractsController (0x5560e9f83d90): Write failed! Extracts may not be generated correctly!
( 26.037s) [pvbatch.1]vtkSMImageExtractWriter:173 ERR| vtkSMImageExtractWriterProxy (0x560f4fcc89a0): No view provided to generate extract from!
( 26.037s) [pvbatch.1]vtkSMExtractsController:185 ERR| vtkSMExtractsController (0x560f4bc44e40): Write failed! Extracts may not be generated correctly!
( 26.039s) [pvbatch.2]vtkSMImageExtractWriter:173 ERR| vtkSMImageExtractWriterProxy (0x5639c1ddde80): No view provided to generate extract from!
( 26.039s) [pvbatch.2]vtkSMExtractsController:185 ERR| vtkSMExtractsController (0x5639bdd40c90): Write failed! Extracts may not be generated correctly!
( 26.347s) [pvbatch.0]vtkSMImageExtractWriter:173 ERR| vtkSMImageExtractWriterProxy (0x55bde765b880): No view provided to generate extract from!
( 26.347s) [pvbatch.0]vtkSMExtractsController:185 ERR| vtkSMExtractsController (0x55bddfe8a9d0): Write failed! Extracts may not be generated correctly!

```

Extracts produced by the pipeline shared in your tips post (attached) generates clipped images (camera issue maybe!)

 ![RenderView1_000000](https://discourse.paraview.org/uploads/default/original/2X/9/99f798f608a84609f206c99c4020e39b6db34926.png)  
 ![RenderView1_000000](https://discourse.paraview.org/uploads/default/original/2X/9/99f798f608a84609f206c99c4020e39b6db34926.png)

On changing camera properties, I see this:

 ![RenderView1_000001](https://discourse.paraview.org/uploads/default/original/2X/b/b5a319db6f2a7a66cfea91102bcd46fd478d2ba5.png)

I appreciate any help or guidance in the right direction.

One more point I wanted to add is that I used the following commands to compile the example code instead of using cmake because the project where I want to implement Catalyst doesn’t use cmake. Therefore, I wanted to get a good understanding of the build variables needed by compiling this way.

```auto
#!/bin/sh

export LD_LIBRARY_PATH="/home/alankar/comp_libs/catalyst/lib:$LD_LIBRARY_PATH"
export LIBRARY_PATH=$LD_LIBRARY_PATH
export CPATH=/home/alankar/comp_libs/catalyst/include/catalyst-2.0

export CATALYST_IMPLEMENTATION_PATHS="/home/alankar/Downloads/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/lib/catalyst"
export CATALYST_IMPLEMENTATION_NAME="paraview"
mpicc FEDataStructures.c FEDriver.c -L/home/alankar/comp_libs/catalyst/lib -lcatalyst -I/home/alankar/comp_libs/catalyst/include/catalyst-2.0 -DUSE_CATALYST=1 -DPARAVIEW_IMPL_DIR=\"/home/alankar/Downloads/ParaView-5.10.1-MPI-Linux-Python3.9-x86_64/lib/catalyst\" -o FEDriver
mpiexec -n 4 ./FEDriver catalyst2_pipeline.py

```

---

<div class="post-metadata">

### Author: ![dutta-alankar](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dutta-alankar/32/13310_2.png) [@dutta-alankar](https://discourse.paraview.org/u/dutta-alankar)
#### Post date: [June 14, 2022, 4:15am UTC](https://discourse.paraview.org/t/define-exports-option-not-available/9662/6 "2022-06-14T04:15:58Z")

</div>

After some trying and playing around with the python script ([catalyst2\_pipeline.py](https://discourse.paraview.org/uploads/short-url/hONNU2ZxrR5YtLOXM8kc9UXmVeh.py) (7.1 KB)), I was able to generate something better but got the following warning messages.

```auto
( 3.630s) [pvbatch.0]vtkSOADataArrayTemplate:338 WARN| 23vtkSOADataArrayTemplateIdE (0x560192aeb580): GetVoidPointer called. This is very expensive for non-array-of-structs subclasses, as the scalar array must be generated for each call. Using the vtkGenericDataArray API with vtkArrayDispatch are preferred. Define the environment variable VTK_SILENCE_GET_VOID_POINTER_WARNINGS to silence this warning.
( 3.624s) [pvbatch.1]vtkSOADataArrayTemplate:338 WARN| 23vtkSOADataArrayTemplateIdE (0x558637bab690): GetVoidPointer called. This is very expensive for non-array-of-structs subclasses, as the scalar array must be generated for each call. Using the vtkGenericDataArray API with vtkArrayDispatch are preferred. Define the environment variable VTK_SILENCE_GET_VOID_POINTER_WARNINGS to silence this warning.
( 3.630s) [pvbatch.2]vtkSOADataArrayTemplate:338 WARN| 23vtkSOADataArrayTemplateIdE (0x55842f5b8390): GetVoidPointer called. This is very expensive for non-array-of-structs subclasses, as the scalar array must be generated for each call. Using the vtkGenericDataArray API with vtkArrayDispatch are preferred. Define the environment variable VTK_SILENCE_GET_VOID_POINTER_WARNINGS to silence this warning.
( 3.630s) [pvbatch.3]vtkSOADataArrayTemplate:338 WARN| 23vtkSOADataArrayTemplateIdE (0x55bd003d7360): GetVoidPointer called. This is very expensive for non-array-of-structs subclasses, as the scalar array must be generated for each call. Using the vtkGenericDataArray API with vtkArrayDispatch are preferred. Define the environment variable VTK_SILENCE_GET_VOID_POINTER_WARNINGS to silence this warning.
( 32.188s) [pvbatch.0]vtkSOADataArrayTemplate:338 WARN| 23vtkSOADataArrayTemplateIdE (0x56019199f160): GetVoidPointer called. This is very expensive for non-array-of-structs subclasses, as the scalar array must be generated for each call. Using the vtkGenericDataArray API with vtkArrayDispatch are preferred. Define the environment variable VTK_SILENCE_GET_VOID_POINTER_WARNINGS to silence this warning.
( 32.183s) [pvbatch.1]vtkSOADataArrayTemplate:338 WARN| 23vtkSOADataArrayTemplateIdE (0x558636719930): GetVoidPointer called. This is very expensive for non-array-of-structs subclasses, as the scalar array must be generated for each call. Using the vtkGenericDataArray API with vtkArrayDispatch are preferred. Define the environment variable VTK_SILENCE_GET_VOID_POINTER_WARNINGS to silence this warning.
( 32.188s) [pvbatch.2]vtkSOADataArrayTemplate:338 WARN| 23vtkSOADataArrayTemplateIdE (0x55842e159880): GetVoidPointer called. This is very expensive for non-array-of-structs subclasses, as the scalar array must be generated for each call. Using the vtkGenericDataArray API with vtkArrayDispatch are preferred. Define the environment variable VTK_SILENCE_GET_VOID_POINTER_WARNINGS to silence this warning.
( 32.188s) [pvbatch.3]vtkSOADataArrayTemplate:338 WARN| 23vtkSOADataArrayTemplateIdE (0x55bcfef785d0): GetVoidPointer called. This is very expensive for non-array-of-structs subclasses, as the scalar array must be generated for each call. Using the vtkGenericDataArray API with vtkArrayDispatch are preferred. Define the environment variable VTK_SILENCE_GET_VOID_POINTER_WARNINGS to silence this warning.

```

This is what I got:

 ![RenderView1_000001](https://discourse.paraview.org/uploads/default/original/2X/b/b9185792320dbda4b3f0e003798c5fc90eca5d5d.png)

Found a similar topic on discourse with this warning message. Can someone help me with this?  
[Post with same warning message](https://discourse.paraview.org/t/catalyst-v2-for-openfoam/6903)
