Tell Rhino the file has been saved

I am writing a RhinoCommon plugin that saves the current work to a specific local path (“WriteFile” method for Rhino5, “Write3dmFile” for Rhino6). It works fine but when I close Rhino I get the “Save or discard?” message box, because Rhino feels the file as not saved, yet.

How can I tell Rhino that file was saved “externally” so that it will not ask me to save or discard?

Thank you

You can set the Modified flag on the Rhino document to false.

1 Like

It works. Thanks a lot.