The following pages contain Python examples that demonstrate how to communicate with the different areas of Origin.
There are more examples that are installed with Origin, under the Origin sample folder(<Origin EXE Folder>\Samples\Python).
The example *.py files can be run directly using the run -pyf command option
The Origin example project files with attached Python files can be run by clicking the custom buttons provided.
When you open the OPJ file, you will find the Control Panel with buttons for viewing the Python code or executing the *.py files. Alternatively, you could open the Code Builder (View: Code Builder or Alt + 4), and browse to the Project folder in Workspace panel to access the attached Python file.