|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。
7 u; y* ]8 \9 Z3 V% P) ~/ Sextern DllExport void ufcre( char *param, int *returnCode, int rlen )- f9 H, G# [ S. q* g% Z# n4 n& d
{) m( S* g* }6 ?( ~9 Z: J
/* Initialize the API environment */& W- y) @# B* P: p4 E
if( UF_CALL(UF_initialize()) )
7 ^! C( g: q% j2 h9 K& Q- q5 w; e {- V" J7 J- t6 g5 b( ^! R! H5 ?- }% d
/* Failed to initialize */4 b7 N5 D9 N, T; ^6 j2 W
return;* x" f% W/ L N' W7 F& n, l1 }* I
}5 U n0 E, _& i: `
/ P+ x6 M2 v, H, y: ^
/* TODO: Add your application code here */
' N0 W. _7 P8 G& h: z uc1601("This is new !",1);
4 E2 _4 g$ }& P) W4 k /* Terminate the API environment */ y' f) b2 a a' n
UF_CALL(UF_terminate());+ Z1 B& i8 ?7 P$ r) E4 I
}
) S& `( s9 Z% D4 K* ~
0 L1 m2 r+ H& C* w! Y0 B/****************************************************************************** K! s% K& P2 p
** Utilities
, U8 Y3 \: D8 _+ S. M*****************************************************************************/0 p: h3 H% Z- T; Z% h
4 a8 q! G/ J: O* |& X, O
/* Unload Handler& k- ?* i3 h4 S' L; q: B
** This function specifies when to unload your application from Unigraphics.
" }& @' l! [% z2 y2 K** If your application registers a callback (from a MenuScript item or a3 @- o! ^. U6 _& n: u) B5 O3 i
** User Defined Object for example), this function MUST return; y* s Z( L3 Q! ]
** "UF_UNLOAD_UG_TERMINATE". */5 i; ]% e1 P5 \
extern int ufusr_ask_unload( void )
0 S. q& z" }6 l{$ Q V7 k t% b0 h* E# i4 d9 \
return( UF_UNLOAD_IMMEDIATELY );
D0 e% n' f+ z G7 n" m% i- I}
" g/ T0 f, _8 K- g2 \0 `
t! d6 w3 W ~; \6 Z6 J- p |
-
|