8.2.36 Save

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.


Description

Save the current Origin session to an Origin project (OPJ) file.

Syntax

Save(PathName)

Parameters

PathName
The full path and name of the Origin project file.

Return

True for success, this method will check path existence before attempting to save, so will return False if path does not exist

Examples

import PyOrigin
PathNameToSave = 'd:\\test.opj'      
if(PyOrigin.Save(PathNameToSave)):
    print('Project saving succeeded.')
else:
    print('Project saving failed!')