アーティクル - CS384380
Windchill Service Information Manager を使用してパブリケーション構造の「Assigned Usage Expressions」および「Assigned Item Expressions」属性値を取得するために使用できる API はありますか?
修正日: 13-Jan-2023
適用対象
- 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