<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<br><br>Denis<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>