PLM之家PLMHome-工业软件与AI结合践行者

[求助] 克隆装配问题

  [复制链接]

2014-10-6 19:44:21 3747 2

xml_ug 发表于 2014-10-2 10:53:21 PLM之家手机频道 |阅读模式

xml_ug 楼主

2014-10-2 10:53:21

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x
如何将克隆过来的零件只装入当前会话中;并未在当前目录生成文件;只保存的时候才生成;就像moldwizard调零件那样;请问怎么实现?
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复

使用道具 举报

全部回复2

mildcat 发表于 2014-10-5 09:15:34

mildcat 沙发

2014-10-5 09:15:34

这个是加载零件到内存 6 Z0 q* i( G$ S0 ~/ Z# i
2 v8 t/ X9 i& G/ e" Z
UF_PART_open_quiet (view source)
0 ^& e0 O# k  k$ [# T 9 r$ I9 t1 ^7 @4 W' {
4 j% {' ~  M" L7 {: G
Defined in: uf_part.h
6 [2 H2 v9 W/ M : u- A* L4 P+ u' H; _' |' w

# p" U$ P4 i: U( Z, O& x2 W% R
2 ?+ e; G- f- m3 u, @Overview& y5 ~# w( a5 }
% L) }  v0 i4 ], L3 u
4 Y" ~; O# [+ y. [
Retrieves an existing NX part or Solid Edge part into the session
+ L1 d& P: M/ K' |& c. _without making it the work and display part. Solid Edge parts (.par or 0 t1 e" }- w/ d- W1 @4 H
.psm file extension) are opened by extracting the Parasolids data from
0 t' R/ _3 M3 b5 y' p3 kthe Solid Edge part and then importing this data into a new
( s4 _0 ]1 t* e) F1 n4 c' tNX part with a .prt extension. The file name of the new NX
6 d% ~- K% v. i9 t0 S3 _: _part has the Solid Edge part name and a ".prt" file extension. & |" S$ ^6 v7 b3 T" B
If there is an existing NX part with the same name as the Solid Edge part,
4 y* }  L% y- a8 tthen this function returns an error. 5 ]- b+ ?* _. D

# Q& `) t' a+ ~1 J7 n. `3 {' @; C4 B2 M% M

' {* C% X5 {  a4 z+ hEnvironment! P$ j# T" l! v4 o, M1 m7 q  B

' X& U. I5 P. F7 \+ g
! O3 F$ {" F- c8 J6 [Internal and External " N# z  U7 \% I' `) R  L7 U- u4 R+ N; y

$ j+ l  x) ^& x, t6 k$ L+ @/ L/ t
( t* @4 b6 A9 ]6 n$ _
History
) b" N+ M3 L' G1 D# }% X
4 H# Y# `. P5 i8 v8 Z
1 A3 v# g, j0 C7 x- ~& UIn V15.0, this function was enhanced so that it could open Solid Edge
* W; b- l* X# n) E5 S5 d. \" R parts. ) d& K/ c. {, h8 k
5 j  [9 n; G4 A# r* Y1 @

8 Q: ], a9 H+ p( q7 C9 h! o7 o& s/ ]" N  _
Required License(s)
) u5 h2 H" j5 ^9 g! i
: a' @' d+ g2 A4 O) a3 X/ r! _# _, y
gateway3 d& c! p7 F0 D( U; z/ g

& }8 r# S( e" ]/ G6 M+ H6 p. [6 q9 v+ A+ L& r$ Z
5 h9 X4 L6 m9 u4 Z
! P) l" _  E5 Z- d1 ^9 T
int UF_PART_open_quiet
! A6 D7 K! D. S(
) x3 y+ C. [. D' A9 i
/ d8 u  W! T' U: R" Cconst char * part_name,
  c. J! c9 M$ s8 n9 I! htag_t * part,
' d  `" Z* \4 w0 G! WUF_PART_load_status_t * error_status
" b" F; ~" G0 L* j% {- D* L2 l& p4 U3 i2 s1 D  f: d$ F( q6 o( c% v: e
)3 \. e9 A8 g# _

5 V+ E4 {3 N+ h- m+ bconst char * part_name Input Name of part to retrieve. # k# S! x0 K- X- H5 e5 ?- f- K& q
tag_t * part Output The tag of the retrieved part or NULL_TAG if part
$ O( F" G& f' a; Z$ V$ \: A! M retrieval fails.
+ e6 F$ y( R( {& A UF_PART_load_status_t * error_status Output to UF_*free* The user allocated structure   g0 f1 r$ R3 R3 ]3 G
<error_status> is filled with the names 7 n5 g% v3 b' A. N) E3 `- R4 ?( Q: o
and associated error codes of any parts
. V. r% b& e# [$ G# v1 U that did not load correctly. The
# C" s+ X# _& R* d% y# O+ | structure must be freed with UF_PART_free_load_status.
6 }8 [% v, i5 w# t For details see the definition * T* n" \5 i$ B2 m) U2 Q# c- Y
of UF_PART_load_status_t. ' ]! g  x1 d. n- r
该会员没有填写今日想说内容.
回复 支持 反对

使用道具 举报

xml_ug 发表于 2014-10-6 19:44:21 PLM之家手机频道

xml_ug 板凳

2014-10-6 19:44:21

1,用这个函数后;点保存;会不会保存到工作目录?2,怎样更改文件名加载到内存里?
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复 支持 反对

使用道具 举报

发表回复

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

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

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

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

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

    我知道了