Hi Marc,
If you want to open an OTP file by shortcut? The following are the steps that open it by executing a commad in script window. It is a simple usage like as shortcut.
Would you like to try the follwing?
1. In Code builder window, new a c file named Open and save to Origin installation path.
2. Copy and paste the following codes into Open.c file. Save the modification. And then remove Open.c file in left list window in Code Builder by Right-clicking the file and selection Remove...
void OpenOTP()
{
GraphPage gPage;
gPage.Create("3D.otp"); //assume 3D.otp is your OTP-file in the origin folder
}
4. Open your project in Origin window. In Code Builder window, right-click Project folder in the left list window
and choose Add Files to add Open.c from Origin installation path.
5. Save your project. Close and reopen the project.
6. In your project, each time you can open your OTP file just by executing "OpenOTP" in Script window.
Edited by - Iris_Bai on 01/12/2004 04:25:30 AM