|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
UG NX二次开发:创建一个临时文件的函数uc4577
7 y5 B: ^+ _4 w* w- a7 {, C非常ok的一个函数,特意放在这里,供大家使用,可以随机的创建一个临时的文件,如果代码里有每次不固定的字符串,可以使用这个函数哦!!
$ t# Z+ _. y# T( S3 ^% G) i$ r! a# n$ D+ s/ U$ t' Z1 e
Defined in: uf_cfi.h
\4 ~0 {, A: ~ ; C, k. i+ r# b% Z% u7 @ S
, D1 j4 S1 r% ]+ d5 C7 m" I4 @Overview( E- s; N, b% P; @) T- p7 X
: H7 C7 T: x0 e. i! GThe name returned is a unique name for a temporary file. The resultant
/ x6 T/ W8 L' q3 gfilename is unique from other processes at the time. From a single & @$ o9 U( w5 O3 ]' T9 X# h
process, filenames will begin duplicating after the first 1,679,615 calls ) Y! [9 X: W$ E1 H
to uc4577. Temporary files should be deleted when no longer needed by an , x4 Q5 j7 x+ h( O. D
application. If the files are not deleted, there is a chance that the same
7 T; ~4 b* G" W, h2 F! m/ nname may come up again if the same user happens to get the same process id
, x" E8 ]) Q; [. J3 E0 Von a later date. . L6 T) ]# E2 ~6 U
+ a8 }! b" Y% O1 }2 X! vThe maximum number of characters which will be returned is 12.
7 c) {( ]" Q0 U8 P
0 Y5 G5 A/ O6 H* ^
) o& D- n. @& s$ c6 z& m1 ^Environment
: n, ~" ?! d A1 U- h+ y7 W$ y# M) R; e, b' f9 ^, w9 {# m- u4 U! ?
Internal and External
: q: {' I' Y) w# x. S2 c
7 @( z% r: Z& m" ?
& g! r1 R6 {( ]" h( C: vRequired License(s)
' t" e g. q& N* r5 X+ ?7 c" m$ M+ Y3 x4 v
gateway
; p9 b1 C( S3 Q) ]" m/ B2 Y+ T
3 l( c; i& Y7 I; t% b$ q7 y7 l
% v& w0 f# O( G8 g" b* Oint uc45774 e' z" U" t% Y7 ^" F( F
(# K) @4 h" } S+ [8 G
char fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ]
9 ~ a! _7 d* ~! U0 r' ^" _* p: I' K7 k0 ]
)
+ h y+ J$ m( {1 _8 j. d; h9 q3 c6 g, \% ?9 @& n
| char | fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ] | Output | Unique filename |
|
|