|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
UG NX二次开发:创建一个临时文件的函数uc4577
- o5 w% T/ g/ M; [7 U$ D& S- L$ _非常ok的一个函数,特意放在这里,供大家使用,可以随机的创建一个临时的文件,如果代码里有每次不固定的字符串,可以使用这个函数哦!!
& L5 H0 B; G* p4 ]7 F5 n" U- Z; g* V5 X
Defined in: uf_cfi.h
4 P; I _3 s7 g" w0 M! [2 T
& W9 E, ]+ Q/ t" g* a( \% \* H4 p9 G2 R$ E
Overview, ?$ K) H; a% W) H2 ?. W
7 k% R2 M+ r+ A- ^+ n$ v: k SThe name returned is a unique name for a temporary file. The resultant
: ?6 c( ~9 J) [, V1 @1 dfilename is unique from other processes at the time. From a single ) [: o2 ^& ?2 ~9 g" K( ~
process, filenames will begin duplicating after the first 1,679,615 calls " I0 K l# w6 V. {
to uc4577. Temporary files should be deleted when no longer needed by an 6 z* X3 k# n y9 ]( b
application. If the files are not deleted, there is a chance that the same 2 Q4 X8 b# `5 C9 J- t1 t. d
name may come up again if the same user happens to get the same process id
3 b) i, @! [1 Y1 C( O1 I+ ?on a later date. 7 p" @4 l; j+ u1 b) ]
6 n* z$ J6 J9 |) U& L
The maximum number of characters which will be returned is 12. $ |( M9 p; E5 W" a- a+ o
, h8 m' _9 n8 ^+ T' _
5 k" T9 j$ I6 A9 M) F: y( CEnvironment7 z& N( z3 C! }3 e& }# r: V b9 H
9 d y& p8 I ^7 i3 ^7 S9 E4 R2 v
Internal and External
9 l w& n, f' P C% {
l- e. N! }+ i# l q) j+ z! J& T5 d3 [! o4 Z6 v, N8 J, t+ {
Required License(s)0 w; F# }2 d2 ^! v) \7 Z
6 P- P/ e: p# x& b( a$ l" \& V" ogateway
5 _$ s- J: a5 W1 l9 `2 I. \
: g7 g5 o6 |9 Z# m
* B" D- u' h' ]; \3 z; X zint uc45770 ^) T; o9 P3 @3 f9 V
(
* m& u8 @# w* D& P3 v* I( echar fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ] 4 Z) h2 R7 c; x2 M9 v3 D! s
6 g O {2 E! v+ [9 q' v5 z)0 v, d, t0 U4 F3 N# ?5 i: D
5 W1 t( E1 _% R& k9 s1 j
| char | fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ] | Output | Unique filename |
|
|