PLM之家PLMHome-国产软件践行者

[求助] 克隆装配问题

  [复制链接]

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

这个是加载零件到内存
* S  {# l% n6 d$ t: p0 A
0 f( P/ ^* |: z2 D* w  @8 FUF_PART_open_quiet (view source)
) F4 v& x- ^* H; n4 \  {8 L; w9 d
( T8 s- |- S3 K) ~; \3 N- O
; e% Z# H: O! u6 e" p5 dDefined in: uf_part.h
8 L' E9 O+ }: s, w1 I
1 W9 \  ?6 f7 @$ w. K
1 `. C4 |$ y4 [* {7 ^  ^0 j; x* ~
9 S9 X5 `. }4 b' LOverview
9 K# H) F2 U& V- d8 A
5 P2 Y0 }6 n0 T7 Z3 a6 l1 |) c  T
) `: Y. F6 V9 z0 B5 SRetrieves an existing NX part or Solid Edge part into the session
& g2 S4 Z) c5 U7 e8 e5 U3 v( s  P, xwithout making it the work and display part. Solid Edge parts (.par or
/ I$ a) E3 L; |9 L" `.psm file extension) are opened by extracting the Parasolids data from $ ~" L1 \) ~" V$ \; Y
the Solid Edge part and then importing this data into a new
9 r7 Z$ m9 s( _NX part with a .prt extension. The file name of the new NX
) i- K$ A4 N6 Kpart has the Solid Edge part name and a ".prt" file extension.
, n$ L% `1 ^) }! GIf there is an existing NX part with the same name as the Solid Edge part, 9 M3 l- k; `/ ~- {- y! T* R
then this function returns an error.
) s% o# [9 T2 l/ l
2 \3 F4 M# L% M" \
4 ^) A3 Z! s- f& W) R& S4 l4 @
  [% k, L6 m$ x( a9 A/ R- q3 C! IEnvironment
3 n. h4 }, V  O+ n6 R! q
8 K! c+ @& A! }# c9 P6 R, E5 `0 M% R6 {6 D7 B/ D
Internal and External 7 y( w6 u: Y+ I# b8 w; P
+ {. d- Y  |4 P. Y! O% R* b
( q, |  y- z" P* @( J% N

5 ]1 j* M- u% e( V7 X) k% m1 oHistory
  ~" m& H- Q% K  V; A6 x5 u( H8 M4 D9 e
$ W: @( M; A  D. d
. E7 c% I, t) v- }& _! NIn V15.0, this function was enhanced so that it could open Solid Edge
% W9 b4 b2 s9 J- N0 ?( R8 Q parts.
% N; h: Y# y& t* @7 H$ j5 z" \ ; m$ P2 P3 u6 W& `- a

0 t5 ]. a1 X" x7 t  t+ I2 @' Z2 W9 @9 d+ s; S4 Y' x- F8 K
Required License(s)
) L7 r! @7 U" ]3 V% g
: d( Q/ ]0 ?& t# {" c  G  |/ s
& \' B" ]  q( k& ]2 F9 \' tgateway
( H* c% m. Z6 @( t5 q3 ]+ w* f, n  B3 K& G5 i+ y: {; O/ b
  c% M' z: z6 \, Z# S6 K

: t. u  _6 G3 F! F, U" F
. S1 u; g  o1 lint UF_PART_open_quiet
7 Q; O: [2 w. X4 o* a0 p(
) t% s- ?8 o' a3 l* q& A' g4 C2 B- f7 z" D5 d4 f
const char * part_name, , c6 {3 O8 P! _6 C6 n
tag_t * part, : Y9 Y1 y' P; m. s; ?# S
UF_PART_load_status_t * error_status
3 y, S3 t# }9 O3 d5 C% N7 g2 w9 m4 y# L/ q+ C# [
)& P1 V7 V, {" H/ f) X3 R: u
" L$ R# j* z! v/ D. e& M/ f6 C
const char * part_name Input Name of part to retrieve.
, v* r# L4 d8 A# v  P" d. m/ J tag_t * part Output The tag of the retrieved part or NULL_TAG if part - p! c3 m1 e) e2 S$ T
retrieval fails.
4 I( Y4 ?5 A, O' q' {/ A UF_PART_load_status_t * error_status Output to UF_*free* The user allocated structure   G3 R6 L. C- G% {" c$ s4 V
<error_status> is filled with the names
5 X  C) Q6 G7 ~+ s, ^. m7 g: S4 S and associated error codes of any parts : d2 h! ]0 h! B( L5 }
that did not load correctly. The
! [  J/ i+ N; }+ M1 v* O6 z structure must be freed with UF_PART_free_load_status. ! e) I, L6 d; j! ]& G3 ?) E+ G
For details see the definition
" }" l8 `7 S) a- A$ Q; m/ ? of UF_PART_load_status_t. $ c. W, }7 S+ v5 k6 T& J& Y- ~
该会员没有填写今日想说内容.
回复 支持 反对

使用道具 举报

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

    我知道了