Please enable JavaScript to view this site.

QPR Knowledge Base 2019.1

Navigation: Developer's Guide > QPR API > The Object Model > QPR Metrics > SCModel Commands

ExportModel

Scroll Prev Top Next More

Revision history:

Introduced in QPR 7.2.1

 

Export model to a .qprmem file. Confirmation is asked from the user for export if a file with the same name already exists. This confirmation is not asked if user interface is hidden.

 

Synopsis:

 

SCModel.ExportModel(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_NO_RIGHTS

RV_CANCELLED

RV_INVALID_MODEL_PATH

RV_CANNOT_LOCK_MODEL

RV_UNKNOWN_ERROR

 

Example Procedure:

 

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