# Plot3D File Reader Problems

**URL:** https://discourse.vtk.org/t/plot3d-file-reader-problems/6201
**Category:** Support
**Created:** [July 16, 2021, 5:52pm UTC](https://discourse.vtk.org/t/plot3d-file-reader-problems/6201 "2021-07-16T17:52:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![luismsfern](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/l/cab0a1/32.png) [@luismsfern](https://discourse.vtk.org/u/luismsfern)
#### Post date: [July 16, 2021, 5:52pm UTC](https://discourse.vtk.org/t/plot3d-file-reader-problems/6201/1 "2021-07-16T17:52:11Z")

</div>

I’m trying to read a Plot3D file into ParaView using vtk directly, but I am running into problems. I have the grid file (.x) and the code I have access to writes out the function file containing the solution data (.f). The files are binary, little endian, double-precision, written by Fortran code and have a blanking variable set.

Here’s the piece of vtk code I wrote to load the file, for reference.

reader = vtk.vtkMultiBlockPLOT3DReader()  
reader.SetXYZFileName(‘test.x’)  
reader.SetFunctionFileName(‘test.f’)  
reader.AutoDetectFormatOff()  
reader.BinaryFileOn()  
reader.MultiGridOn()  
reader.HasByteCountOn()  
reader.IBlankingOn()  
reader.DoublePrecisionOn()  
reader.SetByteOrderToLittleEndian()  
reader.Update()

Now, reading the grid file only (without any solution file or function file attached - by commenting out the reader.SetFunctionFileName(‘test.f’)) works fine. The issue comes when I try to add the function file. When I run the code, it reports the two files have a different number of zones, which I know is not correct since I can open the files with no issues in other software, Tecplot for example.

Is this a known bug, or is there something else I should try?
