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

[求助] 克隆装配问题

  [复制链接]

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

这个是加载零件到内存 8 @( s' {7 L9 C4 Z* F

0 {) Z* k: S. Q/ l% E! M- HUF_PART_open_quiet (view source)
6 R2 d( o  ]) i7 y6 e9 N
% ?* ?, ^4 C. `; ~" Q/ _+ m; |0 t! t8 j  o( b
Defined in: uf_part.h; r2 B$ {- O2 z* \8 \* Q

1 g+ v; k! D8 w8 u7 f8 ~/ X
' |1 c: I2 K" z0 H# h. @6 P9 N5 U& A, d* U& D' J) J" n+ @( j
Overview
# w" E! B! M8 ^: m) J0 k  G+ l$ n; n5 Y

4 o& O& Y- V$ S2 O3 E9 M. LRetrieves an existing NX part or Solid Edge part into the session " H! R5 s2 h7 f; K& w2 e
without making it the work and display part. Solid Edge parts (.par or
  C8 ~' @( [( G.psm file extension) are opened by extracting the Parasolids data from $ A! k, `  f4 g9 i' u
the Solid Edge part and then importing this data into a new 1 z: E4 o5 e  ^, I  m4 }9 a0 ]. G
NX part with a .prt extension. The file name of the new NX . X$ {  W7 g& D- _" d& [7 N
part has the Solid Edge part name and a ".prt" file extension.
* o! r! I( c) W7 W1 J! ?: oIf there is an existing NX part with the same name as the Solid Edge part, 2 h8 h( O4 E+ v8 ~
then this function returns an error.
3 f0 I) S$ N& E. j% x
- w% P9 Y# {4 ^: o5 U6 ]4 G! p. [( b1 K( ~: A

% v( j  e1 U, t" w. w! Y. vEnvironment
! Y# c9 ]1 Z0 A) ?5 H. V3 z2 U8 u' i. @) q: z, U: b. ]
% @% o* ^- D) \0 l! X  W. z
Internal and External
2 d% U$ d& M0 h: j8 d7 I! J1 a/ Z: \2 L9 `, b6 q  s) T, k

% Z! n( T6 o( w) x( |' y
8 u( G; |. P1 i2 cHistory
% X0 J3 u9 a/ N3 w5 {' n! u" h* `) G0 P/ ^
/ n" o& P; z# j4 U( A0 {
In V15.0, this function was enhanced so that it could open Solid Edge
1 q# _" @+ v6 V$ O% }- z2 o# ^ parts.
7 c7 o- ~  R3 }9 K5 E4 q: {
6 ]9 I! c" a7 Q$ b1 g) Z* ~# y6 l+ {$ I  y

% R1 b+ ?2 {* v. B* h* c  v2 ~' ^Required License(s)/ n& O& J) J4 b$ i( n
) r+ `- a, e6 _: g$ g' T
' s; m/ ~' L9 f/ Z2 ?3 W1 ~6 b
gateway/ O! ?) x9 P+ |! C+ T# i7 S
# M0 v7 A; K- ]6 w

- o9 G6 [6 x. B6 ?/ V$ F; |
1 f1 G' I+ U* F& g7 G) Z! B% `' ~4 H. s* C
int UF_PART_open_quiet* a1 O" N2 r# Q- J$ X8 c
(
2 d7 p0 W2 `5 I, A  H- F) b
1 {: [% n3 v4 A2 P$ Vconst char * part_name, 3 r1 N/ Z# n: ^- Q0 X
tag_t * part, & S( R9 Z. `" _/ L& d3 Y0 e
UF_PART_load_status_t * error_status
9 ~3 W0 H4 L: c  [7 a4 w
1 u4 H( z4 i$ n, s( U/ A* |  `1 }- e! `: C& B)
" R5 M' H9 U! D; h. G  D  L: s& ~9 o6 w( g% o* G. l
const char * part_name Input Name of part to retrieve. ; ]5 F" ^& P" g- G; N0 a. o" w
tag_t * part Output The tag of the retrieved part or NULL_TAG if part
2 r. e3 I  p: ^5 T. W retrieval fails. 5 U3 R" `  A. [9 a! P" F8 V! i
UF_PART_load_status_t * error_status Output to UF_*free* The user allocated structure
- y2 k9 w' Y, O8 A  \: L- F <error_status> is filled with the names
7 ~# x2 H; M" s5 p# P* j and associated error codes of any parts
+ w: _+ ]; p3 G8 n2 S$ j( K that did not load correctly. The ' Z! ?7 h; i& x1 a" L9 w9 {" q$ ]
structure must be freed with UF_PART_free_load_status.
6 y+ E4 a7 a* T! o! K For details see the definition
) F; ~/ {; ?1 k1 r9 Z* v of UF_PART_load_status_t. % d* `" h0 h7 b' a% Z/ U$ }4 d
该会员没有填写今日想说内容.
回复 支持 反对

使用道具 举报

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

    我知道了