PLM之家PLMHome-工业软件践行者

[二次开发源码] UG NX二次开发:创建一个临时文件的函数uc4577

[复制链接]

2016-3-28 16:55:02 2326 0

admin 发表于 2016-3-28 16:55:02 |阅读模式

admin 楼主

2016-3-28 16:55:02

请使用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
charfname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ] OutputUnique filename
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了