`
li.feixiang
  • 浏览: 117613 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

How to perform SaveAs on WTPart using API in Windchill PDMLink 10.0

 
阅读更多

标题 说明 适用于 原因 解决方案
How to perform SaveAs on WTPart using API in Windchill PDMLink 10.0
How to perform SaveAs on WTPart using API
Windchill PDMLink 10.0
 
  • Following API can be used:
wt.enterprise.EnterpriseService.newMultiObjectCopy(RevisionControlled[] originalObjects)
wt.enterprise.EnterpriseService.saveMultiObjectCopy(CopyObjectInfo[] copyInformation)
  • Refer Example below:
RevisionControlled [] originals = new RevisionControlled [1];
CopyObjectInfo [] copyInfoArray = null;

originals[0] = part;
copyInfoArray = EnterpriseHelper.service.newMultiObjectCopy(originals);
WTPart copy = (WTPart) copyInfoArray [0].getCopy();
copy.setName(part.getName() + "_copy");
copy.setNumber(part.getNumber() + "_copy");
copy.setContainer(part.getContainer());
try {
    copyInfoArray =
        EnterpriseHelper.service.saveMultiObjectCopy(copyInfoArray);
} catch (Exception e) {

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics