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

[求助] 克隆装配问题

  [复制链接]

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

这个是加载零件到内存
' \) z- O2 t  l3 P1 s. C- {* D, ]! T) J6 W: k( C7 J
UF_PART_open_quiet (view source)
+ v* v4 K. C* \1 ^
4 F* N! a: E9 F# g: P+ c* A- c( [. [  {  k! Y+ W
Defined in: uf_part.h
1 q6 V: i  M2 B- M2 }
0 b9 c0 t" o# U0 u+ n2 v, Z+ J; Y/ t5 A+ m5 G
* `8 `7 J2 I+ ~$ B2 M' C
Overview
: ]2 i: `0 z6 a2 T, K
9 G+ p6 D3 x# z0 ~. i' W" M4 D0 X
& y- l6 ]2 G& E# ZRetrieves an existing NX part or Solid Edge part into the session
# o6 P. k; b6 E+ f  O& Fwithout making it the work and display part. Solid Edge parts (.par or
. @* s, F, a6 @& |.psm file extension) are opened by extracting the Parasolids data from + ?9 h$ Z/ a. r4 H
the Solid Edge part and then importing this data into a new 4 \2 {) p; x3 f1 K. Z' [2 H
NX part with a .prt extension. The file name of the new NX
2 t: h+ S. z7 z0 bpart has the Solid Edge part name and a ".prt" file extension.
% s" o9 s' j4 ^& ^. O+ CIf there is an existing NX part with the same name as the Solid Edge part, 2 E' q' a8 i6 E3 u6 B0 ~! ?) T2 e
then this function returns an error.
; g! p0 b+ T$ C7 O( C6 w; L; X9 g1 {, Q
' a% g- o, b5 \" D/ {8 r, U1 z. e5 f7 @$ j+ U5 Q

( o* C  M" ?0 V: K. }Environment
5 }8 l: Z6 k) ~! [# M1 u
/ [: H1 V* t2 r1 e
' D8 A2 H. `6 `* U! h' v- ZInternal and External
: `+ f/ T# k$ a4 Z, o
, `: s; N/ P4 H' l
1 R$ K! s7 `4 j: `8 E# q8 u. |8 H4 i+ d
History4 c6 p8 z' J7 C/ e

7 n! {; f) h) {3 L6 x; o, f8 _0 Y* E" E/ i' h: v
In V15.0, this function was enhanced so that it could open Solid Edge
+ C' `0 |! V( M% D' v, L% m7 K parts.
8 U9 W( V+ w. k/ r" w, T
$ A+ j# E' a8 ^: j) v! M4 Y: |
# p0 N7 K# W$ Y6 p' h8 F
. U$ i) [. ~- x. e8 ]/ }1 FRequired License(s)) K8 l: a% p. r# a, B

6 Y5 l, p+ {! i: A" H& `1 ^3 c  h3 V  P: d+ L5 a4 k# `. p, Z7 W
gateway  }( M1 N2 F8 O! E! G2 |  Y0 c) \
: i* E9 a9 Y6 Z$ V) ?  k6 K$ {' m

, Q5 ?& K4 T8 W, b6 k# C. p 7 h+ F1 ^. G/ e2 ?2 j- L+ H

- t; ]4 D2 Z5 l8 ], Xint UF_PART_open_quiet
; @+ ~! Z& P8 T5 c& P* e(
! e7 R; e6 f0 @8 i; u6 _8 Q
5 Y+ C4 `: R9 _4 u7 |. `9 K" J' ^const char * part_name,
+ V9 z+ N3 A9 E$ }tag_t * part,
7 r; K7 N7 u8 B$ R9 w: C% [5 f$ iUF_PART_load_status_t * error_status 7 l) a$ D5 b5 W7 x. Y/ v5 E

4 p# h7 \% n. {+ Z7 W): K* W& K, i& o
5 _1 d2 _, T8 ?* v" f/ [/ W
const char * part_name Input Name of part to retrieve.
; X+ G9 F! m2 o; ^1 q- p0 z1 Z tag_t * part Output The tag of the retrieved part or NULL_TAG if part ) I, [. v' k6 P" Z/ M1 m; _: o; R
retrieval fails.
! g$ s; ]3 y8 V" \ UF_PART_load_status_t * error_status Output to UF_*free* The user allocated structure
' ?# f2 s. M! A7 y" Q) T4 J <error_status> is filled with the names
) u- U* E, S/ ?1 ^, ` and associated error codes of any parts
4 r$ q# d- D0 f8 _; z that did not load correctly. The / E5 [* y6 b- G3 g
structure must be freed with UF_PART_free_load_status.
& c  f  a/ L4 Z For details see the definition
2 n- d8 J! Z2 E of UF_PART_load_status_t. 0 ^6 M% ?; V" w* L7 P
该会员没有填写今日想说内容.
回复 支持 反对

使用道具 举报

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

    我知道了