Tutorial Toolkit Function Descriptions > Introduction > Synchronizing with Startup, Exit, and Database Events
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">   
Synchronizing with Startup, Exit, and Database Events
When certain operations occur in MSC.Patran callbacks to some PCL routines will occur. These PCL routines are not defined by the MSC.Software Corporation and if they do not exist, then the calls will not be made. The user is welcome to create these routines to perform whatever function is desired. Some examples are generating accounting information or initializing or hiding user defined forms. The following PCL functions can be defined by the user. In the function description is information on when this function will be called by the MSC.Patran system.
 
user_start
( )
Description:
Called just after startup of MSC.Patran. No arguments are given to the function and there is no return result.
Input:
none
Output:
none
Example:
Please see user_start (p. 6) in the MSC Acumen Toolkit - Code Examples.
 
user_quit
( )
Description:
Called just before exit of MSC.Patran. No arguments are given to the function and there is no return result.
Input:
none
Output:
none
Example:
Please see user_quit (p. 6) in the MSC Acumen Toolkit - Code Examples.
 
user_db_new
( dbname, tmplname)
Description:
Called just after a new database is created.
Input:
STRING
dbname[ ]
Name of database that was created.
STRING
tmplname[ ]
Name of the template file used for the database.
Output:
none
Example:
Please see user_db_new (p. 4) in the MSC Acumen Toolkit - Code Examples.
 
user_db_open
( dbname )
Description:
Called just after an existing database is opened.
Input:
STRING
dbname[]
Name of database that was opened.
Output:
none
Example:
Please see user_db_open (p. 5) in the MSC Acumen Toolkit - Code Examples.
 
user_db_close
( dbname, isquit )
Description:
Called just before a database is closed.
Input:
STRING
dbname[]
Name of database that was created.
LOGICAL
isquit
TRUE if quit, FALSE if close.
Output:
none
Example:
Please see user_db_close (p. 3) in the MSC Acumen Toolkit - Code Examples.