<div dir="ltr"><div><div><div>Thanks for the reply!<br><br></div>I have tried this setup, however I could not find a filter that would produce the correct output with the CreateWriter. When using the PlotVariablesOverTime it does not work, as it produces a vtkMultiBlockDataset as opposed to a vtkTable that is required by the CSV writer.<br>
<br></div>The solution I have found was to use a programmable filter in a similar setup (with the appropriate selection of the block and column indices):<br><br>progFilter=ProgrammableFilter()<br>progFilter.OutputDataSetType='vtkTable'<br>
progFilter.PythonPath = ''<br>progFilter.RequestInformationScript = ''<br>#progFilter.RequestUpdateExtentScript= ''<br>progFilter.Script = "\<br>dataTable=self.GetInput().GetBlock(0).GetColumn(0)\n\<br>
output=self.GetTableOutput()\n\<br>output.AddColumn(dataTable)\n\<br>"<br><br></div>I believe it is worth mentioning that it is possible to put the debugger breakpoints (pdb.set_trace()) in the progFilter.Script string and this way to figure out what exactly the input of the filter is like.<br>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/4 David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Try Using CreateWriter() like so:<br>writer = CreateWriter(".../foo.csv", source)<br>writer.FieldAssociation = "Points" # or "Cells"<br>
writer.UpdatePipeline()<br>del writer</div>
<div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div>
<br><br><div class="gmail_quote"><div><div class="h5">On Fri, Oct 4, 2013 at 10:18 AM, Peter Maday <span dir="ltr"><<a href="mailto:madapeti@gmail.com" target="_blank">madapeti@gmail.com</a>></span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr"><div><div><div><div>Dear All,<br><br></div>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.<br>
<br></div>When I try to record the trace for this step, it does not contain the CSV save part.<br><br></div>My question is how to save the PlotSelectionOverTime output to a text file in a script.<br><br></div>Thansk a lot! <br>
</div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>