|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
UG NX二次开发:创建一个临时文件的函数uc4577. A2 h- k% ]. P" W6 B( n
非常ok的一个函数,特意放在这里,供大家使用,可以随机的创建一个临时的文件,如果代码里有每次不固定的字符串,可以使用这个函数哦!!7 `1 y7 ]: m# j
7 P: T' v2 P P( X/ y
Defined in: uf_cfi.h5 {* [' w6 L( p! y, M
: J3 P; {. _7 I
0 e' t4 ?; } u- l- H6 J- F1 gOverview
) P# j: i$ f1 C9 z) w; I3 t/ c; s# @/ ]* [: T2 a6 a
The name returned is a unique name for a temporary file. The resultant 2 M! }. n. W; U3 c% l+ n/ t+ d
filename is unique from other processes at the time. From a single
" |: b. ~% Z. W* D |( R, E8 gprocess, filenames will begin duplicating after the first 1,679,615 calls 2 P8 z7 w- [8 P! |: h/ b
to uc4577. Temporary files should be deleted when no longer needed by an
C K1 b) x& u3 Z" I* }application. If the files are not deleted, there is a chance that the same
* [( ]. z4 [+ Q. U2 G# P; V& Z# bname may come up again if the same user happens to get the same process id % B% r% p; M+ ]' F r9 z9 x
on a later date. 2 G4 R; j( E6 Y7 z1 ^
7 T; R3 ? h* X3 i5 @ w9 aThe maximum number of characters which will be returned is 12. & x B4 P$ _/ ]( i8 y& H1 M
4 u6 ~& ~/ f4 E6 V6 M9 U% Q
}# z7 j7 ?1 o j) wEnvironment
8 ^# q" l. M- _) w7 X1 Z# Y: K+ L# X; S
Internal and External 6 _8 W6 m: J9 `# _. X2 W
2 _% D' Y4 g# y% T
4 ]9 i, a1 }" [Required License(s)
/ ~7 f3 _+ K' b
' X9 W# d1 w: ~/ n5 L8 `gateway
3 Y }2 G, N7 C5 u% l; g5 X. ?7 G# F! o' w, B- f6 Y6 Z' O
5 X3 e# _" O$ h; Zint uc45778 `" L! W5 u2 e [
(
( g: @/ V' ~2 I1 |6 [2 _4 C) [; Tchar fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ]
j6 a) v3 g9 @# m& a0 `0 O$ O2 t
)
, r+ s5 m7 l! ^4 b% i" s) s
9 k4 C ^$ l/ }* e6 C char | fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ] | Output | Unique filename |
|
|