QPR Knowledge Base 2016.1

MergeModel

MergeModel

Previous topic Next topic No directory for this topic  

MergeModel

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

Revision history:

Introduced in QPR 7.2.1

 

Merge a .qprmem file model with the currently open model. Model stays open so SCModel global name can still be used after calling MergeModel.

 

Synopsis:

 

SCModel.MergeModel(FilePathName)

 

Parameters:

 

FilePathName: String. "C:\examplemodel.qprmem" for example

 

Required Rights:

 

Administrator or Model Administrator rights to the SCModel.

 

Return Values:

Below are listed the return values that this function can return:

 

RV_SUCCESS

RV_MODEL_NOT_OPEN

RV_INVALID_MODEL_PATH

RV_PERIOD_SYSTEMS_DIFFER

RV_OTHER_USERS_CONNECTED

RV_INVALID_FILE_FORMAT

RV_UNKNOWN_ERROR

 

Example Procedure:

 

iRet = oModel.MergeModel("c:\test.qprmem")