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

[求助] 克隆装配问题

  [复制链接]

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

这个是加载零件到内存 $ d# ~/ n3 T" M# z) `8 U+ j' ^+ n
" B  g; g7 k0 E
UF_PART_open_quiet (view source)
+ M, r( N6 q' }3 C& K
/ o& X- Q9 u" {6 D
, }4 P; o, W4 |: e5 Y* N" g& jDefined in: uf_part.h8 J* A1 J5 d# y
$ v9 _6 a% |9 D2 B3 a
  b7 Z2 V7 ^, n; W( T1 s
; b8 [5 F4 F" E1 q' l3 ]0 U7 P
Overview
3 ^: ?7 h% B  x; |) [9 @2 o6 r/ W) _9 T! y8 t

$ {# N) G  Y; W# g" `& yRetrieves an existing NX part or Solid Edge part into the session
6 S* ]3 O3 l: }. A* Mwithout making it the work and display part. Solid Edge parts (.par or 5 `+ {# g8 |/ @
.psm file extension) are opened by extracting the Parasolids data from 7 Q0 T( i! y' i3 q8 E# Z$ k
the Solid Edge part and then importing this data into a new 2 m6 b2 K* p5 e2 l" n: S$ }1 ^; s
NX part with a .prt extension. The file name of the new NX $ M% {# g7 W- e5 @
part has the Solid Edge part name and a ".prt" file extension.
& u( L, S4 w. X2 k  [If there is an existing NX part with the same name as the Solid Edge part,
1 ^: y- i' N+ L$ F: I6 h# Xthen this function returns an error.
5 [; H1 e3 O) B& C/ ~# V* ?( Z# S2 j% K. \1 z( t, q5 Y  q$ Q9 k, s( V3 I

3 K5 g8 X8 ]/ |7 q) Q( D) G+ S, E- N; j( ^( u
Environment  ^" l- e& o+ T' v/ z, C
3 a4 j' R9 |5 Q, F5 y

3 s9 w! m% n! t" v) l4 BInternal and External
6 o/ e/ H1 j* l8 }
! \4 @2 V) k( g4 b# G% H
7 v. _* Q& F3 m3 P( c- z- G3 R3 V9 k
- y# I  S! d$ T. M/ t: [4 nHistory$ K$ A6 }( g4 ]2 O5 |! m

4 Y+ u9 ^6 N6 L+ r; \
8 p9 r* t0 u6 W/ kIn V15.0, this function was enhanced so that it could open Solid Edge
) Q1 O& b  W6 g* y8 X parts. 4 Q4 \3 O& P8 H- M# z& [
) F3 w. c* _0 Y: h* ^
  \$ g* o, {. S: L1 i% K2 P$ u7 {; X* x
  P3 N4 Q. ]! e6 i! d
Required License(s)
3 ~# ~  z3 C# z& f2 Z6 a5 g& t0 M3 H& H2 w4 G& x

1 j+ |1 t. U6 A  v( l" ]gateway
8 {8 Q* F$ E* g8 w, ~$ ]- L# H
5 S3 C! ^! d5 A6 l5 `4 G& F6 k3 ^* c; C* M  E3 `+ m
9 k; {1 x# m4 \  Y% N

- f3 }, J/ P' _' W! R: Iint UF_PART_open_quiet$ v' P: \% h1 m$ a9 k/ o" O
(
9 u. \4 R8 }  L5 @3 x. p$ ?9 J: u
2 _1 G8 [9 p) {5 R$ sconst char * part_name,
! i3 u# \4 [8 o5 {4 ?3 _tag_t * part,
/ O( p. G7 t6 B# YUF_PART_load_status_t * error_status / ]% ?! P; W# w0 s
  V0 l% y" U4 f; \+ T' K+ D
)
  t6 \2 [6 A- c! Q, X3 ?7 P
9 D" c# J2 A) Z8 O- w  [) ^const char * part_name Input Name of part to retrieve. $ ]! Z1 E6 y; I0 W& h7 K! c
tag_t * part Output The tag of the retrieved part or NULL_TAG if part 7 c% p( @6 f6 v3 m1 X
retrieval fails.
- {. y! R9 V& R UF_PART_load_status_t * error_status Output to UF_*free* The user allocated structure 4 h1 d3 h2 t4 j8 C; }: F7 e2 S6 O
<error_status> is filled with the names / o1 i! x$ }5 g. v
and associated error codes of any parts & M( f' V* l$ ~6 u2 K
that did not load correctly. The 5 Q" Q6 F' n4 f9 p6 w
structure must be freed with UF_PART_free_load_status.
& p! V+ L, ]$ c' K For details see the definition
( S$ W8 N2 B- f  v& Q. M2 H of UF_PART_load_status_t.
' n4 n% p/ {) d0 F4 A8 G  |% c+ w, @
该会员没有填写今日想说内容.
回复 支持 反对

使用道具 举报

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

    我知道了