|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。9 A7 T& V( E1 C9 \, G
extern DllExport void ufcre( char *param, int *returnCode, int rlen )
$ A: q# {; Z6 [& c( y7 {{% c Y( b6 X) E1 v+ f' H
/* Initialize the API environment */
& ~# Q; U. m2 x if( UF_CALL(UF_initialize()) )
+ P- f- ] {% b* v& N; J { W2 E- i) r n* u- o Q
/* Failed to initialize */
! n% `2 E3 }7 v7 U return;/ c t$ R! c& z8 t) B7 i1 t
}' Z0 w0 s$ ]1 W3 T) f& ?% W
8 c7 }3 ~3 Q I/ \! D
/* TODO: Add your application code here */
' p. L7 n% k' y) d uc1601("This is new !",1);/ [- S6 I$ V; [9 ~7 z
/* Terminate the API environment */
8 s) q0 ^8 M( {# x0 N UF_CALL(UF_terminate());6 g, p5 U) b0 @+ i
}8 n5 Z9 M: a9 E& h6 o
6 Y$ o6 `7 J/ t8 H
/*****************************************************************************- o' R9 e/ \. }, s u% W5 N" X; ^
** Utilities2 A) z, O. `( h: S
*****************************************************************************/
2 v9 K* d, ?- f' R9 n; H9 R8 I6 {9 [/ e
/* Unload Handler
$ O5 P1 w( }' _** This function specifies when to unload your application from Unigraphics.
" B0 a; J1 h2 H( R% @% {* Z** If your application registers a callback (from a MenuScript item or a) R% v1 B. Y3 v* A7 N8 V) u- O
** User Defined Object for example), this function MUST return. Z6 X1 R7 k: k. h2 K
** "UF_UNLOAD_UG_TERMINATE". */! H, G8 O7 d# Z' b$ Y" Y8 G
extern int ufusr_ask_unload( void )
$ S4 p3 f' x" w% b6 t{, t' e5 Z/ l# { U* R3 w
return( UF_UNLOAD_IMMEDIATELY );- [+ f% J0 r4 r4 N2 W' @& c
}% n& p. V' }; F: B# c5 M5 P
7 y+ Q: V8 ]1 `# n! F1 z
|
-
|