|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
UG NX二次开发:创建一个临时文件的函数uc4577- H# J ]3 ~2 y" W( k$ ~% f% _
非常ok的一个函数,特意放在这里,供大家使用,可以随机的创建一个临时的文件,如果代码里有每次不固定的字符串,可以使用这个函数哦!!6 F; ?* k B1 d) w" [
$ P) K# \" h& ]+ S0 l+ J
Defined in: uf_cfi.h: E8 D0 f! `' a6 s% f! b6 g3 S
( b' S' m, z' u t
]4 b( ?3 O# O1 ?: O6 mOverview3 D X/ ]. c8 o- v/ c
. z1 i7 B+ }0 O( m- y0 t
The name returned is a unique name for a temporary file. The resultant
3 W. ^8 [: N7 {$ {9 Nfilename is unique from other processes at the time. From a single
# m4 ]/ W9 c" K; O$ I% \1 n0 Wprocess, filenames will begin duplicating after the first 1,679,615 calls
9 F8 k' b' Y6 I( ^; ^to uc4577. Temporary files should be deleted when no longer needed by an - D' N- N) W( K5 R$ W& L. J7 x) @/ U: z
application. If the files are not deleted, there is a chance that the same
/ I9 \* r3 B( @% s0 C5 ?; Dname may come up again if the same user happens to get the same process id
! z/ R6 y+ q3 q9 T0 E/ h+ @5 k. Jon a later date.
* ]5 U: u; y, E5 ]/ G. Q; u9 V9 x7 j: _5 U E! a* V" @; y
The maximum number of characters which will be returned is 12.
% j5 D! ?0 e! p+ g* Q$ o& Z9 z+ P) a
2 [2 b$ G5 {; p3 ?/ d& y& }
6 Y" J) o1 h* `. aEnvironment. q4 c4 G( O) i7 a2 z* L9 E6 Q; \. K" E
: O$ a. q8 x$ j/ ZInternal and External 3 F4 ~! F! Z9 K5 U0 s4 r' H7 N( P
; {, T" v/ y& b6 i/ j/ B2 c
2 j/ I# C R1 [' K8 dRequired License(s)
' ?( f: C/ r. o6 u4 }$ h6 R8 v
9 E9 r3 d$ v% s/ I2 a/ _gateway
& T1 d& ^5 z- w8 e
; i8 ^# h& @ a% t2 J m% h0 u& \" ~, O* Y
int uc45774 V3 r1 _* [, V5 a2 D
(
5 b( I3 l D! S2 @2 L. p- h: Gchar fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ] 0 y8 x g8 ~% q6 [( {, _
1 r) ~1 e2 W3 Q7 b* i& [
)" ^$ k/ h/ ^& ?7 e. g( a
, Z9 A: s# F. E2 W
| char | fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ] | Output | Unique filename |
|
|