NewOperation
Create a new operation will specified class name
OperationBase * NewOperation( LPCSTR lpcszClassName, LPCSTR lpcszPath, BOOL bAddToOperationList = TRUE )
Returns the pointer of operation object.
void Project_NewOperation() { OperationBase* pOperation; string strFileName = GetAppPath(true) + "OriginC\\Originlab\\FitNL.cpp"; string strClass = "FitNL"; //create an operation and add to project's operation list pOperation = Project.NewOperation(strClass, strFileName); Project.DeleteOperation(pOperation); }
Project::DeleteOperation, Project::GetOperationObject, Project::Operations
origin.h