How can I get type hierarchy using Windchill REST API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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: { }
