Teamcenter RAC开发获取所有的时间表模版

private TCComponent[] searchScheduleTemplate() {
// TODO Auto-generated method stub

TCComponentContextList tccomponentcontextlist = null;

// TODO Auto-generated method stub

TCComponentQueryType tccomponentquerytype;

try {
tccomponentquerytype = (TCComponentQueryType) session.getTypeComponent("ImanQuery");

 

TCTextService tctextservice = session.getTextService();

TCComponentQuery tccomponentquery = (TCComponentQuery) tccomponentquerytype.find("Schedules...");

if (tccomponentquery == null) {
tccomponentquery = (TCComponentQuery) tccomponentquerytype.find("时间表...");

}

String as[] = tctextservice.getTextValues(new String[] { "is_template", "is_baseline" });

String as1[] = { "True", "False" };

tccomponentcontextlist = tccomponentquery.getExecuteResultsList(as, as1);

} catch (TCException e) {
// TODO Auto-generated catch block

e.printStackTrace();

}

 

return tccomponentcontextlist.toTCComponentArray();

 

}
 
————————————————
版权声明:本文为CSDN博主「沃隆先生」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u014457991/article/details/104740281

  

posted @ 2021-04-26 17:29  信铁寒胜  阅读(11)  评论(0编辑  收藏  举报