<br />Did anyone of you write EnSight files and did not have problems with
 BlockID?<br /><br />Regards, Eduardo<br /><br /><br /><br />Martin
Baumann schrieb:<br /><br />&gt; Hi,<br />&gt; I am trying to save EnSight
data files with the following code:<br />&gt;  string in_file  =
&quot;test.asc&quot;;<br />&gt;  string out_file =
&quot;ensight.ens&quot;;<br />&gt;  ///
**********************************************/<br />&gt;  /// read
Legacy-Format variables/<br />&gt;  ///
**********************************************/<br />&gt; 
vtkUnstructuredGridReader* _reader = vtkUnstructuredGridReader::New();
_reader-&gt;SetFileName(in_file.c_str());<br />&gt; 
_reader-&gt;Update();<br />&gt;  ///
**********************************************/<br />&gt;  /// write
EnSight/<br />&gt;  /// **********************************************/<br
/>&gt;  vtkEnSightWriter* _ens_writer = vtkEnSightWriter::New();<br />&gt;
 _ens_writer-&gt;SetFileName(out_file.c_str());<br />&gt; 
_ens_writer-&gt;SetInput(_reader-&gt;GetOutput());<br />&gt; 
_ens_writer-&gt;Write();<br />&gt;  _ens_writer-&gt;WriteCaseFile(1);<br
/>&gt;  <br />&gt; When I run this I get the error<br />&gt;   No BlockID
was found<br />&gt; for some some hundred times.<br />&gt; Still threee
files are created:<br />&gt;   ensight.0.case<br />&gt;  
ensight.0.00000.geo<br />&gt;   ensight.0.00000_n.u_x<br />&gt; - I tried
to find out what the error means. What are BlockIDs used for? - Is there
any information on writing EnSight files with vtk?<br />&gt; - In the
example file (test.asc) there are contained three scalars:  u_x, u_y and
u_z.<br />&gt; Only one (u_x) is written to an EnSight data file. I need
to export  all of the<br />&gt; scalars and vectors if there are any in
the input file. How can I do<br />this?<br />&gt; Regards, M.B.<br
/>&gt;------------------------------------------------------------------------
_______________________________________________<br />&gt;This is the
private VTK discussion list. <br />&gt;Please keep messages on-topic.
Check the FAQ at:<br />http://www.vtk.org/Wiki/VTK_FAQ<br />&gt;Follow
this link to subscribe/unsubscribe:<br
/>&gt;http://www.vtk.org/mailman/listinfo/vtkusers <br /><br /><br /><br
/>-- <br />Atenciosamente,<br /><br />Eduardo Camargo<br />Analista de
Sistemas<br />HeMoLab - http://www.lncc.br/prjhemo<br />Laborat&oacute;rio
Nacional de Computa&ccedil;&atilde;o Cient&iacute;fica - LNCC<br />