<div dir="ltr"><div><div>I tried this in the binary download of paraview 4.1<br><br>

<p style="margin:0px;text-indent:0px"><span style="font-family:'Courier';font-size:11pt;color:rgb(0,0,0)">>>> s = Sphere()</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Courier';font-size:11pt;color:rgb(0,0,0)">>>> w = DataSetCSVWriter(s, FileName='/tmp/test.csv', FieldAssociation='Points')</span></p>


<p style="margin:0px;text-indent:0px"><span style="font-family:'Courier';font-size:11pt;color:rgb(0,0,0)">>>> w.UpdatePipeline()</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Courier';font-size:11pt;color:rgb(0,0,0)">>>> <br></span></p><br>and successfully had a file written.<br><br>You might try explicitly passing your reader as input to the DataSetCSVWriter rather than relying on the active source.<br>

<br>I am not familiar with partitioned unstructured grid to know if any additional steps are needed.<br></div><br></div>good luck<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 8, 2014 at 11:43 AM, denis cohen <span dir="ltr"><<a href="mailto:denis.cohen@gmail.com" target="_blank">denis.cohen@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 dir="ltr"><div><div>Hi Casey,<br><br></div>I get no error and I read my data with XMLPartitionedUnstructuredGridReader.<span class="HOEnZb"><font color="#888888"><br>

<br></font></span></div><span class="HOEnZb"><font color="#888888">Denis</font></span><div><div class="h5"><br><br><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Aug 8, 2014 at 5:40 PM, Casey Goodlett <span dir="ltr"><<a href="mailto:casey.goodlett@kitware.com" target="_blank">casey.goodlett@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div dir="ltr"><div>Do you get any error messages in the python console or output window?<br><br></div>What type of data does your source produce polydata, unstructured grid, etc?<br></div><div><div><div class="gmail_extra">


<br><br>

<div class="gmail_quote">On Fri, Aug 8, 2014 at 11:30 AM, denis cohen <span dir="ltr"><<a href="mailto:denis.cohen@gmail.com" target="_blank">denis.cohen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr"><div>Hi Casey,<br><br>I've tried this like in your suggestion:<br><br>SetActiveSource(IntegrateVariables1)<br>DataSetCSVWriter()<br>FileName="foo_points.csv"<br>FieldAssociation = "Points"<br>





UpdatePipeline()<br><br></div>and other similar commands but none produced a csv file. Any hints?<br><br>Thanks<span><font color="#888888"><br><br>Denis</font></span><div><div><br><br><div><div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 5, 2014 at 7:38 PM, Casey Goodlett <span dir="ltr"><<a href="mailto:casey.goodlett@kitware.com" target="_blank">casey.goodlett@kitware.com</a>></span> wrote:<br>






<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Denis,<br><br></div>You could look <a href="http://public.kitware.com/gitweb?p=VeloView.git;a=blob;f=VelodyneHDL/python/veloview/applogic.py;h=4a0d7d546fe57c58a5e073964fc97dcaff03a51e;hb=HEAD" target="_blank">here</a> on lines 468-476 for how this is done in VeloView.  You can ignore the rotateCSVFile function call.<br>








</div><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Sat, Aug 2, 2014 at 5:34 AM, denis cohen <span dir="ltr"><<a href="mailto:denis.cohen@gmail.com" target="_blank">denis.cohen@gmail.com</a>></span> wrote:<br>








</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div><div>Hi,<br>New to python scripting. How can one output a csv file inside a python script/macro?<br>








I am trying the wiki:<br>>>> writer = CreateWriter(".../foo.csv", source)<br>>>> writer.FieldAssociation = "Points" # or "Cells"<br>
>>> writer.UpdatePipeline()<br>>>> del writer<br><br>But I get:<br>Traceback (most recent call last):<br>  File "<string>", line 173, in <module><br>AttributeError: 'str' object has no attribute 'UpdatePipeline'<br>









<br></div>Thanks for any help.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">Denis<br><br></font></span></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://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr">Casey B. Goodlett, Ph.D.<br>Technical Leader<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>








<a href="tel:%28919%29%20969-6990%20x310" value="+19199696990" target="_blank">(919) 969-6990 x310</a></div>
</font></span></div>
</blockquote></div><br></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Casey B. Goodlett, Ph.D.<br>Technical Leader<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>




<a href="tel:%28919%29%20969-6990%20x310" value="+19199696990" target="_blank">(919) 969-6990 x310</a></div>
</div>
</div></div></blockquote></div><br></div></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Casey B. Goodlett, Ph.D.<br>Technical Leader<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>

(919) 969-6990 x310</div>
</div>