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

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

[复制链接]

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

2470

主题

1275

回帖

8万

积分

管理员

PLM之家站长

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

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

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

x
Teamcenter二次开发源码:通过teamcenter SOA 开发查找Item5 u% R; I% t0 b5 g' N. B8 y8 l
0 }' u, v- z7 S; t7 G; T. a
public static Item findExistingItem( DataManagementService dmService, String itemIDs){
5 C2 H, n& V, |  Ecom.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo[1];
! K4 ]6 D! N  O3 Z( `- ]2 j. Einfos[0] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();) L) x3 F% [  B
infos[0].itemId = itemIDs;
, f6 n4 I( y+ n) g* t6 b$ icom.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();
* |: R0 L) X/ E: ^# F1 hpref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter[0];9 `+ t* Q5 b3 u" ~7 ]
GetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);3 y3 O2 h2 _5 [2 c( E
Item result[] = new Item[ resp.output.length ];
( V% Q2 X* ~& Z* c) W; H+ l6 wfor ( int i = 0; i < resp.output.length; i++ )8 J4 B& z0 ]# Q, x7 o
result = resp.output.item;; D. I& q' K) T: z1 m4 L

. W- g. Z* e" F0 s! e# Xif ( resp.output.length > 0 )" ?& ?: N, C' z8 V6 E: i
return result[0];/ x/ S2 \. r5 F) U" \1 n, X
else, u6 k/ t$ k+ U5 f6 {# o. q0 y1 B
return null;  y+ f& P' @2 |4 S; X
}
% R- p: k, i. q6 e+ d5 w3 d* r6 d' k. }+ w

$ r- s* i" }4 C' ]
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了