<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi!<br>
<br>
I wonder how I can use a StructuredGridReader from within Python. I
need to read .vti volume files, but Python says:<br>
<br>
<p style="margin: 0px; text-indent: 0px;"><!--StartFragment--><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(0, 0, 0);">>>>
help(StructuredGridReader)</span></p>
<p style="margin: 0px; text-indent: 0px;"><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);">Traceback
(most recent call last):</span></p>
<p style="margin: 0px; text-indent: 0px;"><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);">
File "<console>", line 1, in <module></span></p>
<p style="margin: 0px; text-indent: 0px;"><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);">NameError:
name 'StructuredGridReader' is not defined<br>
</span></p>
<p style="margin: 0px; text-indent: 0px;"><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);"><br>
<br>
</span></p>
I have read the Paraview Tutorial, where the ExodusIIReader ist used.
This works without a problem:<br>
<p style="margin: 0px; text-indent: 0px;"><!--StartFragment--><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(0, 0, 0);">>>>
help(ExodusIIReader)</span><!--EndFragment--></p>
<p style="margin: 0px; text-indent: 0px;"><!--StartFragment--><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(0, 150, 0);">Help
on function CreateObject in module paraview.simple:</span></p>
<p style="margin: 0px; text-indent: 0px;"><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(0, 150, 0);">CreateObject(*input,
**params)</span></p>
<p style="margin: 0px; text-indent: 0px;"><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(0, 150, 0);">
The Exodus reader loads Exodus II files and produces an unstructured
grid output. The default file extensions are .g, .e, .ex2, .ex2v2,
.exo, .gen, .exoII, .exii, .0, .00, .000, and .0000 .<br>
</span></p>
<p style="margin: 0px; text-indent: 0px;"><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(0, 150, 0);"><br>
</span></p>
<br>
What am I doing wrong?<br>
<br>
Best regards,<br>
Christian<br>
<p style="margin: 0px; text-indent: 0px;"><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(0, 150, 0);"></span><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(0, 150, 0);"></span></p>
<p style="margin: 0px; text-indent: 0px;"><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(0, 150, 0);"> </span></p>
</body>
</html>