NX插件
送教程
DoTeam
培训报名
AI · CAD · PLM
首页
Portal
社区
论坛
NX技术
TC技术
Catia技术
自研系统
更多
登录
NX Toolkits 「PLM之家插件」
Castsim「铸造PLM系统」
EchoCAD「大模型CAD」
视频在线
实践教程
前沿咨询
高清购买
国产软件
PLM之家PLMHome-工业软件践行者,大模型驱动工业生态建设
»
社区
›
Siemens PLM Teamcenter学习论坛
›
Teamcenter二次开发
›
teamcenter二次开发源码:通过teamcenter SOA 开发查找I ...
返回列表
发新帖
查看:
6676
|
回复:
0
teamcenter二次开发源码:通过teamcenter SOA 开发查找Item
[复制链接]
admin
admin
当前离线
积分
82265
2477
主题
1280
回帖
8万
积分
管理员
PLM之家站长
积分
82265
发消息
发表于 2014-12-10 21:03:46
|
显示全部楼层
|
阅读模式
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要
登录
才可以下载或查看,没有账号?
注册
×
Teamcenter
二次开发源码:通过teamcenter SOA 开发查找Item
, B0 G9 }: S1 ?1 g" x" z
& n4 _% J- `. }, K. P) y2 j
public static Item findExistingItem( DataManagementService dmService, String itemIDs){
* x$ ~5 \2 \( R7 r+ A U7 ?
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo[1];
3 h H' f$ M- l, r8 O% x
infos[0] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();
. f+ Y/ N2 d. U2 L) u8 G
infos[0].itemId = itemIDs;
# l4 _6 y0 U7 g5 }; G' y; s" r. n
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();
' U* I2 t* o9 ^' O$ j& \ ~9 P( ~, s
pref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter[0];
u% B F; t) B/ l. |( U
GetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);
1 @! I* k/ W1 [8 e6 ^8 M( `( X
Item result[] = new Item[ resp.output.length ];
5 W# ]$ {+ g5 C& c, R
for ( int i = 0; i < resp.output.length; i++ )
# Q8 |2 e5 L c# C
result = resp.output.item;
! o) Z' \4 Q3 J! y4 c) m0 U
9 |: P# g, R2 X
if ( resp.output.length > 0 )
8 y8 f9 t2 v6 `. {5 v
return result[0];
: m1 i% V3 X( V" x @; y2 b
else
0 U1 ?; p7 d! ]* N
return null;
5 K( L, x) P6 h4 [4 ~
}
_' R0 C6 q2 y- m
% S! E& [* c# T! M) o* N
6 S: J; V) m8 c( K& v; R' Y
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复
使用道具
举报
返回列表
发新帖
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖并转播
回帖后跳转到最后一页
在本版发帖
关注公众号
QQ客服
返回顶部
快速回复
返回顶部
返回列表