Skip to main content
9-Granite
January 9, 2023
Solved

How to get sorted BOM as displayed in Widchill

  • January 9, 2023
  • 1 reply
  • 1440 views

Hi,

 

Is there any way/service to get the BOM in order as it displayed in Windchill?

 

every time I query REST Api to get part structure details by id it gives me JSON which always comes in shuffled order, so is there any filter or query that i need to apply to get it in the exact level/order that getting displayed in Windchill?

 

 

Thanks

 

Best answer by ThorstenMueller

There's multiple services in Windchill to get the BOM.

One Example is the "PTC.ProdMgmt.GetPartStructure" Service.
For this service you can specify a NavigationCriteria (e.g. a Filter) so that the order of the JSON Result is the same as in Windchill.
You just have to provide the same NavigationCriteria as in Windchill (e.g. the same Filter criteria as used in the Windchill UI).

1 reply

13-Aquamarine
January 9, 2023

There's multiple services in Windchill to get the BOM.

One Example is the "PTC.ProdMgmt.GetPartStructure" Service.
For this service you can specify a NavigationCriteria (e.g. a Filter) so that the order of the JSON Result is the same as in Windchill.
You just have to provide the same NavigationCriteria as in Windchill (e.g. the same Filter criteria as used in the Windchill UI).