|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。
6 u) M; B3 c* A/ ^ w8 ]9 ~$ textern DllExport void ufcre( char *param, int *returnCode, int rlen )$ [" n! J0 r/ @6 h
{4 E6 S- [8 f' S) l
/* Initialize the API environment */
- i7 j% N, l% R4 D! ~ if( UF_CALL(UF_initialize()) ) ! S3 N0 e/ H8 S; y# U0 ^2 G
{) h' K4 I: t8 B% ?
/* Failed to initialize */, e. i. z9 i5 E. t: W n( U" i
return;# B& n( c/ i( \3 y
}
- f8 s/ m- s' V: i
0 I9 ~* X0 X; x# U j' j0 t. U /* TODO: Add your application code here */
+ x) q! w2 |' u. e, j uc1601("This is new !",1);" B# \! o: X9 e) J3 b3 K
/* Terminate the API environment */; M& j8 _0 ~% m6 P
UF_CALL(UF_terminate());7 {+ J( Z1 _# \' I! i0 G7 p
}5 f, ]5 `, T& R' L* y/ ~: W7 Q- l
9 Q# z* G, `4 ^8 _
/*****************************************************************************# x( @4 T9 | ? I
** Utilities
, U9 ~! c$ ~& S Q*****************************************************************************/
& [1 |" M V, I: B* j# O, X U6 u8 J+ {& U2 d2 F
/* Unload Handler+ `9 k& ^7 n5 q! `! j
** This function specifies when to unload your application from Unigraphics.: O0 O% n$ G) A G
** If your application registers a callback (from a MenuScript item or a+ q% l7 B1 e# R6 s5 j# r
** User Defined Object for example), this function MUST return
1 }2 b2 c9 d# P( M8 o# _** "UF_UNLOAD_UG_TERMINATE". */& W; A Y" `( Q6 w7 t
extern int ufusr_ask_unload( void )! F( @1 M4 `) Q7 \+ u
{! g" m* h1 n$ D; ?2 N$ W4 w: \
return( UF_UNLOAD_IMMEDIATELY );) Z6 t3 i! O* g# W+ u
}. n2 q; P- m3 v; M h8 @" X
) Q$ P8 ?* C7 q3 Y
|
-
|