Creating MPMOperationToPartLinks Using Inline Navigation Criteria
You can create single or multiple MPMOperationToPartLinks using inline navigation criteria by specifying the process plan inline navigation criteria and related assembly inline navigation criteria along with the consumable path OIDs, process plan OID, and related assembly OID in the request body.
* 
You can also create MPMOperationToPartLinks using the CreateMPMOperationtoPartLinksWithInLineNavCriteria endpoint by specifying the process plan navigation criteria ID and related assembly navigation criteria ID in the request body. However, if you specify both the inline and specific navigation criteria, the request ignores the navigation criteria ID.
To create single or multiple MPMOperationToPartLinks using inline navigation criteria, you must first check out the operation.
* 
You cannot create MPMOperationToPartLinks using inline navigation criteria for an operation under a standard procedure.
Example: Creating Multiple MPMOperationToPartLinks Using Inline Navigation Criteria for WTPartUsageLink Objects
This example shows you how to create multiple MPMOperationToPartLinks using inline navigation criteria by specifying relatedAssemblyNavigationCriteria, processPlanNavigationCriteria, process plan OID, related assembly OID, and two WTPartUsageLink OIDs in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:274554')/PTC.MfgProcMgmt.CreateMPMOperationtoPartLinksWithInLineNavCriteria
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"consumablePaths": [
{
"Path": [
"OR:wt.part.WTPartUsageLink:269232"
]
},
{
"Path": [
"OR:wt.part.WTPartUsageLink:269233"
]
}
],
"processPlanId": "OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:269100",
"relatedAssemblyId": "OR:wt.part.WTPart:269196",
"relatedAssemblyNavigationCriteria": {
"ApplyToTopLevelObject": false,
"Name": "Part01",
"UseDefaultForUnresolved": false,
"ApplicationName": "Test1",
"SharedToAll": true,
"HideUnresolvedDependents": true,
"Centricity": true,
"ApplicableType": "PTC.MfgProcMgmt.ProcessPlan",
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartEffectivityDateConfigSpec",
"EffectiveDate": "2021-12-09T23:00:00Z",
"EffectiveContext": null,
"View": "Design",
"Variation1": null,
"Variation2": null
}
],
"Filters": [
{
"Filter": "string"
}
]
},
"processPlanNavigationCriteria": {
"ApplyToTopLevelObject": true,
"Name": "Part02",
"UseDefaultForUnresolved": true,
"ApplicationName": "Test2",
"SharedToAll": true,
"HideUnresolvedDependents": true,
"Centricity": true,
"ApplicableType": "PTC.MfgProcMgmt.ProcessPlan",
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartEffectivityDateConfigSpec",
"EffectiveDate": "2021-12-09T23:00:00Z",
"EffectiveContext": null,
"View": "Design",
"Variation1": null,
"Variation2": null
}
],
"Filters": [
{
"Filter": "string"
}
]
}
}
Example: Creating Multiple MPMOperationToPartLinks Using Inline Navigation Criteria for PartUsesOccurrence Objects
This example shows you how to create multiple MPMOperationToPartLinks using inline navigation criteria by specifying relatedAssemblyNavigationCriteria, processPlanNavigationCriteria, process plan OID, related assembly OID, and two PartUsesOccurrence OIDs in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:269377')/PTC.MfgProcMgmt.CreateMPMOperationtoPartLinksWithInLineNavCriteria
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"consumablePaths": [
{
"Path": [
"OR:wt.part.PartUsesOccurrence:269266",
"OR:wt.part.PartUsesOccurrence:269262"
]
},
{
"Path": [
"OR:wt.part.PartUsesOccurrence:269267",
"OR:wt.part.PartUsesOccurrence:269263"
]
}
],
"processPlanId": "OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:269321",
"relatedAssemblyId": "OR:wt.part.WTPart:269196",
"relatedAssemblyNavigationCriteria": {
"ApplyToTopLevelObject": false,
"Name": "Part01",
"UseDefaultForUnresolved": false,
"ApplicationName": "Test1",
"SharedToAll": true,
"HideUnresolvedDependents": true,
"Centricity": true,
"ApplicableType": "PTC.MfgProcMgmt.ProcessPlan",
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartEffectivityDateConfigSpec",
"EffectiveDate": "2021-12-09T23:00:00Z",
"EffectiveContext": null,
"View": "Design",
"Variation1": null,
"Variation2": null
}
],
"Filters": [
{
"Filter": "string"
}
]
},
"processPlanNavigationCriteria": {
"ApplyToTopLevelObject": true,
"Name": "Part02",
"UseDefaultForUnresolved": true,
"ApplicationName": "Test2",
"SharedToAll": true,
"HideUnresolvedDependents": true,
"Centricity": true,
"ApplicableType": "PTC.MfgProcMgmt.ProcessPlan",
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartEffectivityDateConfigSpec",
"EffectiveDate": "2021-12-09T23:00:00Z",
"EffectiveContext": null,
"View": "Design",
"Variation1": null,
"Variation2": null
}
],
"Filters": [
{
"Filter": "string"
}
]
}
}
Example: Creating Multiple MPMOperationToPartLinks Using Inline Navigation Criteria for a Standard Operation
This example shows you how to create multiple MPMOperationToPartLinks using inline navigation criteria for a standard operation under a process plan by specifying relatedAssemblyNavigationCriteria, processPlanNavigationCriteria, process plan OID, related assembly OID, multiple WTPartUsageLink objects, and an MPMOperationUsageLink object in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMStandardOperation:282633')/PTC.MfgProcMgmt.CreateMPMOperationtoPartLinksWithInLineNavCriteria
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"consumablePaths": [
{
"Path": [
"OR:wt.part.WTPartUsageLink:274299",
"OR:wt.part.WTPartUsageLink:274322"
]
},
{
"Path": [
"OR:wt.part.WTPartUsageLink:274275"
]
}
],
"operationPath": {
"Path": [
"OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationUsageLink:282559"
]
},
"processPlanId": "OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:274356",
"relatedAssemblyId": "OR:wt.part.WTPart:274272",
"relatedAssemblyNavigationCriteria": {
"ApplyToTopLevelObject": false,
"Name": "Part01",
"UseDefaultForUnresolved": false,
"ApplicationName": "Test1",
"SharedToAll": true,
"HideUnresolvedDependents": true,
"Centricity": true,
"ApplicableType": "PTC.MfgProcMgmt.ProcessPlan",
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartEffectivityDateConfigSpec",
"EffectiveDate": "2021-12-09T23:00:00Z",
"EffectiveContext": null,
"View": "Design",
"Variation1": null,
"Variation2": null
}
],
"Filters": [
{
"Filter": "string"
}
]
},
"processPlanNavigationCriteria": {
"ApplyToTopLevelObject": true,
"Name": "Part02",
"UseDefaultForUnresolved": true,
"ApplicationName": "Test2",
"SharedToAll": true,
"HideUnresolvedDependents": true,
"Centricity": true,
"ApplicableType": "PTC.MfgProcMgmt.ProcessPlan",
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartEffectivityDateConfigSpec",
"EffectiveDate": "2021-12-09T23:00:00Z",
"EffectiveContext": null,
"View": "Design",
"Variation1": null,
"Variation2": null
}
],
"Filters": [
{
"Filter": "string"
}
]
}
}
Was this helpful?