|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
记录自己学习过程。+ O/ Q1 `: x0 i) y# O4 J2 x
extern DllExport void ufcre( char *param, int *returnCode, int rlen )
% I, y$ v* Y/ {+ S% y+ C, O0 d* Q) V{
`( g5 c8 V6 u n% w S /* Initialize the API environment */
: ^- Q1 l9 |& _, J; ? if( UF_CALL(UF_initialize()) ) & R8 @7 |5 V* u) o/ Q5 Z
{
" d# n0 Z8 Z$ s5 U' e! z$ H9 k /* Failed to initialize */
U# V7 y0 k& y" ^' x5 m+ ^7 \; A return;
+ B2 P+ A) m, [ }) I+ U2 c. @- J* n2 Z
. c7 Y' w3 R! `* j, X2 e5 t7 H /* TODO: Add your application code here */
8 r' b/ `: M5 W3 }, t( R T uc1601("This is new !",1);$ ?- A8 d) q' @0 y6 J: x8 f* x
/* Terminate the API environment */
% q. ]' a+ M& z% r UF_CALL(UF_terminate());
M; C. b( Z% I$ Y9 j6 O( b, _}$ f" g9 P; S) l# k9 s7 B. ?1 \6 E
5 F% p4 ]9 H/ F' q: V o/*****************************************************************************
5 h+ v) l9 Z) g& T- z** Utilities9 A& ?/ P+ i' y" e
*****************************************************************************/5 x1 @8 W$ J' x/ Q
/ p( N/ m3 t5 \
/* Unload Handler
) I3 C( V& @0 A** This function specifies when to unload your application from Unigraphics." i, |$ a/ K+ v- Z7 L* Z
** If your application registers a callback (from a MenuScript item or a
: h2 z& O, R* r6 p0 w6 D- {: Y; E** User Defined Object for example), this function MUST return# T5 ?7 H7 O- i' s; y% W' m0 M. c
** "UF_UNLOAD_UG_TERMINATE". */
; j2 ]! o6 c v% X( Oextern int ufusr_ask_unload( void )
. Q6 c' @2 y# z E{9 P; k0 c3 S0 N( v
return( UF_UNLOAD_IMMEDIATELY );8 E# C0 \& h: `! f
}# [8 B9 ?6 Y* _% T, y6 I8 {* p% C5 o
* ?, e( P. I% d [
|
-
|