[Paraview] paraview python scripting equivalent of File->save Data of contour
Cory Quammen
cory.quammen at kitware.com
Thu Nov 12 20:31:28 EST 2015
Hi Enrique,
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.
HTH,
Cory
On Thu, Nov 12, 2015 at 6:02 PM, Enrique Lizarraga-Garcia <
enrilizaga at gmail.com> wrote:
> Hi all,
>
> 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 *n* csv files,
> where *n *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:
>
> (…)
> Contour1 = Contour( PointMergeMethod="Uniform Binning" )
> Contour1.PointMergeMethod = "Uniform Binning"
> Contour1.ContourBy = ['POINTS', 'PHI']
> Contour1.ComputeNormals = 0
> Contour1.Isosurfaces = [0.0]
> source = Contour1
> name = "LevelSet.csv"
> writer = CreateWriter(name , source)
> writer.FieldAssociation = "Points" # or "Cells"
> writer.UpdatePipeline()
> del writer
>
> However, I obtain the following error message
>
> ERROR: In
> /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/VTKExtensions/Default/vtkCSVWriter.cxx,
> line 82
> vtkCSVWriter (0x1213ab5a0): Unable to open file: /LevelSet*(...)*.csv
>
> Is there any way to do it?
> Thank you very much in advance,
> Enrique
>
>
>
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20151112/7d0a9ae0/attachment.html>
More information about the ParaView
mailing list