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

teamcenter二次开发源码:通过teamcenter SOA 开发查找Item

[复制链接]

2014-12-10 21:03:46 6290 0

admin 发表于 2014-12-10 21:03:46 |阅读模式

admin 楼主

2014-12-10 21:03:46

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x
Teamcenter二次开发源码:通过teamcenter SOA 开发查找Item% O7 w! A/ b+ a
( A% E2 z5 x# y1 x  l/ Z
public static Item findExistingItem( DataManagementService dmService, String itemIDs){
" e/ R3 \4 B# h7 P8 k6 |com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo[1];
: b4 E  F8 S) Z, kinfos[0] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();
' G# b7 D3 _% l/ a; X  Uinfos[0].itemId = itemIDs;- J9 V: m, A) }' c5 r* e
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();
0 F, R7 ?1 U. g# ?- T1 N8 I3 Ypref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter[0];
/ s, l7 f1 P/ z; d1 p& E+ GGetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);- a: m8 o/ O2 r1 e2 ~1 s
Item result[] = new Item[ resp.output.length ];
4 e% C8 J0 [; u: f( P5 Ofor ( int i = 0; i < resp.output.length; i++ )4 Z2 D0 p0 y9 H% {
result = resp.output.item;" @  ?0 e. d* k( T: U

5 s9 {; }/ R5 E# u( bif ( resp.output.length > 0 )9 {5 D# y+ w+ w# x1 N9 T% I7 e
return result[0];
' t) ]* M, r: d/ G, [$ h2 o  A- @9 Relse
* I2 B( K* l, K! |7 nreturn null;" K. P8 D3 i- @+ r9 Y
}
; q, k; a% `( `+ A/ k8 j" j( A5 o6 y- O3 }
9 U0 t. l2 ~: y! @$ H7 [2 D8 f
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了