|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。; M9 r- R! K) j) Z- S. Y
extern DllExport void ufcre( char *param, int *returnCode, int rlen )3 p- `5 ]8 S2 g. R' m, {' K
{
9 k& d v8 ^! F+ B. ?% _$ O /* Initialize the API environment */
: }; {- x4 b' b0 J+ S" H if( UF_CALL(UF_initialize()) ) 6 }) H; \* a. T1 ^7 T1 A' t
{! r" x9 q6 w% T s% I! U/ J Z
/* Failed to initialize */' d7 u; J& d( y' x$ a7 F! l
return;
0 y0 {2 K% m4 q# K5 H% Q }& E6 E! h" b2 h, ]8 `$ o B: U
3 h( `+ h- @1 x /* TODO: Add your application code here */
7 g' `2 w3 N+ L: p1 p4 L6 L uc1601("This is new !",1);
0 ~, q8 }0 }0 E1 @5 m' U- A1 ^) t /* Terminate the API environment */7 E# B; ?! @2 ^0 w# c1 E% N4 W
UF_CALL(UF_terminate());/ b) O/ H G7 O; x
}% n" k T. C7 O" @; o) a7 v. _
& r9 p) |6 ^' t2 Y7 p* b% o
/*****************************************************************************
) a+ ~: m! n P! n1 X** Utilities
" D8 v) q" U8 U*****************************************************************************/+ I3 Y8 g& e n6 A7 o/ w# _
* z( u( g. M. W. V2 H/* Unload Handler
, U! G7 ]& b8 y! X/ N2 X** This function specifies when to unload your application from Unigraphics.
2 T3 {5 c- f r! R- `0 f" `' ^9 }** If your application registers a callback (from a MenuScript item or a* C7 S7 D/ Y! X9 n/ N
** User Defined Object for example), this function MUST return0 N! E# N+ @8 y& E: `( M
** "UF_UNLOAD_UG_TERMINATE". */; V9 b0 ~( U- \
extern int ufusr_ask_unload( void )- F2 ]& ~% t @4 p2 E5 X* [* L2 S ^
{
Z! }# c7 K% N* B# J. @ return( UF_UNLOAD_IMMEDIATELY ); r9 N# O' Z& ~% J
}
4 B2 x0 S4 k- }5 N' k) L$ y5 _ N& \) t) J, a0 R
|
-
|