Navigating to Resources and Parts in a Resource Structure
You can retrieve the information of resources (Process Materials, Skills, Toolings, or Work Centers) and parts in a resource structure for a given navigation criteria. You can also read the custom attributes for the resources and usage links associated with the specified resource.
Example: Navigating to Resources and Parts in a Resource Structure with Inline Navigation Criteria
This example shows you how to retrieve information for resources and parts associated with a Skill object by specifying the Skill OID in the request URI and the inline navigation criteria in the request body. Use the following POST URI with expand.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Resources('OR:com.ptc.windchill.mpml.resource.MPMSkill:198884')/PTC.MfgProcMgmt.GetPartStructure?$expand=Components($expand=Part;$levels=max)
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Resources('OR:com.ptc.windchill.mpml.resource.MPMSkill:198884')/PTC.MfgProcMgmt.GetPartStructure?$expand=Components($expand=Part;$levels=max)
URI
{
"NavigationCriteria": {
"ApplyToTopLevelObject": true,
"Name": "NC01",
"UseDefaultForUnresolved": true,
"ApplicationName": "Resource1",
"SharedToAll": true,
"HideUnresolvedDependents": true,
"Centricity": true,
"ApplicableType": "PTC.MfgProcMgmt.ProcessPlan",
"ConfigSpecs": [
{
"ConfigSpec": "string"
}
],
"Filters": [
{
"Filter": "string"
}
]
}
}
Example: Navigating to Resources and Parts and their Occurrences in a Resource Structure for a Specific Navigation Criteria
This example shows you how to retrieve information for resources and parts associated with a Skill object by specifying the Skill OID in the request URI and the navigation criteria ID in the request body. Use the following POST URI with expand.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Resources('OR:com.ptc.windchill.mpml.resource.MPMSkill:198884')/PTC.MfgProcMgmt.GetPartStructure?$expand=Components($expand=Part,Occurrence;$levels=max)
URI
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
URI
{
"NavigationCriteria": "OR:wt.filter.NavigationCriteria:212620"
}
Was this helpful?