Skip to main content
1-Visitor
January 30, 2018
Question

How can I get type hierarchy using Windchill REST API?

  • January 30, 2018
  • 2 replies
  • 2529 views

HI,

 

I want to get type hierarchy both ANCESTORS and DESCENDANTS using Windchill REST API .

I using Windchill Info*Engine's method 'Query-TypeHierarchy' for our function, and I will replace this function to using Windchill REST API.

So, I hope Windchill REST API  has same function as this method.

 

Best Regards,

Haruka.

2 replies

15-Moonstone
January 31, 2018

The list of operation is listed under https://YOURWINDCHILLURI/Windchill/netmarkets/jsp/restapi/index.html and depend of Windchill version but in 11 M10, i have this kind of function:

Capture.PNG

 

 

 

hsano-21-VisitorAuthor
1-Visitor
January 31, 2018

Thanks for your reply.

 

I using Windchill 11.0 M030 , and I already tried "GET /structure/objects/{objectId}/ancestors" .

But I got specific object's ancestors. I want to get Windchill existing type hierarchies as definition information.

 

Please tell me if anyone knows.

 

 

12-Amethyst
June 7, 2019

Try this

POST <windchillserver>:<port>/Windchill/servlet/odata/ProdMgmt/Parts('part_oid')/PTC.ProdMgmt.GetBOM?$expand=Components($expand=Part($select=Name,Number),PartUse,Occurrences)
CSRF_NONCE: <nonce_value>
Content-Type: application/json

Request Body:
{

}