thegrumpys / odop

Open Design Optimization Platform (ODOP) - Coil spring design app; mechanical springs; compression spring, extension spring, torsion spring
https://www.springdesignsoftware.org
MIT License
4 stars 5 forks source link

Enable AutoSave in Execute scripts #892

Open grumpyinca opened 6 months ago

grumpyinca commented 6 months ago

At this writing, running Search, Seek & Trade in an Execute script (Tutor, Demo) does not automatically create AutoSave data.

A Dec 2 Slack conversation indicates that AutoSave may be manually invoked in an Execute script with:

change

actions: [
        search()
      ]

to

actions: [
        saveAutoSave(),
        search()
      ]

Once this is added to ActionDumper:

case SAVE_AUTO_SAVE:
    result = 'saveAutoSave()';
    break;