|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。
& T6 M5 V0 ^1 Y! p* o& ^extern DllExport void ufcre( char *param, int *returnCode, int rlen ) F, y8 H8 s7 C/ f: |( `
{
' V4 V. F2 F) g. v1 T /* Initialize the API environment */* {8 u- ?7 ]6 P7 b( n6 D
if( UF_CALL(UF_initialize()) ) 1 x8 |9 t6 i& i" r1 s
{4 J+ o, w( P# C, W' N$ D
/* Failed to initialize */" X8 s/ q& R1 l
return;" k6 C6 y4 z5 P
}
9 y+ |& b& E2 ]! I# x+ J- m0 L) R' |! C2 [# K( L+ j
/* TODO: Add your application code here */
$ u+ W9 h$ U4 h9 r8 m) b( q uc1601("This is new !",1);
. @8 E7 L4 ^6 ^# l6 h T8 ~ /* Terminate the API environment */* l( b& J0 A" ]: b8 R$ r2 k
UF_CALL(UF_terminate());8 Q7 g7 ^5 g0 n5 U& J* _: \
}
4 l1 p I1 n, x. c4 t
1 y! N+ }# H3 z* D3 o/*****************************************************************************; `( B. c! z0 G! s
** Utilities
% l* P0 @8 E# S8 S*****************************************************************************/
) F& h3 Y6 m8 b0 j5 A0 D7 r& Q i1 K2 |: y
/* Unload Handler
+ P2 i0 ~# @2 M+ }. M** This function specifies when to unload your application from Unigraphics.
( _4 d+ {. J* w" [** If your application registers a callback (from a MenuScript item or a
" l3 u+ k8 T# @** User Defined Object for example), this function MUST return4 k" e; q. _( G% N1 b3 ~
** "UF_UNLOAD_UG_TERMINATE". */
3 _5 n' w) I2 ?. N1 x6 fextern int ufusr_ask_unload( void )( o% _( ]7 C5 F: t" D z- b, _
{
; _) Z/ m9 Q# P ?3 Y" | return( UF_UNLOAD_IMMEDIATELY );* J& l& I% ^) G* l m) n4 y
}* Z+ f' V" H3 R) D( o
" B$ x; p1 c$ w |
-
|