|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。
3 h" c8 Y/ Q& q, zextern DllExport void ufcre( char *param, int *returnCode, int rlen )
5 j& t7 M$ ?2 v$ h E{9 ~. G2 U) f: S: s5 G2 t
/* Initialize the API environment */
$ \! X$ u) t. l; ?+ Z* o1 T$ s if( UF_CALL(UF_initialize()) ) 4 g2 s5 G, H1 j! q' J# r
{
, j! A* E9 [. j1 m /* Failed to initialize */6 a1 I( _* l9 W* z9 N+ _5 R( s
return;
3 X$ l/ I6 d" i6 Y5 L }; v6 y9 L3 Y3 L" p; w; ^! q
# R* d! b c8 Z: D& Z
/* TODO: Add your application code here */9 ] p: ]5 _" ?" O( I
uc1601("This is new !",1);0 O* V Y! |6 x. L0 h
/* Terminate the API environment */
3 _3 R1 ?# X+ n- H; A UF_CALL(UF_terminate()); z9 {5 V8 @/ F; W' ^% p
}* j7 H6 y; u& B" a% q0 G: l+ _, u
! p o8 j; M; S* N9 i0 N5 E/*****************************************************************************+ A/ S. U# ^. {( |; S* G
** Utilities) [# ]0 s+ ^ m8 ^' E+ {! d0 \
*****************************************************************************/
: {0 m0 c. X/ V2 S2 Z/ A
k9 p0 R9 c' m/* Unload Handler
: u: A' [2 b( F' V8 s2 U** This function specifies when to unload your application from Unigraphics.% _0 |# E& l6 u+ N1 Z) _+ D
** If your application registers a callback (from a MenuScript item or a
, J7 q6 F* M/ L) n5 l: d8 j** User Defined Object for example), this function MUST return1 ~2 e. |0 Q9 u' h1 j, L. n3 x
** "UF_UNLOAD_UG_TERMINATE". */
- Z* Y6 t G- G3 Z" [1 |7 wextern int ufusr_ask_unload( void ); B% K8 l% u# f3 F8 [ l" [) Z
{7 r" y+ @* y/ K2 v2 y
return( UF_UNLOAD_IMMEDIATELY );
/ u) k+ t2 }) Y}+ u- Y# w+ @* N& R r
" e) K; n2 N5 C6 w/ j& M t |
-
|