<p class="MsoNormal"><span lang="EN-US">Hi,</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">I create a
macro for data post-treatment in ParaView. This macro represents a geometry
(STL file) and after plots for example pressure, computed vorticity or
streamlines. </span></p>
<p class="MsoNormal"><span lang="EN-US">My objective now is to decompose this macro to multiple python files (every file *.py contain a
python function that use a ParaView filter). The first function uses STLReader
and when I run the macro in ParaView, I got this error message:</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:8.5pt;font-family:Courier;color:red">Traceback (most
recent call last):</span><span lang="EN-GB"></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:8.5pt;font-family:Courier;color:red">File "<string>", line 1461, in <module></span><span lang="EN-GB"></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:8.5pt;font-family:Courier;color:red">File "C:\Project2\Fonctions\RepresentationGeometrie_v1.py",
line 19, in
RepresentationGeometrie</span><span lang="EN-GB"></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:8.5pt;font-family:Courier;color:red">ReaderSTL=STLReader(FileNames=[STL])</span><span lang="EN-GB"></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:8.5pt;font-family:Courier;color:red">NameError:
global name 'STLReader' is not defined</span><span lang="EN-GB"> </span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks for
any help.</span></p>
<span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman"">Hicham</span>