Check if 3dm file corrupted when saving

Hi,

Due to some connection problem, corrupted 3dm file could be saved and causes error while deserialisation. So I would like to add control in override WriteDocument function, that is, calculating the CRC of objects before saving. Then it read the saved file, calculate CRC, and compare.

According to Rescue3dmFile, There is CRC calculated and saved in the file and I think I can prevent some repeating work by using them. But I didn’t find any property to reach that in var readFile = Rhino.FileIO.File3dm.Read(string path). Do I miss something?

Hi @yung-yuan,

You might consider saving to a local storage device and, when successfully saved, copy it to the remote location. This should also be faster than saving directly to remote storage.

– Dale