[Paraview] Saving PlotSelectionOverTime result to CSV file in script

David E DeMarle dave.demarle at kitware.com
Fri Oct 4 14:24:11 EDT 2013


Try Using CreateWriter() like so:
writer = CreateWriter(".../foo.csv", source)
writer.FieldAssociation = "Points" # or "Cells"
writer.UpdatePipeline()
del writer

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Fri, Oct 4, 2013 at 10:18 AM, Peter Maday <madapeti at gmail.com> wrote:

> Dear All,
>
> I would like to automate a process that involves saving the output of a
> PlotSelectionOverTime filter to a CSV file. Manually it is done by invoking
> the "Save data " command from the File menu while the graph view is
> selected.
>
> When I try to record the trace for this step, it does not contain the CSV
> save part.
>
> My question is how to save the PlotSelectionOverTime output to a text file
> in a script.
>
> Thansk a lot!
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131004/64b80a0c/attachment.htm>


More information about the ParaView mailing list