8.2.23 Load

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

Load the file into Origin by read only or read/write

Syntax

Load(Path, ReadOnly)

Parameters

Path

The OPJ file path

ReadOnly

1=Read Only
0=Read/Write

Return

True is load file succeed.

Examples

import PyOrigin
PyOrigin.LT_execute('fn$=system.path.program$ + "Samples\Graphing\Customizing Graphs.opj"')
str=PyOrigin.LT_get_str('fn')
PyOrigin.Load(str,1)  #BOOL, 1 means read only