3.2 Opening, Closing and Backing Up the Origin Project File


Contents

To open a project file

To save a project file

You can configure Origin to open a customized project file on startup. Select Preference: Options, click the Open/Close tab and set Start New Project to Origin.opj. Click "Yes" at the prompt. Then, save your customized project to the root of your User Files Folder using the name Origin.opj. Each time you run Origin, your customized project will be loaded automatically.

Origin 2018 includes new file formats for projects, child window files and templates. When you save a file, you will have the option of saving a file with or without a "u" appended to the file type (*.opj or *.opju):

  • If you intend to use the file only in the latest version of Origin, save to the new OPJU file type as it offers some performance advantages.
  • If you intend to share the project with colleagues using earlier versions of Origin, you should save the project as the older OPJ file type.
  • If you wish to have Origin default to saving the older OPJ (and/or OGG graph window file) file type, open the Script Window (Window: Script Window) and change the value of "@" System Variable @OPJ.

From Origin 2023, it will not support to save save Project as *.opj. Old OPJ files can still be opened in 2023.

What is (and isn't ) saved with the Origin project file?

Saved
NOT Saved

To Clone Current Project

Once a saved project has been opened and updated, you can "clone" the project, and then use the cloned project file to repeat the operations involved, with other data or the same data but changed in future. We call this cloned project as an analysis template project, which means it can be used as a working routine just like the general analysis template.

To clone a project, make an analysis template project

  1. Select File: Clone current Project.
  2. In the Data Manipulation: clrAllData dialog,
Clone opj dialog.png
The current project name and full path are shown if it has been saved. You can choose to

This will create and open a duplicate of the existing project named UNTITLED.opju, in which all the windows and operations in the original project are kept. At the same time, all the imported data will be cleared but the connection between the data source and the destination worksheet will be kept. You can then simply update the data source, and all the worksheets and graphs are automatically updated.

Project Backup and Recovery

Origin has three different data recovery features which can be enabled or disabled from Preference: Options:

Project recovery tools options.png
  1. Backup is the oldest Origin recovery feature and can be useful for recovering data when you have a project file that will not open. This file should contain the project content at the moment of the last successful file save.
  2. Autosave is useful for recovering from program crashes and power failures. The file is automatically saved at some predefined interval (by default, every 12 minutes).
  3. Unsaved is useful for recovering data that you declined to save on closing the file or the program (both Untitled and named files).

New Projects

By default when you launch Origin, the Origin window title shows UNTITLED to indicate a blank new project. This file remains named as UNTITLED until you choose File: Save Project or File: Save Project As. In either case, attempting to save UNTITLED will open the Save As dialog box where you can choose a path, a File name and a file type (Save as type).

Autosave Unsaved Project

If you make some modification to an open project - be it a named project or UNTITLED -- a star character ("*") will show next to the file name in the Origin title bar.

File modify indicator.png

Once a file has been modified, attempting to close the file or exit Origin before choosing File: Save Project or File: Save Project as, will trigger a prompt to save changes to the project.

Tools autosave unsaved.png

Beginning with Origin 2018, if you say NO and (1) Autosave Unsaved Project is enabled (default) and (2) the project file size is less than the value of LabTalk system variable @USM (default = 20MB), the project file will be saved automatically before closing (see Notes).

To recover an unsaved project:

  1. Run Origin.
  2. Click Help: Open Folder: Unsaved Projects.
  3. Browse the folder for your unsaved file.

The other way to locate folders associated with data recovery is to open Preference: Options and click on the System Path tab. Here, you will find paths for Autosave, Backup, and Unsaved files.

Recovery folders system path.png

Notes on Unsaved Projects

Autosave Project Every xx Minute(s)

Tools autosave every xxminutes.png

Origin also has an Autosave project every xx minute(s) feature that is turned on by default. When enabled, project contents are saved at a user-controlled time interval, to a temporary file in the user's \Documents\OriginLab\Autosave folder. During the session, named files will list in the \Autosave folder as projectFilenNme-xxxxxxxxx. UNTITLED projects will list as UNTITLED-xxxxxxxxx. If you save an Origin project and exit the program normally, Origin "cleans up" by deleting these temporary files. If a named and modified project, or an UNTITLED project, is closed without saving, the most recent autosaved file will be saved to Autosave\Last-AutoSave.opj(u).

In the event of a program crash, both named and UNTITLED files should be preserved in their last autosaved state, as projectFilenNme-xxxxxxxxx and UNTITLED-xxxxxxxxx, respectively. By default, these files will be kept for only 12 hours so it is best to try and recover contents immediately (see Notes).


To open the autosaved file:

  1. Locate the Autosave folder by one of the following:
  2. Open Last-AutoSave.opju/opj. by (a) double-clicking on the project icon in Windows File Explorer, (b) use Origin's File: Open... menu command or (c) drag and drop the file onto your Origin workspace.

Controlling Autosave settings

To enable or disable this periodic autosave feature, or to adjust the period of time between autosaves:

  1. Choose Preference: Options menu to open Options dialog.
  2. Go to Open/Close tab and check or uncheck the Autosave project every x minute(s) checkbox and adjust the saving period as needed.

Notes on Autosave Projects

Autosave prompt.png

Backup Project Before Saving

Tools backup.png

When you manually save a named Origin project file, a copy of the file as it existed at the time of the last save, will be saved to the Project Backup folder as projectName.opj(u). If, for some reason, you find that you cannot open a saved project (or it opens but you find that it is somehow corrupted), you should be able to roll back to the previously-saved version of the file by opening the file at \Backup. This feature is enabled by default and is independent of the "Autosave" and "Unsaved" features.

To open Backup projects:

  1. Run Origin.
  2. Choose Help: Open Folder: Project Backup.
    or
    Open Preference: Options, copy the \Backup path from the System Path tab and paste that path to the address bar in Windows File Explorer.
  3. Find the project file and open it.
Note: The \Backup folder was added in Origin 2018b. In earlier versions, Origin will backup the previous version of the current project file by saving a BACKUP.OPJ(U) file to the User Files Folder (UFF). There could only be one BACKUP file so if you later reopened another project then subsequently, you saved that file, the BACKUP would be for the most-recently-saved file. Origin 2018b and later do not have this limitation as each backup is saved with the given file name.

To disable Backups:

  1. Choose Preference: Options... menu to open the Options dialog.
  2. Go to the Open/Close tab and uncheck the Backup Project Before Saving box.

Notes on Backup Projects

Backup attention message.png


To check the Recent Projects

Or