<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"><div>Hi once again,<br><br>I still haven't achieve to open the *.vtk file with a python script. I tried mainly two different ways:<br><br>1. Has you said, with the OpenDataFile command. But I get the error below, as it could not read *.vtk file.<br><br>#Python script<br>from paraview.simple import *<br>reader = OpenDataFile("C:/Documents and Settings/Nit@/Escritorio/pet/out1-1.vtk")<br>Show(reader)<br>Render()<br>##########<br><br>#error on the python shell<br style="color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">Traceback (most recent call last):</span>
<p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt;">  File "&lt;string&gt;", line 2, in &lt;module&gt;</span></p>
<p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt;">  File "C:\Archivos de programa\ParaView 3.8.0\lib\paraview-3.8\paraview\simple.py", line 115, in OpenDataFile</span></p>
<p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt;">    reader = globals()[xml_name](FileName=filename, **extraArgs)</span></p>
<p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt;">  File "C:\Archivos de programa\ParaView 3.8.0\lib\paraview-3.8\paraview\simple.py", line 542, in CreateObject</span></p>
<p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt;">    setattr(px, param, params[param])</span></p>
<p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt;">  File "C:\Archivos de programa\ParaView 3.8.0\lib\paraview-3.8\paraview\servermanager.py", line 201, in __setattr__</span></p>
<p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt;">    "to add this attribute.")</span></p>
<p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt;">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><br>Do someone know what should I change or what 's wrong?<br><br>2. I searched for a specific vtk reader and I found in internet (<a href="https://visualization.hpc.mil/wiki/VTK_in_Python" target="_blank">https://visualization.hpc.mil/<wbr>wiki/VTK_in_Python</a>) the following solution and getting the following error:<br><br>#python script<br>from vtk import *;<br>reader = vtkDataSetReader()<br>reader.SetFileName("out1-1.vtk")<br>Show(reader4)<br>Render()<br>###########<br><br>#error on the python shell<br><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">Traceback (most recent call
 last):</span>
<p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt;">  File "&lt;string&gt;", line 1, in &lt;module&gt;</span></p>
<p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt;">ImportError: No module named vtk</span></p><p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><span style="font-family: 'Courier'; font-size: 8.25pt;">###########</span></p><p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><br></p><p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);">I download the vtk source <a href="http://www.vtk.org/VTK/resources/software.html" target="_blank">http://www.vtk.org/VTK/<wbr>resources/software.html</a> and installed the latest verion for Windows. If I had not understood bad I made what was necessary (<a href="https://visualization.hpc.mil/wiki/Getting_Started_with_VTK" target="_blank">https://visualization.hpc.mil/<wbr>wiki/Getting_Started_with_VTK</a>).</p><p style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0);"><br></p>But still doesn't recognize the vtk
 library. Does someone know what's wrong? or how paraview could recognize the vtk library?<br><br>Thanks you for advance and sorry for the inconviniences. <br><br>Llapis<br><br><br></div>
</div><br>



      </body></html>