/* * The code in the following example retrieves the automatic update * view display settings. */ #include #include #include #include #include #include void ufusr(char *param, int *retcod, int param_len) { char drawing_name [30] = ""; char view_name [30] = ""; char error_message[133] = ""; int ifail = 0; tag_t view_tag = NULL_TAG logical auto_update; ifail = UF_initialize(); if (!ifail) { /* retrieve first drawing name. */ ifail = uc6492 (drawing_name); } if (!ifail) { /* get the name of the first view of the drawing. */ ifail = uc6499 (drawing_name, view_name); } if (!ifail) { /* Get the tag of the first view. */ ifail = UF_VIEW_ask_tag_of_view_name (view_name,&view_tag); } if (!ifail) { /* query the auto update status of this view. */ ifail = UF_DRAW_ask_auto_update (view_tag,&auto_update); } printf ("UF_DRAW_ask_auto_update sample "); if (ifail) { ifail = UF_get_fail_message( ifail, error_message ); printf( "fails.\nError is: %s\n", error_message ); } else printf( "is successful.\n" ); UF_terminate(); }