<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi all,<br>
    I'm trying to load a vtk file in Paraview using a simple python
    script. My script is:<br>
    <br>
    <small>from paraview.simple import *<br>
      obj =
OpenDataFile("/home/luca/3dVoxView/Volumes_Storage/geostat_interp/Vol.vtk")<br>
      obj.Representation = 'Volume'<br>
servermanager.SaveState("/home/luca/3dVoxView/Volumes_Storage/geostat_interp/prova.pvsm")</small><br>
    <br>
    but when I run my script this error appears:<br>
    <br>
    <small>Traceback (most recent call last):<br>
      &nbsp; File "paraviewProj.py", line 3, in &lt;module&gt;<br>
      &nbsp;&nbsp;&nbsp; obj.Representation = 'Volume'<br>
      &nbsp; File
      "/home/luca/3dVoxView/PARAVIEWWEB/build-paraview/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
      line 207, in __setattr__<br>
      &nbsp;&nbsp;&nbsp; "to add this attribute.")<br>
      AttributeError: Attribute Representation does not exist.&nbsp; 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.<br>
    </small><br>
    what does it mean? what's wrong in <small>obj.Representation='Volume'</small>
    ? Thank you for any suggestion...<br>
    <br>
    Luca<br>
  </body>
</html>