|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
记录自己学习过程。
" B8 M; H/ m3 T; P' m7 ?extern DllExport void ufcre( char *param, int *returnCode, int rlen )7 d) j2 b. C* Q8 z$ m
{
7 ]% o9 b, P3 U; x T { /* Initialize the API environment */- w8 L k8 e% F* f- t/ L0 Z
if( UF_CALL(UF_initialize()) )
% E0 v6 O" I- y# e. Y7 Q, Q {2 T( M4 ^2 r8 @6 \5 z% D& q( `0 ~
/* Failed to initialize */1 H) a5 V+ f1 [, r; i$ s/ {
return;
0 W. h Z5 t9 ]: X+ r* t4 @ }
$ K4 u0 A5 J4 i3 D1 q
$ }' a) _3 \- w* L /* TODO: Add your application code here */
! Z: u: ~( r" g! {# e# K/ Y+ q) V) h uc1601("This is new !",1);
5 p; J3 l8 Z0 |% S7 N /* Terminate the API environment *// X8 t+ {% c# p, T
UF_CALL(UF_terminate());+ g, v# k% `6 z/ l
}
: D5 s1 K; |$ A, L. N" L# q, w, }
/*****************************************************************************+ P9 N. o: a( @' \' P
** Utilities
7 u1 P0 U& s {% `2 | X+ {2 M' Q*****************************************************************************/5 |2 {2 @) j. [, q4 U, n$ I
@8 w2 ]6 K$ u$ \$ X- i# I8 O& c/* Unload Handler
. a% O1 ~0 I' {: e+ J! R' p** This function specifies when to unload your application from Unigraphics.
7 y& F) ^' _% P* Y% z** If your application registers a callback (from a MenuScript item or a" E$ m% M0 k3 P% t8 g0 [
** User Defined Object for example), this function MUST return
^% M5 L3 b2 o; H: N# R( [' z** "UF_UNLOAD_UG_TERMINATE". */
& k; U& @; Q* X9 ?2 `6 [% y# [extern int ufusr_ask_unload( void )
9 |# a0 b9 T( h8 D8 E$ l{
6 d" I, {# j9 U% u( G return( UF_UNLOAD_IMMEDIATELY );
2 x' l6 i+ B5 P' `# _6 p; n5 P}% C0 a; V( N6 z
5 a! c. E5 C: r# c |
-
|