|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
UG NX二次开发:创建一个临时文件的函数uc4577$ H# W, L" M+ o7 X% K
非常ok的一个函数,特意放在这里,供大家使用,可以随机的创建一个临时的文件,如果代码里有每次不固定的字符串,可以使用这个函数哦!!# ]( L! D4 i0 i" }) J
4 Y9 {0 P* z) R5 @ y' s
Defined in: uf_cfi.h- q" G+ h s9 H* f l# y7 ]
( L' _7 a% y6 Y- W
H: J" h6 U4 Y7 HOverview; T" C2 f5 g: H k; N" f
9 x _. d4 S: Y9 X! \The name returned is a unique name for a temporary file. The resultant # s; X& c5 D3 D4 D, j
filename is unique from other processes at the time. From a single
e: T* K9 ?6 x v+ c! ~" B; Uprocess, filenames will begin duplicating after the first 1,679,615 calls
0 n6 h5 o' h; C% S8 Ato uc4577. Temporary files should be deleted when no longer needed by an 7 r% ~! r4 N- B& }7 z) B0 K+ ?
application. If the files are not deleted, there is a chance that the same . \- ?" ]+ t$ P+ @6 x
name may come up again if the same user happens to get the same process id ) _- q, @- _9 c. o
on a later date.
9 N8 m/ W2 M; x4 y" `) a/ w5 j( ]* E' Y6 N4 ?, ]/ H$ R n2 t
The maximum number of characters which will be returned is 12.
. W% \4 S, O3 |! K/ m- [, D' g% h% a [! c
% T7 f6 |6 u8 u' N. r& ]' }" @0 J$ n
Environment" Z1 C* {( C, l, ^
/ E/ d; S2 S7 u( ?8 PInternal and External * e2 Q& {* E$ ]/ H4 J$ g; c8 b
6 ~7 }+ b4 f' J6 ^. p4 f, u# Q
, W/ W/ ~4 n0 Z1 [6 N
Required License(s)3 W8 R" G5 s& b& A1 {2 C0 S7 _
0 O2 J7 H+ u/ G% X& e: u: H( ugateway
" K1 b1 a ]8 C& S5 D5 I$ J- O5 M" W9 k) ]
( D2 x. o: u/ N5 Cint uc4577
; `2 I6 B q4 |& w(
$ ~' w" ^( N: t+ f: f5 tchar fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ] 5 w" s. i* _! q8 P a
+ F+ ] z; r S% k
)$ S8 G' {! c y
" E; \ A8 H ?4 e/ X char | fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ] | Output | Unique filename |
|
|