# Generate CSV of complete pipeline in Custom Application

**URL:** <https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103>\
**Category:** Development\
**Created:** [May 16, 2023, 3:29am UTC](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103 "2023-05-16T03:29:12Z")\
**Posts on this page:** 10\
**Page:** 4

<div class="post-metadata">

**Author:** ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)\
**Post date:** [June 21, 2023, 3:03pm UTC](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103/64 "2023-06-21T15:03:08Z")

</div>

Thank you, it seems like this is a different type of filter (as compared to extract selection, calculator, glyph, resample with dataset, groupdataset and appendAttribute). How can I apply PassArrays on the output of AppendAttribute in C++ on selected arrays.

---

<div class="post-metadata">

**Author:** ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)\
**Post date:** [July 4, 2023, 3:38am UTC](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103/65 "2023-07-04T03:38:42Z")

</div>

> [@mwestphal](#):
>
> C++ or GUI is the same. Figure out how to do it in the GUI, then do the same in C++.

My data file is of type .vts on which I apply my filters. In my C++ code I want to access all the point and cell data in my .vts file, how can I do that?

---

<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:** [July 4, 2023, 9:37am UTC](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103/66 "2023-07-04T09:37:41Z")

</div>

Use GetPointData and GetCellData as usual ?

---

<div class="post-metadata">

**Author:** ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)\
**Post date:** [July 4, 2023, 3:02pm UTC](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103/67 "2023-07-04T15:02:25Z")

</div>

I am not sure how I would use them in my context. dataSource is the source of my .vts file:

```auto
 
    pqServerManagerModel* smModel = pqApplicationCore::instance()->getServerManagerModel();

    QList<pqPipelineSource*> sources = smModel->findItems<pqPipelineSource*>();

    pqPipelineSource* dataSource = sources.first();
    pqActiveObjects::instance().setActiveSource(dataSource);

```

How would I use GetPointData on dataSource?

---

<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:** [July 5, 2023, 7:55am UTC](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103/68 "2023-07-05T07:55:21Z")

</div>

this is client code, if you want to access your data, you have to write code that run on the server side (eg: a filter)

---

<div class="post-metadata">

**Author:** ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)\
**Post date:** [July 5, 2023, 4:10pm UTC](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103/69 "2023-07-05T16:10:17Z")

</div>

Ahh I see, is there a filter which I can apply and extract the points in C++?

---

<div class="post-metadata">

**Author:** ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)\
**Post date:** [July 5, 2023, 6:19pm UTC](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103/70 "2023-07-05T18:19:02Z")

</div>

Can I get the points from the calculator filter instead? I am iterating over all my sources in my pipeline and for the calculator filter I want to access points.

```auto
for (pqPipelineSource* source : sources)
    {
      if (source->getProxy()->GetXMLName() == QString("Calculator")){
          
        //I want to get the points here from the source

      }
    }
        

```

---

<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:** [July 7, 2023, 9:32am UTC](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103/71 "2023-07-07T09:32:56Z")

</div>

You need to fetch the data from server to client, which could be expansive.

---

<div class="post-metadata">

**Author:** ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)\
**Post date:** [July 7, 2023, 4:35pm UTC](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103/72 "2023-07-07T16:35:10Z")

</div>

Makes sense, thanks

---

<div class="post-metadata">

**Author:** ![Muhammad\_Saad\_Atique](https://discourse.paraview.org/user_avatar/discourse.paraview.org/muhammad_saad_atique/32/11159_2.png) [@Muhammad\_Saad\_Atique](https://discourse.paraview.org/u/Muhammad_Saad_Atique)\
**Post date:** [July 7, 2023, 4:37pm UTC](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103/73 "2023-07-07T16:37:37Z")

</div>

What I am trying to achieve is to give an error to my user if there are overlapping points on which same function (using calculator) has been applied.  
Another workaround (more ideal) would be if I can somehow see if (in the below screenshot) ExtractSelection2 has points on which Calculator1 (or the function “Result”) was applied or not. Then in my C++ I can write a test that checks if ExtractSelection2 has points which have a function already applied to it or not

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

[Previous page](https://discourse.paraview.org/t/generate-csv-of-complete-pipeline-in-custom-application/12103.md?page=3)
