[Paraview] "File->Save Data" from python

Paul Edwards paul.m.edwards at gmail.com
Thu Feb 24 04:42:18 EST 2011


Thanks Jean - I also found this example when looking through the mailing
list:

8<---------------------------------------------------
try: paraview.simple
except: from paraview.simple import *

Sphere()
view = paraview.simple._create_view("SpreadSheetView")
Show()
Render()
exporters = servermanager.createModule("exporters")
csvExporter = exporters.CSVExporter(FileName="/tmp/test.csv", View=view)
csvExporter.Write()
--------------------------------------------------->8

It would be nice if it worked from the trace (and without having to create a
spreadsheet


On 23 February 2011 16:59, Favre Jean <jfavre at cscs.ch> wrote:

>
> w = CSVWriter()
> w.FileName = "/local/data/tmp/foo.csv"
> #s1 should be of type Table
> w.Input = s1
> w.UpdatePipeline()
>
>
> -----------------
> Jean M. Favre
> Swiss National Supercomputing Center
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110224/4cc63cf0/attachment.htm>


More information about the ParaView mailing list