PLM之家PLMHome-国产软件践行者

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

[复制链接]

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

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

admin 楼主

2016-3-28 16:55:02

请使用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
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二次开发专题模块培训报名开始啦

    我知道了