Can you try specifying the full path for the file? The following works for me without any issues with development ParaView, but I think it shouldn't have any issues with 3.10.1 as well.
writer=CreateWriter("/tmp/myFile.csv",PlotOverLine1) writer.FieldAssociation = "Points" writer.WriteAllTimeSteps = 1 writer.UpdatePipeline() On Thu, Aug 11, 2011 at 9:51 AM, Moreland, Kenneth <kmo...@sandia.gov> wrote: > Does anyone know the answer to Tony's question? In summary, how do you > write a time series of csv files? > -Ken > **** Kenneth Moreland > *** Sandia National Laboratories > *********** > *** *** *** email: kmo...@sandia.gov > ** *** ** phone: (505) 844-8919 > *** web: http://www.cs.unm.edu/~kmorel > > From: "Martinez, Luis" <luis.marti...@nrel.gov> > Date: Wed, 10 Aug 2011 09:04:28 -0600 > To: Kenneth Moreland <kmo...@sandia.gov> > Subject: Paraview > > Hi Kenneth, > > > > I took the Paraview training with you a couple of weeks ago in Denver. I > have gotten many of the things working but I am still having trouble with > one minor detail. I am writing a batch script to do post-processing without > having to open paraview GUI but I found a bug on the trace tool. It will not > show the commands for saving data as .csv from the “Plot Over Line” filter. > I found on the wiki how to do this by: > > > > writer=CreateWriter("myFile.csv",PlotOverLine1) > > writer.FieldAssociation = "Points" > > writer.UpdatePipeline() > > del writer > > > > http://www.paraview.org/Wiki/ParaView/Python_Scripting#Exporting_CSV_Data > > > > Now this will only save my data for the first time step. I am interested in > saving the data from the latest time step, or all time steps. If I try > > > > Writer.WriteAllTimeSteps = 1 > > > > I will get the following error: > > > > In /home/kgruchal/scratch/ParaView-3.10.1/Servers/Filters/vtkCSVWriter.cxx, > line 80 > > vtkCSVWriter (0x2aab60975680): Unable to open file: /myFile.0.csv > > > > How can I specify a time step to save the data? > > > > I don’t know if you would know the answer for this or could point me in the > right direction. > > > > Thanks, > > > > Luis (Tony) Martinez > > _______________________________________________ > 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 > > _______________________________________________ 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