// 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 "C" int ufusr_ask_unload( void )
{
return( UF_UNLOAD_UG_TERMINATE );
}
// processException
//
// Prints error messages to standard error and a Unigraphics
// information window.
void processException( const UgException &exception )
{
// Construct a buffer to hold the text.
ostrstream error_message;
// Initialize the buffer with the required text.
error_message << endl
<< "Error:" << endl
<< ( exception.askErrorText() ).c_str()
<< endl << endl << ends;
// Open the UgInfoWindow
UgInfoWindow:pen ( );
// Write the message to the UgInfoWindow. The str method
// freezes the buffer, so it must be unfrozen afterwards.
UgInfoWindow::write( error_message.str() );
// Write the message to standard error
cerr << error_message.str();
error_message.rdbuf()->freeze( 0 );
}作者: spline 时间: 2003-7-31 07:46
全部装到list中,在一起倒角,试试看。作者: enmybh 时间: 2003-8-1 00:41
全部的edges?
我还想问在UF_UI_select_with_class_dialog中/*ARGUSED*/是什么功能.
/*ARGUSED*/好象和// Utilities中的什么冲突?