cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

What is the OTB service name to get all the part structure by oid?

aitc-plmsupport
9-Granite

What is the OTB service name to get all the part structure by oid?

Hey guys,

 

 

 

Is there any OTB service available to get all the part structure (till nth child) by providing oid/number?

 

 

 

ACCEPTED SOLUTION

Accepted Solutions

There's multiple services to get a part structure in Windchill.
You can add a new route in the ptc-windchill-OData-connector to service
"/Parts('{PartId}')/PTC.ProdMgmt.GetPartStructure"
This service you can use to get the part structure for the element that you specified via OID.
To "drill" down in the resulting part structure you have to specify some ODATA expand command.
This example is showing the part and uses information down to the 3rd level of the BOM
"Part,Uses,Components($expand=Part,Uses,Components;$levels=3)"
You can also specify a Navigation Criteria to specify which BOM Filter you want to use.

View solution in original post

1 REPLY 1

There's multiple services to get a part structure in Windchill.
You can add a new route in the ptc-windchill-OData-connector to service
"/Parts('{PartId}')/PTC.ProdMgmt.GetPartStructure"
This service you can use to get the part structure for the element that you specified via OID.
To "drill" down in the resulting part structure you have to specify some ODATA expand command.
This example is showing the part and uses information down to the 3rd level of the BOM
"Part,Uses,Components($expand=Part,Uses,Components;$levels=3)"
You can also specify a Navigation Criteria to specify which BOM Filter you want to use.

Announcements


Top Tags