Faster Save, the best solution

Hello,

I have a simple c# function, this function make a Save every time that one object is “deselect”, the
command that I used is simple:

RhinoApp.RunScript("_Save Path+name", false);

This work ok but,there is a litlle of delay, the script stop until finish the save, is just a few milisec but
make some diference on drawing work.

I try run this script on Thread, but it’s still worse, the save time increases.

The size of the document is always very small, it does not exceed 10/15 objects, circles, rectangles etc., very small.

So, the question is, is there a more efficient way to save the project continuously?

Thanks

have you tried doc.write3dmfile?

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_RhinoDoc_Write3dmFile.htm

Hello @rgr, no, I dont try this, I dont know how to use, do you have some pratical example?

Its part of your activedoc, so basicly:

        protected override Result RunCommand(RhinoDoc doc, RunMode mode)
        {
            doc.Write3dmFile("yourpath", new Rhino.FileIO.FileWriteOptions());

            return Result.Success;
        }

You can, of course, specify your own FileWriteOptions.

0155-Ok

@rgr ,

I see “FileWriteOptions”, I dont want include this save file on the recent files, when I open the rhino,
there is some way?

Thank you

@dale , any tip?

Thank you.

Hi @MatrixRatrix,

I know of no way to keep saves from populating the MRU list.

– Dale