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

[求助] 克隆装配问题

  [复制链接]

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

这个是加载零件到内存 ! a5 M% M- O/ w

: u/ p/ q, N8 lUF_PART_open_quiet (view source)3 e% L+ x/ W* x1 P/ }) ~% a4 h; V
7 f% K- i* N- @4 @, j
0 k, _- m# L% J4 t# F$ D& b" A) W
Defined in: uf_part.h: P6 N9 r  s" R; Q; x) }( h* j9 ~6 R
8 f8 I' {# G1 y# O7 i
. Q/ Q  ?  w- v8 `% A
1 |. h; Q$ P- E
Overview
5 h7 T' Y2 Z* f) |% F7 E6 v$ ~3 q2 `8 s$ @. w: E
) a4 I+ |' w2 f! n5 l
Retrieves an existing NX part or Solid Edge part into the session 2 d% ^- ]* X! R' w% Z
without making it the work and display part. Solid Edge parts (.par or
( z  T: E. u) s$ ~" q. }.psm file extension) are opened by extracting the Parasolids data from 2 V- [& m$ W7 o) u
the Solid Edge part and then importing this data into a new
! h' Q! C# m, p; E9 wNX part with a .prt extension. The file name of the new NX - F, S9 H$ J: t2 s0 Y/ `! j) W: z3 t
part has the Solid Edge part name and a ".prt" file extension.
% t, ^! M4 ~% D; U& u' y7 DIf there is an existing NX part with the same name as the Solid Edge part,
+ j3 {2 T8 G' _$ [. @) _( q6 v+ qthen this function returns an error.
/ `2 a" x& O8 z2 o
. T' u+ k' `% w0 t$ B1 D6 @; N9 Q4 ~, [" t. T! Z
8 W8 Y# [4 p( I  Q0 V- b
Environment" K. a6 `9 N: a; a7 e

* z0 w  U7 E% m! r3 b' h; d" f2 j4 E0 }$ L) Y. K: r6 w
Internal and External 4 V+ U) O, U" s& U

$ ]7 T  x! u( o  O1 |4 m
2 K' i" H# q8 K. [2 s* u: d8 N7 B2 e! H1 \5 t  m
History
9 h1 ?) B9 \+ s" o. }
* ^: I7 S* I& d, L) c8 j" `4 d/ U" `; J. o7 R9 ]. |- d
In V15.0, this function was enhanced so that it could open Solid Edge 2 K2 y( ]' L; _' v6 ~& o
parts.
  t: v$ O5 {& @  r& \ , w, F+ g2 P. P8 G' f7 v+ x# V7 F

+ s6 n  A1 O( r! j7 n. H
/ @) x1 I" y" c! W% zRequired License(s)$ q1 V. i4 w/ N8 s, o: W& T: A, `
5 w& Z# u3 G% M+ D2 {5 y0 y

3 J* D( I; w1 dgateway% R* M% F3 d- b% V1 P
: M, I. J# N# L9 a

1 P# U- L2 M+ L/ h " x6 v4 X5 ]/ r" l7 ^' K2 m: f

- P( \- k" h9 b2 U1 M! Z' S/ B0 Iint UF_PART_open_quiet
1 {; r3 k4 V7 x  F! u(
! `8 }. D- W  V1 B/ `- ], f0 b( W$ `4 n
const char * part_name, + O  v) p7 j! Y, e; i9 \
tag_t * part,
; ^2 U1 c1 S+ M& x' t9 JUF_PART_load_status_t * error_status
: Z% n: o, V$ r+ B: R% D+ |( c) C. P! H  x6 K! A
)
8 v) j$ O6 n- e6 X) @2 I5 F8 R% Q- e  B+ m' m+ P
const char * part_name Input Name of part to retrieve. 6 K6 m2 L, T3 n5 o& }3 p
tag_t * part Output The tag of the retrieved part or NULL_TAG if part . T' \$ L) G6 x; b- H8 M0 p, H
retrieval fails.
0 m# S: U+ J9 V+ I8 O: H* e& s UF_PART_load_status_t * error_status Output to UF_*free* The user allocated structure ' _! R2 M3 x, U/ G6 K$ ^
<error_status> is filled with the names ( B" M4 V- C2 K: a+ E$ q  p: G
and associated error codes of any parts 9 E* F4 K; `+ b' @2 u
that did not load correctly. The 8 ?6 r) D# N. ?; `! c! Q9 \
structure must be freed with UF_PART_free_load_status.
, I6 r& T3 B( W! z6 p& [ For details see the definition
' |  Q4 h+ `6 [# t7 w6 k of UF_PART_load_status_t. % B0 ], O  B9 p: Z4 _9 ]4 p3 O" ~
该会员没有填写今日想说内容.
回复 支持 反对

使用道具 举报

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

    我知道了