|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
记录自己学习过程。* b! O7 W# E5 b- w+ P
extern DllExport void ufcre( char *param, int *returnCode, int rlen )2 E \2 b6 u5 K9 U/ \1 R
{
9 l W! | S, ?: q, j$ l' { /* Initialize the API environment */
0 @. x, w% d6 B if( UF_CALL(UF_initialize()) ) , X$ w: ]* B% b6 ^2 Y+ {
{& U( u1 |" E {; |- e- F& S
/* Failed to initialize */
: E8 _0 k. p* I return;/ [! ~' o+ O6 Z- F* h
}
" J- ]/ o% K4 k
B$ [) K0 c% ?: C! d /* TODO: Add your application code here */
0 H$ p% F4 {' X) j" @/ y uc1601("This is new !",1);- B/ A) ]" S% ]" S5 J$ |+ J# h2 W6 R }
/* Terminate the API environment */3 b% T0 I1 `+ @
UF_CALL(UF_terminate());7 P4 t& u O3 a* p0 [; g
}4 @1 @; }# U/ @ I' N5 Y
9 ?- X0 M# i0 s) x: F
/*****************************************************************************, W- q+ G8 T/ x# s1 H( w
** Utilities3 n- d+ S1 D4 I: r( K B' C7 X
*****************************************************************************/# i& r. S0 K" q. C
. X$ J: @; `7 g/* Unload Handler% k& C" T1 Q. g3 L
** This function specifies when to unload your application from Unigraphics.
/ E/ x1 t# ~3 Q( T) o0 ?# l+ }- [** If your application registers a callback (from a MenuScript item or a7 G* A/ h6 K1 L
** User Defined Object for example), this function MUST return
5 @4 r$ P! J8 G% k8 n) s# `- U, E** "UF_UNLOAD_UG_TERMINATE". */6 `, S+ P r2 I5 R% u: j. K9 `
extern int ufusr_ask_unload( void )
) _% I! O0 l" i( ]. u* n{
- j& i" A0 d4 V5 J% p/ z$ o1 O return( UF_UNLOAD_IMMEDIATELY );
4 x r3 d( m9 |0 R9 [: T/ Y' R/ i}
7 ^- j! [( t3 W @" q
& q; `/ t( V* i" R |
-
|