StructureManagementService smService = com.teamcenter.services.strong.cad.StructureManagementService .getService(AppXSession.getConnection()); CreateBOMWindowsInfo[] createBOMWindowsInfo = new CreateBOMWindowsInfo[1]; createBOMWindowsInfo[0] = new CreateBOMWindowsInfo(); createBOMWindowsInfo[0].itemRev = (ItemRevision) mats[i]; CreateBOMWindowsResponse createBOMWindowsResponse = smService .createBOMWindows(createBOMWindowsInfo); BOMLine topLine = createBOMWindowsResponse.output[0].bomLine; ———————————————— 版权声明:本文为CSDN博主「叮当LIU」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/qq_36880602/article/details/102681662