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

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

[复制链接]

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

2470

主题

1275

回帖

8万

积分

管理员

PLM之家站长

积分
82162
QQ
发表于 2014-12-10 21:03:46 | 显示全部楼层 |阅读模式

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

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

x
Teamcenter二次开发源码:通过teamcenter SOA 开发查找Item; C2 k# R) l% p' E7 c+ H6 ]

, w2 \  H8 }1 P' `/ spublic static Item findExistingItem( DataManagementService dmService, String itemIDs){
& e! p# Z# v+ vcom.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo[1];
9 ~2 z/ p/ h8 M- h# R  M5 T% f( g6 \infos[0] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();
- E' z7 G# t+ i% Y! ~$ }5 Tinfos[0].itemId = itemIDs;3 _9 L+ }! L' M* e% S( ^
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();
4 e9 T1 ?: [7 y' j' C. S5 Zpref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter[0];& i' [1 Z, d+ V  O: o- q; @' `4 }
GetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);) F  t# C4 q' t- G/ u( Y$ Z8 u
Item result[] = new Item[ resp.output.length ];
' A% U$ b; A  @* L+ C, E2 _for ( int i = 0; i < resp.output.length; i++ )
+ ~8 _- V9 T, v6 a' y3 g" s0 xresult = resp.output.item;
* R1 [/ ?7 a1 t; [  u: Q" J. C! H6 C& E  `9 k# ]  t
if ( resp.output.length > 0 )
0 i' F. @3 e  F  T4 K1 k: Breturn result[0];
: t& S* f, ^) A7 C# q+ v3 t3 Jelse% u' r$ Z7 c) ]7 V& E, R$ M& P
return null;* Y. D  w- H) q, i
}
% j( R# p- n* x: Q; }$ y; V+ `# D8 J+ ]9 s

$ X. i2 ?7 U- v$ `
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了