|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
UG NX二次开发:创建一个临时文件的函数uc45772 M9 V m6 X- X' b+ ]
非常ok的一个函数,特意放在这里,供大家使用,可以随机的创建一个临时的文件,如果代码里有每次不固定的字符串,可以使用这个函数哦!!
2 ]' N' V) u5 o, x/ d
) s- }- w9 X0 i; dDefined in: uf_cfi.h k4 J0 r7 X+ Y) ^3 T
% G( O8 o+ P! [) z/ X" s$ Q! E
0 L! [" V) b8 Y+ zOverview7 G( U! P( w' H0 G7 b
+ h% J. s T0 [* }% d2 K9 O* U; @The name returned is a unique name for a temporary file. The resultant B3 D' E; ~: p3 e3 B" W: c
filename is unique from other processes at the time. From a single 7 p9 `$ n/ x5 H
process, filenames will begin duplicating after the first 1,679,615 calls
; |7 ^( h3 o0 c4 c9 ~" wto uc4577. Temporary files should be deleted when no longer needed by an 0 S5 K3 i5 C+ h; Q2 V- \
application. If the files are not deleted, there is a chance that the same ! o6 }7 W2 a y& ]0 Z9 f4 I
name may come up again if the same user happens to get the same process id
* w# V- G6 t( B7 oon a later date. $ w8 h9 N t* B6 e- r
$ m! P& H6 e& [6 h9 J( p( I
The maximum number of characters which will be returned is 12. 9 ^) F! `; v5 G* L9 S
' U) [0 m$ |/ {' K7 J. s7 I" i: G6 ], X
Environment" T/ @# Y3 C* G1 [; ^
" i: ?, ^2 V) C4 q0 nInternal and External - Y( s u1 A; w T3 L
F$ K" s; |! x0 f* o/ V
+ R; U; l/ m D/ K0 s7 R4 h
Required License(s)
4 c6 T$ ` R& p6 C/ x$ H2 P
' c; P5 m5 ^, J( o# b2 bgateway3 ~+ y- o' z$ T
+ T$ O: Q. ~; R# q/ w
: n a# }+ v. d, }$ u/ d: Tint uc4577
: M. f! e0 A0 X( H$ G(5 H% }& q: o6 H4 s
char fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ]
4 K5 N6 h& |$ R
' A _8 N0 c" T1 ?); P& G ?. g! O7 F& O% w
( }. x1 s" x' i+ K U5 k# h, ]6 E
char | fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ] | Output | Unique filename |
|
|