extern void ufsta( char *param, int *returnCode, int rlen )
{
UF_MB_application_t appData;
char name[] = "SAMPLE_APP";
int status;
int ifail=0;
/* Initialize the API environment */
ifail= UF_initialize();
if ( !ifail )
{
status = UF_MB_add_actions( actionTable );
/* TODO: Add your application code here */
/* Initialize application data */
appData.name = name;
appData.id = 0;
appData.init_proc = SAMPLE_APP__init;
appData.exit_proc = SAMPLE_APP__exit;
appData.enter_proc = SAMPLE_APP__enter;
/* Initialize application support flags */
appData.drawings_supported = TRUE;
appData.design_in_context_supported = TRUE;
/* Register the application with UG */
status = UF_MB_register_application( &appData );
app_id=appData.id;
/* Terminate the API environment */
//errorCode = UF_terminate();
}
/* Unload Handler
** This function specifies when to unload your application from Unigraphics.
** If your application registers a callback (from a MenuScript item or a
** User Defined Object for example), this function MUST return
** "UF_UNLOAD_UG_TERMINATE". */
//extern int ufusr_ask_unload( void )
//{
// return( UF_UNLOAD_IMMEDIATELY );
//}
static void print_error( char *fun, int status )
{
if ( status != 0 )
{
char msg[133];