Skip to main content
Jan 30, 2018 7:47 AM UTC
Question

How can I get type hierarchy using Windchill REST API?

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.

3 replies

3-Newcomer
Jan 31, 2018 7:10 AM UTC

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-2Author
Jan 31, 2018 7:27 AM UTC

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.

 

 

Jun 7, 2019 9:22 AM UTC

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:
{

}