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

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

[复制链接]

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

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

admin 楼主

2014-12-10 21:03:46

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

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

x
Teamcenter二次开发源码:通过teamcenter SOA 开发查找Item- G. ^$ A; U4 ^/ j4 g& d. l- |

! t; A* q- T" Vpublic static Item findExistingItem( DataManagementService dmService, String itemIDs){
' n0 a8 w9 y$ S1 Q4 Q9 scom.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo[1];7 U. A2 z* e  J) I1 v% C
infos[0] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();
1 i# [* I' w0 winfos[0].itemId = itemIDs;- [" c, z3 T$ d  L9 ^; Z  K- Y
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();- j+ n/ @% v4 M2 @- M! n
pref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter[0];5 h5 i/ h% S6 j  t( i
GetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);6 Y8 y4 R5 p  f# d/ W! b
Item result[] = new Item[ resp.output.length ];
( ?, I4 ]' f. r: V9 B- m2 x5 Xfor ( int i = 0; i < resp.output.length; i++ )
2 E% _7 V% c/ j" Iresult = resp.output.item;7 N, n* Q  o* w! @" s* k" m5 C

8 `: T" T! B! B3 S) l( _, T4 pif ( resp.output.length > 0 )
. R+ t( d1 v) T8 X2 l+ K% Oreturn result[0];3 z5 @, K$ a7 Q' e
else
) E0 y6 r. o- \) w+ Ireturn null;) g( |: Y/ W  Y; R' z- e
}% d) n; f* f( ^9 B+ O
0 s- X  H+ j& X3 c. X6 I
! h5 b+ u" V* F& L* X, @
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了