Jean,<br><br>thank you very much. I downloaded and installed VTK 5.1 (out of ParaView 2.6.0), and your suggestions work perfectly!<br><br>-Marzio<br><br><div><span class="gmail_quote">On 3/29/07, <b class="gmail_sendername">
Jean Favre</b> <<a href="mailto:jfavre@cscs.ch">jfavre@cscs.ch</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 28, Mar 2007 03:22 PM, Marzio Sala <
<a href="mailto:marzio.sala@gmail.com">marzio.sala@gmail.com</a>> wrote:<br><br>>Hello,<br>><br>>I am using VTK (through Python) to read EnSight files, using something<br>>like<br>><br>>>>>reader =
vtk.vtkEnSightGoldReader()<br>>>>>reader.SetCaseFileName('test.case')<br>>>>>reader.Update()<br>><br>>The files are composed by more than one part (or dataset), and they are<br>>correctly stored in
reader.GetOutput().<br>><br>>However, I cannot find the part name anywhere... Anybody knows how to<br>>get<br>>the part name?<br><br><br>The part name is stored in FieldData in an array called "Name"
<br><br>So, the answer to both of your questions are:<br><br>1) get a specific output, for example the 0th output<br><br>reader.GetOutput().GetDataSet(0,0)<br><br>2) get the name of the part<br><br><br>reader.getOutput().GetDataSet(0,0).GetFieldData().GetArray("Name").GetPointer(0)
<br><br>the command above gives the following answer when run with EnSight's<br>demo file ami.case<br><br>'external flow field'<br><br>hope this helps.<br><br><br>--<br>Dr. Jean M. Favre, email:favre @ cscs.ch
<br><a href="http://www.cscs.ch/about/Favre.php">http://www.cscs.ch/about/Favre.php</a><br>CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.40<br>Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82
<br><br><br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://marzio.sala.googlepages.com">http://marzio.sala.googlepages.com</a>