|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
记录自己学习过程。; G( T: {% k: n
extern DllExport void ufcre( char *param, int *returnCode, int rlen )
6 ~8 F# U: B. a{
1 s$ {( T6 o" S0 H6 ~9 H3 y' t9 e /* Initialize the API environment */
/ M8 U. _' l" G& i2 u @( h if( UF_CALL(UF_initialize()) )
* k7 s5 t( }6 r$ R' G# A$ t {) H2 |4 H0 S2 z' F' N' D8 Y- k
/* Failed to initialize */
7 a! E# V$ h9 s5 m0 W" q return;6 O" d8 w# @4 F# E) \1 G6 `
}
" M9 V/ W( Y# _* F' d) A0 Y$ e+ z( P( t1 C# @7 z8 v/ ^ M
/* TODO: Add your application code here */
M% H$ c9 h% G) v uc1601("This is new !",1);
" J5 ~# w/ R- G6 T# z- U) x& V5 K9 l /* Terminate the API environment */
9 c5 `9 f. @$ A7 v& _& l7 R3 c% I UF_CALL(UF_terminate());9 l# L1 k/ S( K
}
; R5 N, O5 b4 b" d2 p+ K4 h1 s6 B# }/ [5 J
/*****************************************************************************
9 K+ u3 I, e6 L! Y( k+ E** Utilities8 B% q) N* D' }7 O+ x+ o1 w
*****************************************************************************/
9 D/ o% ` ~: U- f1 V
0 I, h1 F" `1 ~/* Unload Handler
$ z% d1 W. g1 [4 P** This function specifies when to unload your application from Unigraphics.1 @, d _4 g/ |6 E: N
** If your application registers a callback (from a MenuScript item or a
+ B& v5 t! M% h** User Defined Object for example), this function MUST return
; c# Z9 ]. f1 x/ ]3 l' h# G** "UF_UNLOAD_UG_TERMINATE". */# E% Z' I( a& x/ I3 h3 k
extern int ufusr_ask_unload( void )* @/ u& N( n9 V9 ~9 V6 B
{
0 d* x. ? |- k# K return( UF_UNLOAD_IMMEDIATELY );
" g' @- c1 e1 M/ o8 [8 O* T0 h# w}' }( a X' f/ v6 ]/ S
; N& A7 }# B* e. R, X7 g8 P
|
-
|