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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

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

aitc-plmsupport
8-Gravel

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?

 

 

 

1 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.

Top Tags