How can I check the version of an Eyeshot file?

Since the Eyeshot proprietary file format can't read newer versions, it could be helpful to check the file version before proceeding to read it.

The below code shows how to find invalid files according to the version stored in the file header.

FileHeader header = new ReadFile(fileName, true).GetHeader();
if (header.Version > devDept.Serialization.Serializer.LastVersion)
    Console.WriteLine("Unsupported Eyeshot file version.");


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request



Please sign in to leave a comment.