odop

Open Design Optimization Platform (ODOP) - Coil spring design app; mechanical springs; compression spring, extension spring, torsion spring

View the Project on GitHub thegrumpys/odop

AutoSave

This topic covers the ODOP AutoSave feature and recovery of a design from AutoSave data.

On this page:



Background

A power failure, system crash or loss of network connectivity can prevent a Save operation and put work done since the previous Save at risk.

You might use your browser's Reload or Refresh button when a page stops responding. Reloading a single-page web app like ODOP resets the app and can discard unsaved work. Using the browser's Back button followed by Forward, or clicking the ODOP logo at the left of the menu and tab bar, can also reset the app.

Note:
The on-line Help documentation pages are not subject to the same concerns about browser Reload, browser Back / Forward and the ODOP logo icon.

AutoSave gives you a way to recover some of that work. ODOP stores AutoSave data in your browser's local storage. Tabs and windows on the same ODOP site in the same browser profile share one AutoSave design. Each new AutoSave replaces the previous copy.



ODOP features impacting AutoSave data

Trigger When ODOP saves the copy
Search Immediately before Search runs. This includes Search from the Action menu, the results table, a variable’s menu, and Search steps in tutorials, demos, and Action : Execute scripts. Simply starting a tutorial, demo, or script by itself does not update the AutoSave recovery point.
Automatic Search after an edit After applying the edit and before Search runs. If Auto Search is enabled and the edit meets its trigger conditions, an AutoSave update can follow changes to values, fixed/free settings, and constraints.
Seek Immediately before Seek runs. This includes Seek from the Action menu, the results table, variable controls such as spring wire diameter, and design-specific optimization buttons. A script that runs Seek directly does not update AutoSave data.
Trade When Trade starts, then again before each Search it runs. A later Search can replace the original copy after constraints have already changed.
Select Size...
or Select Catalog...
Before applying your choice. If Select Size then triggers automatic Search, that Search replaces the AutoSave point with one that already includes the selected size.
File : Preferences or Properties After applying your changes. Changes to Preferences values can also trigger automatic Search.

Opening or saving designs can also affect the AutoSave recovery point.



Recovering a design from AutoSave data

When an AutoSave recovery point is available, ODOP offers recovery in these situations:

When What you select
At startup, including after a reload Yes in the ODOP Design Recovery prompt.
While the app is open File : New → Load Auto Save.
While the app is open, where File : Open is available File : Open → Load Auto Save.

When you recover a design, ODOP loads the latest available AutoSave recovery point into the current tab and clears it from shared browser storage. Selecting No at startup loads the default design and clears the AutoSave copy once that design loads.

If the AutoSave recovery point was created during a tutorial, demo or script, recovery returns you to that design. Preserve that design with File : Save, File : Save As... or File : Export. To resume the tutorial, demo or script after restarting ODOP, launch it again. Most Demos and Tutorials will reinitialize to initialState before making additional changes.

If the app is started directly from odop.springdesignsoftware.org without parameters as part of the URL, the default is Compression spring, US Customary units and Advanced View. If the app is started from SpringDesignSoftware.org, the default is the spring type, units and View that are selected there.



Using AutoSave in before / after comparisons

The AutoSave feature can provide a before / after comparison for Search and Seek. After completing one of those operations, open a new tab or window in the same browser profile before another action replaces or clears the AutoSave copy. Copy the ODOP address from the original tab into the new one. If the operation's AutoSave data is still available, you will see a prompt offering recovery. Respond "Yes" to recover the AutoSave recovery point that was saved before the Search or Seek operation. The new tab shows the design before the operation. Switch between the two tabs to compare. Recovery clears the shared copy for both tabs.

Trade also creates an AutoSave copy when it starts. Some Trade strategies run additional searches after relaxing constraints. Those searches can replace the original copy with an intermediate design.



Notes

Recovering the AutoSave copy can serve as a one-time undo. Reload the app or click the ODOP logo and choose "Yes" to return to the most recent AutoSave. Any changes made after that copy was created are lost in the tab where you recover it.

If you reload or click the ODOP logo again before another AutoSave is made, ODOP loads the default design.

For long-term storage of designs, use File : Save, Save As... or Export.

AutoSave captures the design at specific points. Save or export frequently, and keep in mind that using the browser Reload or Back functions can discard changes made since your last Save or Export.

AutoSave can work in private browsing mode (Chrome "Incognito", Edge "InPrivate", Firefox "Private Window", etc.) if the browser allows ODOP to store data. The browser clears the copy when that private session ends.


See also:

 

Help