<div dir="ltr">Hi Enrique,<div><br></div><div>It looks like the writer is attempting to write to / and doesn't have permission to do so. Try specifying the full path in the 'name' variable.</div><div><br></div><div>HTH,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 12, 2015 at 6:02 PM, Enrique Lizarraga-Garcia <span dir="ltr"><<a href="mailto:enrilizaga@gmail.com" target="_blank">enrilizaga@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi all,</div><div><br></div><div>I would like to automate exporting csv files from countour of vtk files. I am tracing the steps in paraview, but it somehow misses the last part, saving/exporting as csv. When I do it manually, it saves <i>n</i> csv files, where <i>n </i>is the number of blocks I have in my simulation. I have successfully saved as csv files PlotOverLine output, and thus I have tried similar procedure with this:</div><div><br></div><div>(…)</div><div><div style="margin:0px;font-size:11px;font-family:Menlo">Contour1 = Contour( PointMergeMethod=<span style="color:rgb(209,47,27)">"Uniform Binning"</span> )</div><div style="margin:0px;font-size:11px;font-family:Menlo">Contour1.PointMergeMethod = <span style="color:#d12f1b">"Uniform Binning"</span></div><div style="margin:0px;font-size:11px;font-family:Menlo">Contour1.ContourBy = [<span style="color:#272ad8">'POINTS'</span>, <span style="color:#272ad8">'PHI'</span>]</div><div style="margin:0px;font-size:11px;font-family:Menlo">Contour1.ComputeNormals = <span style="color:#272ad8">0</span></div><div style="margin:0px;font-size:11px;font-family:Menlo">Contour1.Isosurfaces = [<span style="color:#272ad8">0.0</span>]</div><div style="margin:0px;font-size:11px;font-family:Menlo">source = Contour1</div></div><div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(0,132,0)"><div style="margin:0px;color:rgb(209,47,27)"><div style="margin:0px"><span style="color:rgb(0,0,0)">name = </span>"LevelSet.csv"</div></div></div></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">writer = CreateWriter(name , source)</div><div style="margin:0px;font-size:11px;font-family:Menlo">writer.FieldAssociation = <span style="color:#d12f1b">"Points"</span> <span style="color:#008400"># or "Cells"</span></div><div style="margin:0px;font-size:11px;font-family:Menlo">writer.UpdatePipeline()</div><div style="margin:0px;font-size:11px;font-family:Menlo"><span style="color:#bb2ca2">del</span> writer</div></div><div style="margin:0px;font-size:11px;font-family:Menlo"><br></div><div style="margin:0px">However, I obtain the following error message</div><div style="margin:0px;font-size:11px;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo"><div style="margin:0px">ERROR: In /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/VTKExtensions/Default/vtkCSVWriter.cxx, line 82</div><div style="margin:0px">vtkCSVWriter (0x1213ab5a0): Unable to open file: /LevelSet<i>(...)</i>.csv</div></div><div><div><p>Is there any way to do it?</p><div>Thank you very much in advance,</div><div>Enrique</div><p><br></p><p><br></p></div></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>