|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。3 J+ |0 m: U" F! p! }- c9 S' Z
extern DllExport void ufcre( char *param, int *returnCode, int rlen )
5 |6 Q7 D. f/ ]6 Q{& F. U/ J# V# g5 \8 |
/* Initialize the API environment */, [" x. n l4 a( M) e) w) \
if( UF_CALL(UF_initialize()) )
1 Q; J# ], @: m7 x/ A* \7 _ {
; ]9 h- W9 I! | t/ }3 n /* Failed to initialize */
0 s9 {8 ?5 [3 W) s return;
( ~ |+ g! L5 [; c/ r T }
$ R# e% \1 V! g. Z. o; g
5 |& }7 X* |9 u( I4 w" N /* TODO: Add your application code here */# |% U9 n7 u- `
uc1601("This is new !",1);
& z6 g+ z' [' } ?6 ]+ R /* Terminate the API environment */
$ t6 i; F: u; N& r% k, G" Q UF_CALL(UF_terminate());5 z ?, h7 i; F4 k
}0 a) T7 Q( M9 M, v1 v$ _+ o0 w+ o
4 m: `, g4 X% {3 o- n
/*****************************************************************************0 y- a0 s1 S) Y4 z' m+ \
** Utilities
3 |. z4 g$ X8 _1 e2 x/ W e*****************************************************************************/) a3 O! C8 C: O, N% d& v
. p; s- M H' \" S* [. ?; e) P! D/ J
/* Unload Handler
) _/ k% j, r; v8 H; a** This function specifies when to unload your application from Unigraphics.
; c7 i; M3 N- k, j0 C' D* }** If your application registers a callback (from a MenuScript item or a `/ G, `! r! V8 c+ H5 B/ V s' ~
** User Defined Object for example), this function MUST return& r$ O& ]4 [2 t8 ]: F! K) d
** "UF_UNLOAD_UG_TERMINATE". */ z3 l9 f. f7 ?, D; Y5 h& |2 k$ [
extern int ufusr_ask_unload( void )
7 l5 U2 E* j3 U4 P# a{
. B" f$ x! t9 Y; K return( UF_UNLOAD_IMMEDIATELY );
4 v; W5 ^4 w, m+ S5 A# |}. P5 Z: ` R2 ?3 x5 d/ i9 |
& Q( I" g0 q+ y4 ?+ n |
-
|