// 解包
public static void unPackBOMLine(TCComponentBOMLine parent) {
try {
parent.clearCache();
parent.refresh();
AIFComponentContext[] children = parent.getChildren();
for (int i = 0; i < children.length; i++) {
TCComponentBOMLine child = (TCComponentBOMLine)
children[i].getComponent();
if (child.isPacked()) {
child.unpack();
}
}
} catch (TCException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
// 解包
UnpackCommand command = new UnpackCommand(bomLine);
command.executeModal();
// 打包
UnpackAllAction allAction = new UnpackAllAction(application, "packAllAction");
ispack
TC 打包解包
最新推荐文章于 2023-05-19 10:10:06 发布