SaveAsProject
Save a folder as an Origin project file
BOOL SaveAsProject( LPCSTR lpcszPath, DWORD dwCntrl = SFC_INCLUDE_SUBFOLDERS )
Returns TRUE if successful and FALSE otherwise.
EX1
// Save the active folder and subfolders and include any files in the Project folder void Folder_SaveAsProject_Ex1() { Folder fldSave = Project.ActiveFolder(); string strPath = GetAppPath(1) + "OriginC\\abc.opj"; // '.opj' is optional bool bOK = fldSave.SaveAsProject(strPath, SFC_INCLUDE_SUBFOLDERS | SFC_INCLUDE_ATTACHED_FILES); out_int("bOK = ", bOK); }
origin.h