|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。
% S: m' S( v+ U0 S4 X9 c; g4 j+ Aextern DllExport void ufcre( char *param, int *returnCode, int rlen )
6 O/ H7 f3 A/ D: |! E9 I{
1 ~3 M0 E8 ` T- F" F /* Initialize the API environment */
; _- ~9 V' [; p0 d7 J5 {9 I; \& \* T if( UF_CALL(UF_initialize()) ) " g' \3 `; z- B( Z- r5 b: R# _
{% f7 e. i1 y7 z% |
/* Failed to initialize */8 l: K! x" D; w n
return;
7 S8 q8 v$ n% o4 g* E) p+ O }* Q1 H: j7 { K4 S
( O0 \. F S* V /* TODO: Add your application code here */
. e- {5 D9 `2 _ Q- j& c uc1601("This is new !",1);9 }' J2 t! w9 D; ~/ D6 a3 a" Y4 `
/* Terminate the API environment */+ @' B8 [8 n' m2 k" v% q; X
UF_CALL(UF_terminate());& K# Y! y4 u" |' O" O
}, X# }! Y) G7 n% }3 Z+ @
7 a: Y0 U7 I e2 S( ~' k/*****************************************************************************
$ g6 `4 I* [$ e( C2 u W** Utilities
$ Z q; D% K' @& M. H" b4 p. ^8 a*****************************************************************************/
! [8 s. o& T& h# a" Q$ G/ B& A( J. B+ j! ^' `9 R6 y
/* Unload Handler
5 S9 @- c& b7 \8 z5 y6 w** This function specifies when to unload your application from Unigraphics.
9 E4 ~# {# o2 P$ W. J9 x** If your application registers a callback (from a MenuScript item or a
4 v7 d8 A* g/ }" U** User Defined Object for example), this function MUST return4 N; f7 W) N! x6 M7 [) H' f
** "UF_UNLOAD_UG_TERMINATE". *// n5 @- X/ o, o/ k: c5 z: |
extern int ufusr_ask_unload( void )' J/ w) ]2 `9 U4 ?
{
7 K7 X9 }. u" l0 y7 { return( UF_UNLOAD_IMMEDIATELY );0 t6 o% ~- m/ X
}* Q4 @* Y9 F! u
. V$ s7 Z9 i1 }3 t" \( g. Z% O
|
-
|