|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。
! F/ G; Q/ b e/ b z! E5 Mextern DllExport void ufcre( char *param, int *returnCode, int rlen )
" P& p% Z4 j6 b a5 q, g; o{
. W: s. j: U* b* z /* Initialize the API environment */1 C; g( f5 Y2 t x# s2 I: b
if( UF_CALL(UF_initialize()) ) 0 z& ] i" X) N- o# n3 j
{3 I: @# _$ ]* X
/* Failed to initialize */2 O5 W F. K( j. @2 s
return;
& b+ }. z" [: a7 \. H; m$ W }
. ~5 ~# w8 V3 T* X# k) B1 Y4 f2 S9 [9 B) W
/* TODO: Add your application code here */9 P. N( K) f8 f1 n6 h$ O& `
uc1601("This is new !",1);. W; G6 V6 {! M% U* }6 D/ s! B4 {) h
/* Terminate the API environment */. L& o/ c0 m. Q6 Y; e: x' x
UF_CALL(UF_terminate());
3 i' i2 ~" W6 T; s3 @* z}
3 v, k$ L/ f# a6 d) B) y( H! w. U* P* Z! U' G1 @
/*****************************************************************************
5 p* l$ X! |# i0 W: v: E% A** Utilities
/ g. M/ M* R, z' Z a& X! U*****************************************************************************/
7 }& A9 X) {$ F! {; Z3 [( W& f% p; x, R
/* Unload Handler9 S, Y; M7 G9 ]
** This function specifies when to unload your application from Unigraphics.
* D2 h" T( x+ ~. ~) `) L** If your application registers a callback (from a MenuScript item or a
8 _1 s1 e6 O' a) S* n** User Defined Object for example), this function MUST return
$ E$ B% q3 u3 U1 S6 V" F** "UF_UNLOAD_UG_TERMINATE". */
/ L- L9 }2 d% s( k5 _- X# ]5 dextern int ufusr_ask_unload( void )
/ G0 d ~6 ]+ E) ~{
9 W' A, `" r0 n9 S9 X return( UF_UNLOAD_IMMEDIATELY );0 }& C m+ Y# n! g- I0 ?% c0 ~
}
. a% X0 p+ | _/ _6 ?9 f
" _3 C0 J/ h, X2 j |
-
|