teamcenter二次开发源码:通过teamcenter SOA 开发查找Item
teamcenter二次开发源码:通过teamcenter SOA 开发查找Itempublic static Item findExistingItem( DataManagementService dmService, String itemIDs){
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo infos[] = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo;
infos = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdInfo();
infos.itemId = itemIDs;
com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref pref = new com.teamcenter.services.strong.core._2007_01.DataManagement.GetItemFromIdPref();
pref.prefs = new com.teamcenter.services.strong.core._2007_01.DataManagement.RelationFilter;
GetItemFromIdResponse resp = dmService.getItemFromId(infos, 0, pref);
Item result[] = new Item[ resp.output.length ];
for ( int i = 0; i < resp.output.length; i++ )
result = resp.output.item;
if ( resp.output.length > 0 )
return result;
else
return null;
}
页:
[1]