<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><meta http-equiv="x-dns-prefetch-control" content="off"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi,<br><br>Using the temp folder no changes happen, but changing the slashes the message error also changes. Now the error message is the following:<br><br><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);">Traceback (most recent call last):</span>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);"> File "<string>", line 3, in <module></span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);"> File "C:\Archivos de programa\ParaView 3.8.0-RC2\lib\paraview-3.8\paraview\simple.py", line 115, in OpenDataFile</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);"> reader = globals()[xml_name](FileName=filename, **extraArgs)</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);"> File "C:\Archivos de programa\ParaView 3.8.0-RC2\lib\paraview-3.8\paraview\simple.py", line 542, in CreateObject</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);"> setattr(px, param, params[param])</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);"> File "C:\Archivos de programa\ParaView 3.8.0-RC2\lib\paraview-3.8\paraview\servermanager.py", line 201, in __setattr__</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);"> "to add this attribute.")</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(255, 0, 0);">AttributeError: Attribute FileName does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute.</span></p><br>Some ideas?<br>Thanks again!<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2">----- Mensaje reenviado ----<br><b><span style="font-weight: bold;">De:</span></b> pat marion <pat.marion@kitware.com><br><b><span style="font-weight: bold;">Para:</span></b> Utkarsh Ayachit <utkarsh.ayachit@kitware.com><br><b><span style="font-weight: bold;">CC:</span></b> llapis Pencil <llapispencil@yahoo.es>; PARAVIEW <paraview@paraview.org><br><b><span
style="font-weight: bold;">Enviado:</span></b> mar,6 julio, 2010 15:20<br><b><span style="font-weight: bold;">Asunto:</span></b> Re: [Paraview] Rv: 1 script open different vtk files<br></font><br> Also, try changing the backslashes to forward slashes.<br><br>Pat<br><br><div class="gmail_quote">On Tue, Jul 6, 2010 at 9:10 AM, Utkarsh Ayachit <span dir="ltr"><<a rel="nofollow" ymailto="mailto:utkarsh.ayachit@kitware.com" target="_blank" href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Try putting the file under "c:\temp" does that help?<br>
<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Tue, Jul 6, 2010 at 9:01 AM, llapis Pencil <<a rel="nofollow" ymailto="mailto:llapispencil@yahoo.es" target="_blank" href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>> wrote:<br>
> hi again,<br>
><br>
> I tried to run the script through the python shell, but it still comes up<br>
> errors. The error message is the following:<br>
><br>
> Traceback (most recent call last):<br>
><br>
> File "<string>", line 3, in <module><br>
><br>
> File "C:\Archivos de programa\ParaView<br>
> 3.8.0-RC2\lib\paraview-3.8\paraview\simple.py", line 109, in OpenDataFile<br>
><br>
> raise RuntimeError, "File not readable: %s " % filename<br>
><br>
> RuntimeError: File not readable: C:\Documents and Settings\Nit@\Mis<br>
> documentos\stuttgart\hiwi\outputtk\output\out1-1.vtk<br>
><br>
> Does someone knows why is still not working? It seems that it can not read<br>
> the vtk files. I tried different many details like change " for 'or putting<br>
> only the filename (not the whole file extension). The Render should be<br>
> reffered to somewhere or it's ok with an empty ( ) ? or it's a problem of<br>
> the file type?<br>
><br>
> #The python script is the following:<br>
><br>
> from paraview.simple import *<br>
><br>
> reader1 = OpenDataFile('C:\Documents and Settings\output\out1-1.vtk')<br>
> reader2 = OpenDataFile('C:\Documents and Settings\output\out1-2.vtk')<br>
> reader3 = OpenDataFile('C:\Documents and Settings\output\out1-3.vtk')<br>
> reader4 = OpenDataFile('C:\Documents and Settings\output\out1-4.vtk')<br>
><br>
> Show(reader1)<br>
> Show(reader2)<br>
> Show(reader3)<br>
> Show(reader4)<br>
><br>
><br>
> Render()<br>
><br>
> #############<br>
><br>
> Thanks again<br>
><br>
><br>
> ----- Mensaje reenviado ----<br>
> De: Utkarsh Ayachit <<a rel="nofollow" ymailto="mailto:utkarsh.ayachit@kitware.com" target="_blank" href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>
> Para: llapis Pencil <<a rel="nofollow" ymailto="mailto:llapispencil@yahoo.es" target="_blank" href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>><br>
> CC: PARAVIEW <<a rel="nofollow" ymailto="mailto:paraview@paraview.org" target="_blank" href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>
> Enviado: jue,1 julio, 2010 16:18<br>
> Asunto: Re: [Paraview] 1 script open different vtk files<br>
><br>
> I believe you are trying to "open" the python script as a data-file<br>
> from File |Open menu-option. To run a python script from the GUI, you<br>
> open the Python shell from "Tools | Python Shell" menu and then click<br>
> "Run Script" on the bottom-left corner to load the script to run.<br>
><br>
> Utkarsh<br>
><br>
> On Wed, Jun 30, 2010 at 6:46 AM, llapis Pencil <<a rel="nofollow" ymailto="mailto:llapispencil@yahoo.es" target="_blank" href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>><br>
> wrote:<br>
>> hi again,<br>
>><br>
>> thanks for the response. So i understand i have to create a file<br>
>> contraining<br>
>> this information (reffering to my files) to open it later directly with<br>
>> Paraview. Which type of file should be? because i tried many files and<br>
>> still<br>
>> not work. Paraview ask me to chose a reader to open it. Maybe I should<br>
>> know<br>
>> also which reader. Here is the information contained in the file to be<br>
>> open.<br>
>><br>
>> from paraview.simple import *<br>
>><br>
>> reader1 = OpenDataFile(“out1-1.vtkâ€)<br>
>> reader2 = OpenDataFile("out1-2.vtk")<br>
>> reader3 = OpenDataFile(“out1-3.vtkâ€)<br>
>> reader4 = OpenDataFile("out1-4.vtk")<br>
>><br>
>> Show(reader1)<br>
>> Show(reader2)<br>
>> Show(reader3)<br>
>> Show(reader4)<br>
>><br>
>> Render()<br>
>><br>
>> ________________________________<br>
>> De: Utkarsh Ayachit <<a rel="nofollow" ymailto="mailto:utkarsh.ayachit@kitware.com" target="_blank" href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>
>> Para: llapis Pencil <<a rel="nofollow" ymailto="mailto:llapispencil@yahoo.es" target="_blank" href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>><br>
>> CC: PARAVIEW <<a rel="nofollow" ymailto="mailto:paraview@paraview.org" target="_blank" href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>
>> Enviado: mié,23 junio, 2010 16:08<br>
>> Asunto: Re: [Paraview] 1 script open different vtk files<br>
>><br>
>> # for paraview 3.8.0 or greater.<br>
>><br>
>> from paraview.simple import *<br>
>><br>
>> reader1 = OpenDataFile(“file1â€)<br>
>> reader2 = OpenDataFile("file2")<br>
>> ....<br>
>> Show(reader1)<br>
>> Show(reader2)<br>
>> ...<br>
>><br>
>> Render()<br>
>><br>
>> On Wed, Jun 23, 2010 at 9:35 AM, llapis Pencil <<a rel="nofollow" ymailto="mailto:llapispencil@yahoo.es" target="_blank" href="mailto:llapispencil@yahoo.es">llapispencil@yahoo.es</a>><br>
>> wrote:<br>
>>><br>
>>> Hi again,<br>
>>> thanks for the response. Now my question is how can i create a script<br>
>>> which<br>
>>> tells PARAVIEW to open a certain number of vtk files at once and<br>
>>> visualize<br>
>>> them all together?<br>
>>><br>
>>> Thanx one more time<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
>>><br>
>>> Visit other Kitware open-source projects at<br>
>>> <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
>>><br>
>>> Please keep messages on-topic and check the ParaView Wiki at:<br>
>>> <a rel="nofollow" target="_blank" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
>>><br>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a rel="nofollow" target="_blank" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>>><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the ParaView Wiki at:<br>
>> <a rel="nofollow" target="_blank" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a rel="nofollow" target="_blank" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a rel="nofollow" target="_blank" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a rel="nofollow" target="_blank" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
_______________________________________________<br>
Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a rel="nofollow" target="_blank" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" target="_blank" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>
</div></div>
</div><meta http-equiv="x-dns-prefetch-control" content="on">
</div><br>
</body></html>