Save contents of Project Explorer subfolder as an Origin project file
1. pe_save fname:=mywork.opj;
2. fname$="mywork.opj"; pe_save path:=/Folder1;
Please refer to the page for additional option switches when accessing the x-function from script
Input
string
int
Output
Save a folder from the current project to an Origin project file
Find where [Book1] is in your project, rename the folder and export as a seperate opj.
string strPath$; pe_path page:=Book1 path:=strPath$ active:=1; // Search where [Book1] is pe_cd path:="../"; // Go back one level pe_rename old:=strPath.GetToken(strPath.GetNumTokens('/')-1, '/')$ newname:=Export; // rename the folder pe_move move:=Export path:=/; // Move the folder to the root pe_save fname:="D:\MyNewOpj.opj" path:=/Export; // Save the folder as a seperate opj pe_rmdir folder:=/Export folpromt:=0 pgpromt:=0; // Delete the folder without prompt
pe_mkdir, pe_path , pe_rename, pe_move, pe_rmdir
Keywords:OPJ, OPJU