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

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

[复制链接]

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

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

admin 楼主

2014-12-10 21:03:46

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

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

x
Teamcenter二次开发源码:通过teamcenter SOA 开发查找Item
; R$ L  t( J' g( H. @7 q
& I8 l! N7 H5 X8 ppublic static Item findExistingItem( DataManagementService dmService, String itemIDs){6 j* w; T4 a2 z$ @! H! [) J  V
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo[1];
& J4 z; ?0 c9 Rinfos[0] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();
4 Y; h: T/ k, L" d  n1 Yinfos[0].itemId = itemIDs;' f7 |0 P4 ?: i2 W1 r
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();. Y5 C0 n0 f3 C' h" B. S
pref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter[0];  \2 Z( a6 L, f
GetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);
$ i8 d" V* q% ?. r  Q% DItem result[] = new Item[ resp.output.length ];
9 x. H% k. ?5 `+ cfor ( int i = 0; i < resp.output.length; i++ )
8 ]8 y: c7 k' w: @* Qresult = resp.output.item;
& d, n3 J/ |3 ~5 u* U  J7 L+ u& z
if ( resp.output.length > 0 )
' Z; R7 U% b" e6 Q: {+ Zreturn result[0];
% Y4 W& O0 z7 b8 a' Qelse
) n1 {3 J" N% E" vreturn null;
* W! |2 I' J+ X" w$ l7 w- ]}9 ~9 e8 ]  L& `1 j* a" b1 {. J
# f4 B  C) M3 ]- R

' g. T* C2 \  x% ?& c1 [
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了