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

[求助] 克隆装配问题

  [复制链接]

2014-10-6 19:44:21 3743 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

这个是加载零件到内存 ) k& \& |$ [1 n& B+ C, F

# @+ O( `6 n' h$ \) I$ u: aUF_PART_open_quiet (view source)
- \" e; C) ~" v" W- c( Z( D 6 ~2 k" e% n, W' {" e% x: @0 B1 ]

* e- \4 s/ w  O% ~& D4 t2 V4 hDefined in: uf_part.h+ a8 _: Q& t6 }+ U! G& v

, U$ |6 l  \, `1 Q, w1 S& L# V" |4 r9 N& S8 t; _

0 ]. Q; D& ]7 P  x  dOverview0 i) l4 D4 [/ A! n  D5 X* g4 e

3 [% t/ S2 y: h+ ]( m; Q+ k4 t$ e) Z* X
Retrieves an existing NX part or Solid Edge part into the session 0 ^# i  A$ }( B" f
without making it the work and display part. Solid Edge parts (.par or
2 ~: a* {/ B; f8 Y. V/ h" ?) X.psm file extension) are opened by extracting the Parasolids data from
& N' t. X+ x: H- xthe Solid Edge part and then importing this data into a new
0 `4 \! e! X; X% LNX part with a .prt extension. The file name of the new NX
# M1 U. B7 @6 e' H2 ]! ypart has the Solid Edge part name and a ".prt" file extension. 0 J. ?1 W+ }& Z+ I
If there is an existing NX part with the same name as the Solid Edge part,   X; O( r) ~  ]' A0 m" e
then this function returns an error.
1 d; `: |4 p" f* S& @" C! d8 a; R1 p; x! p( U+ U/ B% O2 l- d' [

1 F) L  O3 U) r7 |, ?9 Z* R5 u5 r
8 F. W! M$ Y" F: y$ C% SEnvironment
) r! F2 D- W4 G) d/ c) J
! c: b! [6 B* a# P; ?# ]1 {! Q5 `( Q, W/ V+ x
Internal and External , B$ U1 \) G- \' p$ u

6 v6 ]0 w/ f8 K$ n! B
( v: U& Q& v: }$ p) D& G/ c$ J4 F+ x6 v0 B4 D8 Y. y2 H
History" {) |( I4 o; A2 c! l
: [3 k9 y( a0 f( G
% \5 g% P8 l" ]1 ^% }7 V
In V15.0, this function was enhanced so that it could open Solid Edge ; W' k/ j8 q6 `" c
parts.
" ], R; i5 _. s$ p  x
" ~. A, t9 Q1 [: s4 ?9 E: \6 ?2 b- ?( N9 _; Z/ k( V. i9 Z
9 o3 i" d* y' j, M4 d
Required License(s)! F( A& s/ ~- {: P% i+ x7 x( W

/ ]0 {- R9 V& R, P
# `  }, r& S2 L% y  igateway
% y4 K% L( V: R- d, U# @* ]8 V/ D  U6 k- N( E6 l# w! T4 G5 Z. _
4 V* k; l1 l% N0 Y2 c1 B2 C
; _9 T  s2 `. H+ F! M- e. \

$ ^9 ^1 c" C3 o% i7 j/ Q( b1 Kint UF_PART_open_quiet( z* U$ B# l: T& a  p- l
(" @, \3 h; @0 W- L& E; X7 J" @
: I" a) f! Q1 i9 v
const char * part_name, " B# h* P; {$ _
tag_t * part, 9 u" \8 c, v  S: b% \; Y
UF_PART_load_status_t * error_status ' j9 S; h1 Q6 h8 Y

* S" t, m$ Q* r, F* F/ n6 {)
7 _) Y5 m, M" c3 P
% q" W7 Q+ n+ @3 I" g1 kconst char * part_name Input Name of part to retrieve.
1 E, ~; T; s) G7 Z0 r& u) P2 D tag_t * part Output The tag of the retrieved part or NULL_TAG if part 1 [  F9 n; y, D
retrieval fails.
5 ?: }* X* K: \ UF_PART_load_status_t * error_status Output to UF_*free* The user allocated structure
5 b; E! g4 m7 ^: x# \7 E! | <error_status> is filled with the names
; ]% z5 v: M+ T8 l and associated error codes of any parts 7 Q" }8 X+ A- ^/ ~& G) n( t+ U# t3 R
that did not load correctly. The 6 b. ]% t8 M  i
structure must be freed with UF_PART_free_load_status.
3 _2 t8 f. h) s, g! U* d( [ For details see the definition 5 M" U. M+ q' s  h3 o
of UF_PART_load_status_t.
( [9 J9 s- {+ D- y  a( |! b
该会员没有填写今日想说内容.
回复 支持 反对

使用道具 举报

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

    我知道了