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

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

[复制链接]

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

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

admin 楼主

2014-12-10 21:03:46

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

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

x
Teamcenter二次开发源码:通过teamcenter SOA 开发查找Item
( K2 g+ x8 |' n2 I4 |6 C) ~! G
& g. V; G0 M5 M. F5 i& K- vpublic static Item findExistingItem( DataManagementService dmService, String itemIDs){
8 f. D; t: n" S0 R6 bcom.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo[1];0 @1 l  ]3 h3 m! c5 T
infos[0] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();7 c" T' }. R1 ?. i+ L7 t) b- {
infos[0].itemId = itemIDs;
% W6 Z6 p4 t- m/ k. R3 M5 H1 ~$ kcom.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();
. x# `+ |& I' q: e8 i( v" G: _pref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter[0];
2 g! h: T1 M9 T4 T5 Y9 IGetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);4 F* j4 u" R) v5 c: O8 l6 k' w
Item result[] = new Item[ resp.output.length ];4 G6 Q5 y2 w; ^& k" Z  P7 R8 f
for ( int i = 0; i < resp.output.length; i++ )& p! m7 @- P5 Z3 _6 c; Z
result = resp.output.item;6 R: l5 A+ e+ Z: Z, Y
+ j. P0 r; w5 `( D& v
if ( resp.output.length > 0 )/ z. z+ x- F4 e$ S/ S- n
return result[0];
* V0 k! ]4 R. C. kelse
& U! J. e9 ~  d# y) D0 dreturn null;
. V+ _+ F! V  E}+ j1 e, v+ ]6 @% ]; L8 i
6 g4 j4 S4 `+ V( d

3 u( \3 n' G+ v# s* u
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了