アーティクル - CS384380

Windchill Service Information Manager を使用してパブリケーション構造の「Assigned Usage Expressions」および「Assigned Item Expressions」属性値を取得するために使用できる API はありますか?

修正日: 13-Jan-2023   


注記:ここに記載されている情報は、お客様の利便性向上のため機械翻訳ソフトを使用しています。PTCは、ここに記載されている情報の翻訳の正確性について、一切の責任を負いませんので、ご了承ください。英語の原文を参照するには、こちら。この機械翻訳に関する詳細は、こちら。
お知らせいただき、ありがとうございます。この機械翻訳をレビューします。

適用対象

  • Windchill Service Information Manager 11.2 to 12.1
  • Customer developing custom code to export publication structure in excel file 
  • Requirement is to get "Assigned Usage Expressions" and "Assigned Item Expressions" and show in excel file
  • Assigned Usage Attribute is available on WTPartaUsageLink:
  •  Trying to get Assigned Usage Attribute from WTPartUsageLink but no luck
  • Code:
WTPartUsageLink ul = (WTPartUsageLink) qr.nextElement();
                     WTPartMaster pm = (WTPartMaster) ul.getUses();
                     System.out.println("usage link expression data:: "+ul.getExpressionData());
                    
                     PersistableAdapter paObject = new PersistableAdapter(ul, null, null, null);
                     paObject.load("partUsageAssignedExpression");
                     Object usageAssignedExpression = paObject.get("partUsageAssignedExpression");
                     if(usageAssignedExpression!=null) {
                           System.out.println("@@@@@@@@usage assigned expression@@@@@@@@@::"+usageAssignedExpression.toString());
                      }
  • Used ul.getExpressionData() and PersistableAdapter API also but getting value as null

説明

  • パブリケーション構造の「Assigned Usage Expressions」および「Assigned Item Expressions」属性値を取得するために使用できる API はありますか?
最新バージョンはこちらを参照ください CS384380