标签:管理器 oid pre div eve 代码 lin getchild for
直接上代码:
1 public void collectAllBomLine(TCComponentBOMLine topBomLine) throws TCException{ 2 String objectName = topBomLine.getProperty("bl_indented_title"); 3 String level = topBomLine.getProperty("bl_level_starting_0"); 4 5 BomLineBean bomLineBean = new BomLineBean(objectName, level); 6 BomLineList.add(bomLineBean); 7 8 if(topBomLine.hasChildren()){ 9 AIFComponentContext[] childrens = topBomLine.getChildren(); 10 for (AIFComponentContext aifComponentContext : childrens) { 11 TCComponentBOMLine bomLine = (TCComponentBOMLine) aifComponentContext.getComponent(); 12 collectAllBomLine(bomLine); 13 } 14 } 15 16 }
完毕
遍历获取Teamcenter中结构管理器的所有BOMLine
标签:管理器 oid pre div eve 代码 lin getchild for
原文地址:https://www.cnblogs.com/zhoulian/p/9429264.html