/****************************************************************************** Copyright (c) 1999 Unigraphics Solutions, Inc. Unpublished - All Rights Reserved *******************************************************************************/ /* This code gets the current Info units and prints it. */ #include #include void ufusr(char *param, int *retcod, int param_len) { int units; UF_initialize(); if ( UF_UI_ask_info_units( &units ) != 0 ) printf( "UF_UI_ask_info_units failed\n" ); else if ( units == UF_UI_POUNDS_INCHES ) printf( "UF_UI_POUNDS_INCHES\n" ); else if ( units == UF_UI_POUNDS_FEET ) printf( "UF_UI_POUNDS_FEET\n" ); else if ( units == UF_UI_GRAMS_MILLIMETERS ) printf( "UF_UI_GRAMS_MILLIMETERS\n" ); else if ( units == UF_UI_GRAMS_CENTIMETERS ) printf( "UF_UI_GRAMS_CENTIMETERS\n" ); else if ( units == UF_UI_KILOS_METERS ) printf( "UF_UI_KILOS_METERS\n" ); UF_terminate(); }