|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。% M" p7 m5 J& B- V" x) a( ^) A
extern DllExport void ufcre( char *param, int *returnCode, int rlen )
' K1 L8 K5 ]6 Y" P% }1 L{" ~$ C. a+ `. {7 ]8 @" ~2 b
/* Initialize the API environment */
8 X+ j) T; O: {2 p9 \ if( UF_CALL(UF_initialize()) ) - |2 K3 ]" ~0 Z N' J X' X
{: y9 i z5 A7 x2 ^4 E7 j+ _2 @0 l; j6 [
/* Failed to initialize */4 D1 c: ~; L2 ^
return;& u" `, [. k7 m) |
}
1 l% {- T1 k# G* S% m# x
* Q. C8 y$ J7 } /* TODO: Add your application code here */# @9 F% J' F5 L
uc1601("This is new !",1);: Z$ D6 j7 O( f$ Z/ A) h" n
/* Terminate the API environment */
6 q! T% M- K: H1 H% z UF_CALL(UF_terminate());
+ b3 i/ I$ C2 x+ E) j}
2 E$ N0 F" i, M6 j: m# o
* y' _- h' s0 N% i, W/*****************************************************************************, B, R% [1 T0 c- k2 K+ q
** Utilities. J7 {" q) R! w/ W n6 T# g
*****************************************************************************/6 o0 T) Z9 |1 q# H( g7 k9 S
5 q1 _8 U7 F( s5 U+ ?( f, V
/* Unload Handler' V5 U) K# g( }9 b8 h9 j6 h4 i
** This function specifies when to unload your application from Unigraphics.
+ A4 @% `4 F" h$ _** If your application registers a callback (from a MenuScript item or a
' ?4 ^# h6 x5 ?/ w9 K** User Defined Object for example), this function MUST return9 M0 w, _9 i6 U K+ e
** "UF_UNLOAD_UG_TERMINATE". */: B4 j9 c( S) u/ |2 E' v* q0 B/ R
extern int ufusr_ask_unload( void )( \9 L) b' E7 x. ~$ i6 z
{
) p9 D; ]+ U- S& P# P) S! y return( UF_UNLOAD_IMMEDIATELY );0 v2 A/ {; U0 j! x# E9 C
}- z6 F$ }+ G5 }4 s/ |( \* F9 X
% ~3 v+ |2 F5 y1 B5 I |
-
|