序列生失效導覽條件範例
序列生失效導覽條件等同於 Windchill MPMLink 中的結構篩選器;後者在「編輯篩選器」視窗中的「組態規格」標籤中,為「選擇類型」欄位選取了「單位生失效」,為「生失效類型」選取了「序號」
針對 ConvertFromProcessPlanID 服務上的每個輸入參數,提供可用作序列生失效導覽條件的 JSON 有效負載範例:
下表顯示Windchill MPMLink「編輯篩選器」視窗的「組態規格」標籤中的設定與序號有效性導覽條件的 JSON 有效負載中的物件與屬性之間的關係。
Windchill MPMLink 設定
JSON 物件屬性
「結構」標籤上的「篩選」動作集中的已存篩選器。
"ApplicableType": "PTC.MfgProcMgmt.ProcessPlan",
「結構」標籤上的「相關組件篩選器」動作集中的已存篩選器。
"ApplicableType": "PTC.ProdMgmt.Part",
「套用到頂層物件」核取方塊。
"ApplyToTopLevelObject": false,
「選擇類型」=單位生失效
"@odata.type": "#PTC.NavCriteria.WTPartEffectivityUnitConfigSpec",
「生失效單位」欄位。
"EffectiveUnit": "...",
「有效性類型」=序號
"EffectivityType": {
"Value": "SERIAL_NUMBER",
"Display": "Serial"
},
「生失效前後關聯」欄位。若需進一步資訊,可參閱 擷取 EffectiveContext 值
"EffectiveContext": "...",
「檢視」欄位。
"View": "...",
「BOM 類型」欄位。
"Variation1": "...",
「全域替代 BOM」欄位。
"Variation2": "...",
「針對未解決的相依物件套用最新組態規格」核取方塊。
"UseDefaultForUnresolved": false
processPlanNavigationCriteria 輸入參數的序號有效性範例
下列代碼顯示 processPlanNavigationCriteria 輸入參數的 JSON 有效負載範例,提供序列生失效篩選器的導覽條件:
{
"ApplicableType": "PTC.MfgProcMgmt.ProcessPlan",
"ApplyToTopLevelObject": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartEffectivityUnitConfigSpec",
"EffectiveUnit": "5",
"EffectivityType": {
"Value": "SERIAL_NUMBER",
"Display": "Serial"
},
"EffectiveContext": "wt.part.WTPartMaster:155184",
"View": "Design",
"Variation1": null,
"Variation2": null
}
],
"Filters": [],
"UseDefaultForUnresolved": false
}
relatedAssemblyNavigationCriteria 輸入參數的序號有效性範例
下列代碼顯示 relatedAssemblyNavigationCriteria 輸入參數的 JSON 有效負載範例,提供序列生失效篩選器的導覽條件:
{
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplyToTopLevelObject": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartEffectivityUnitConfigSpec",
"EffectiveUnit": "1",
"EffectivityType": {
"Value": "SERIAL_NUMBER",
"Display": "Serial"
},
"EffectiveContext": "wt.part.WTPartMaster:245852",
"View": "Design",
"Variation1": {
"Value": "production",
"Display": "Production"
},
"Variation2": {
"Value": "002",
"Display": "002"
}
}
],
"Filters": [],
"UseDefaultForUnresolved": false
}
這是否有幫助?