/* The code in the following internal UG/Open API example prints the current state of work plane emphasis to standard out. */ #include #include #include #include /*ARGSUSED*/ void ufusr(char *param, int *retcod, int param_len) { int emphasis, error; error = UF_initialize(); if (error) { char err_string[133]; UF_get_fail_message(error, err_string); printf("Unable to initialize: error code %d - %s\n", error, err_string); return; } error = UF_DISP_ask_work_plane_emphasis(&emphasis); if (error) { char err_string[133]; UF_get_fail_message(error, err_string); printf("Unable to read emphasis value: error code %d -" " %s\n", error, err_string); return; } printf("Work plane emphasis is %sabled\n", (emphasis == UF_DISP_WORK_EMPHASIS_ON) ? "en" : "dis"); UF_terminate(); }