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

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

[复制链接]

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

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

admin 楼主

2014-12-10 21:03:46

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

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

x
Teamcenter二次开发源码:通过teamcenter SOA 开发查找Item# y. g' t* k0 }
% M) B) n4 b, W4 L! S+ S5 g6 S
public static Item findExistingItem( DataManagementService dmService, String itemIDs){2 ]" ~3 D$ Z) h; K8 \4 {7 f% \
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo[1];5 P6 O7 N" _3 \( C
infos[0] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();5 o: V; T) Y2 S4 M: U  C' D
infos[0].itemId = itemIDs;+ F- N6 r- T' |8 n0 v' N  w
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();
0 t/ N5 i6 u2 H' R. dpref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter[0];0 h5 f' |: ~9 e( w/ e, }
GetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);
* P! n9 j( b' HItem result[] = new Item[ resp.output.length ];
5 Z; M1 L' C% W" M% `2 G. {for ( int i = 0; i < resp.output.length; i++ )
7 D8 z9 s# `$ b8 Sresult = resp.output.item;
9 ?+ P" l- _8 J  B
9 F2 Q& m* n! r, Tif ( resp.output.length > 0 )/ ~$ t, S3 R8 v; \
return result[0];/ A5 L, y; }/ M- k+ p) _* D
else! ?- h4 ?: h& L! `
return null;
/ r' t' |  C: X7 v& s}
! E' {0 b4 [. X; @: B, x
7 H% c2 @) ~7 t/ J& c3 K

/ k! A4 D- q4 o6 R
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了