|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。5 ~7 P7 O! M" H: ^ B5 H
extern DllExport void ufcre( char *param, int *returnCode, int rlen )1 R4 w. v, q* W$ A4 D9 B
{
2 C: y7 a( ]' D6 B4 \! ^ /* Initialize the API environment */& k4 S1 {+ ]- p
if( UF_CALL(UF_initialize()) )
5 W# J( [4 A. [& T5 }" i* K {
; A# `" n/ G a/ m& k7 Q( F /* Failed to initialize */
5 _0 O; R3 {8 v2 x return;) ?2 w5 L/ Z2 u1 M) [$ X! ^7 ^
}- ?- e& @" P$ i8 |9 M$ `" X1 T K
) {% I3 k' r# Q /* TODO: Add your application code here */
! O& t/ n5 S( ] uc1601("This is new !",1);/ [0 }; V4 y( y% D; E6 B
/* Terminate the API environment */
% e, M0 ^2 t2 A' t* \ UF_CALL(UF_terminate());; J" B8 ?, F4 z$ T* F% |1 Q
}( R. t/ O3 n5 V
/ |$ P; B( B1 {1 H' l/*****************************************************************************
8 a$ f J+ x7 r6 m& i% A** Utilities7 _+ M$ Y: E9 S% Q4 C. F4 x$ r% H
*****************************************************************************/
; d/ Y( e7 L8 M7 n0 g$ Q
" Y9 s! F2 H2 f* p/* Unload Handler
* M6 D4 M9 \ }** This function specifies when to unload your application from Unigraphics.2 g; U9 ^2 f8 R4 F+ r4 V
** If your application registers a callback (from a MenuScript item or a
) _* s2 n7 t7 z8 i/ y7 U4 a6 W** User Defined Object for example), this function MUST return0 C2 {/ X7 g2 V/ W0 i0 U& L) _5 S
** "UF_UNLOAD_UG_TERMINATE". */
" d, y; q; o' \* O) wextern int ufusr_ask_unload( void )
+ q6 n5 b1 U3 l! V" c$ j{; w+ x2 F Z1 r. D! r+ b# {
return( UF_UNLOAD_IMMEDIATELY );, N( S; K5 t) @& s. t' d* n7 L
}: f' f2 L s6 C$ ~, @
6 i( K5 h' F- k4 Q
|
-
|