How to output the vtk DataFile Version 3.0

I am use the vtk 9.0.1.
I use vtkDataSetWriter to out put vtk file.And i get the # vtk DataFile Version 5.1.
Is any way to output vtk DataFile Version 3.0.
vtkNew writer;

@will.schroeder ?

That could be added to the writer, but currently the functionality does not exist. Right now SetFileVersion(VTK_LEGACY_READER_VERSION_4_2) is the oldest supported. You might try the 4.2 version, I don’t think the format changed much between 3.0 and 4.2, although we’d have to deep dive to understand exactly what changed.

Thanks!!But I can’t find SetFileVersion() in the vtk version 9.0.1 and 9.0.3

This is present in master, not in any release yet.