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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Windchill REST API request to receive all parts associated with particular drawing

kfreydl
8-Gravel

Windchill REST API request to receive all parts associated with particular drawing

Hi there,

The Windchill REST API can be used to retrieve all drawings of a particular part.

Example

https://windchill.acme.com/Windchill/servlet/rest/structure/drawings/OR%3Awt.part.WTPart%3A102799?useParts=true

Result:

{
"items": [{
"id": "OR:wt.epm.EPMDocument:102871",
"typeId": "WCTYPE|wt.epm.EPMDocument"
}]
}

What is the other way around?
Which API request(s) must be used if you know a CAD document and want to receive all the parts associated with the drawing?

many Thanks!

2 REPLIES 2

@kfreydl below URL will give what you are looking for

GET <windchillserver>:<port>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments?$expand=PartAssociations($expand=RelatedParts)

Hi @amarsingh 

Thanks for the hint. This might be the solution. ".../CADDocumentMgmt/CADDocuments" is supported since REST API 1.4. We're using 1.3, so I'll check this after updating to the latest version.

 

Top Tags