|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。0 X; K6 r4 B+ ]" b0 ~/ R
extern DllExport void ufcre( char *param, int *returnCode, int rlen ): X" H8 F, F4 T; ?
{
% `. L8 b. k: e6 R/ l5 Q /* Initialize the API environment */
. @/ X# E+ p" z if( UF_CALL(UF_initialize()) ) " w- D' w% [4 Z
{
# k3 q+ v0 g3 x( y* j1 C7 w8 n /* Failed to initialize */
+ S# @0 ?/ t, d6 w! {, `: M return;. X& m& D/ \: q% o) I) B
}
9 y! }5 _- h* l: P# t
8 u1 \$ G2 `- r /* TODO: Add your application code here */) `3 b$ ?& }, l1 D+ j5 p2 L7 R* m
uc1601("This is new !",1);
$ m0 h8 y! H# C, W7 o( P/ o /* Terminate the API environment */
8 R. p0 e0 F! T% E. s5 _ UF_CALL(UF_terminate());8 m5 A. ?0 |- u( A* u5 B$ e4 Z% q" c
}. b4 m9 C' c) [. B7 Y- z l/ w; B
9 W) f9 V0 _! f. d, ^( l* T7 P
/*****************************************************************************7 _/ ] p7 B: U+ X
** Utilities1 r/ Z' F5 J* x+ q' e' K
*****************************************************************************/
. d5 S+ Z; S, z2 Z; u7 D7 _5 `" _& ]# s5 ]: s+ L; y% Y4 I3 L8 W6 y
/* Unload Handler
3 K8 a" ~+ p0 f1 j& C** This function specifies when to unload your application from Unigraphics.
8 ?, ~! l. H7 m) A; [** If your application registers a callback (from a MenuScript item or a2 M$ d) Q$ d7 \) x6 G4 t8 \
** User Defined Object for example), this function MUST return* e, [$ g# U( o E1 U! }% [
** "UF_UNLOAD_UG_TERMINATE". */& {% ?7 K: D% W1 B4 Y n M i
extern int ufusr_ask_unload( void )
& ]- t; c( l- ~' S0 Y: L, q{1 \6 Y" s1 C& j
return( UF_UNLOAD_IMMEDIATELY );: |# t# c# D8 F X4 j1 J0 @
}
; M) V c0 C7 y
8 W; _3 h) J1 i' ]- f3 m5 m h |
-
|