Product Home
DTM Data Generation SDK Online Documentation
Product Profile
SDK components
Functions map
Low level API
Short Random
Integer Random
Random Symbol
Double Random
Random String
Random Date
Random Time
C/C++ example
Fill Methods level API
From list
From file
From table
From Values Library
Incremental
By maks
By SQL statement
Rule level API
Rule properties
Rule items
One rule item
Project level API
Project operations
Project properties
Project rules
Object handles
Database connection
Error handling
SDK limitations
Build application with SDK
License agreement

General project operations

All these functions deal with PRJ_HANDLE that helps you to identify each active project. Current version of the SDK supports up to 8 active projects.

LoadProject function loads project from the disk file.
C/C++
PRJ_HANDLE LoadProject(char *FileName)

C#/VBA/scripts
int LoadProject(string FileName)

SaveProject saves specified by handle project to the disk file.
C/C++
int SaveProject(PRJ_HANDLE handle, char *FileName)

C#/VBA/scripts
int SaveProject(int handle, string FileName)
Returns 0 in success or non-zero otherwise.

NewProject creates new empty project.
C/C++/C#
PRJ_HANDLE NewProject();

CloseProject closes specified project and removes it from RAM.
C/C++/C#
void CloseProject(PRJ_HANDLE handle);

RunProject executes the project with specified database connection.
C/C++
int RunProject(PRJ_HANDLE handle, DG_HANDLE connection, char *logFile)

C#/VBA/scripts
int RunProject(int handle, int connection, string logFile)
RReturns 0 for success or non-zero otherwise.
Notes:

  • 'connection' parameter should be correct and connected handle of database connection.
  • 'logFile' is location where execution log will be created. The program uses "error.log" in the current directory for empty or invalid parameter.

See also: Error handling.