|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。8 K7 w; d9 L+ Z" K
extern DllExport void ufcre( char *param, int *returnCode, int rlen )
5 Y- [4 D" @. R! k+ G: ~{
* B: C: ~* f9 e" e* \- [6 E# S. b /* Initialize the API environment */4 Z3 }3 I1 i) ^* x6 L, ~
if( UF_CALL(UF_initialize()) ) * t0 t8 R' T) o2 s' E" S
{4 Z6 z2 ^( W* |& J
/* Failed to initialize */
4 L- v7 @3 F! \( w return;
5 w9 T6 B, {9 B& Z7 O. ^8 ?6 r }
' A* i5 @7 A' z0 \% O3 s" [( E& ?" @! g" A# h/ f
/* TODO: Add your application code here */% X1 _9 U% M: f. g
uc1601("This is new !",1);+ D+ S: W- g' M# Q
/* Terminate the API environment */
8 R) Q# o9 H5 P( I$ r2 ~( ~ UF_CALL(UF_terminate());& A% _, F+ I4 b8 W4 {
}6 K7 i7 i I4 Z2 M0 m
4 W& m1 A, Q# y5 c" n* f8 ?7 F/*****************************************************************************; c) E7 w9 P( e1 P
** Utilities6 H. N- n0 v( k/ R7 d! h
*****************************************************************************/
* {, j) S% h1 ~. ^4 ]
( h; Q; y) O3 t( f/ _/* Unload Handler F7 i2 q) J0 R+ G
** This function specifies when to unload your application from Unigraphics.1 O+ ~9 d8 @! P a1 c
** If your application registers a callback (from a MenuScript item or a
3 r0 G/ T- a, \. t) f8 z Q** User Defined Object for example), this function MUST return2 @) z' w5 e I. V. ~& k
** "UF_UNLOAD_UG_TERMINATE". */
: m! ^7 E- g7 y: Q! J) Dextern int ufusr_ask_unload( void )
% L/ X9 h1 v8 Z4 m) G{* b0 Q, p' @% V
return( UF_UNLOAD_IMMEDIATELY );
. C$ j9 L4 G: d S6 |( X, r}
6 \; `. `) ?1 g J$ q; h/ b/ r, M
/ }5 W O5 X" o* H: Z |
-
|