Skip to main content
16-Pearl
June 2, 2023
Solved

windchill API which gives all cad documents url in output

  • June 2, 2023
  • 1 reply
  • 1542 views

I need a windchill API which gives all cad documents url in output. For every partnumber, i need url for the files .prt, .asm, .drw. 

Best answer by AP_10343008

I got both epm id from this getPartsInPartsByID API from ProdMgmt/Parts which i can use in GetRepresentations API from CadDocumentMgmt/CadDocuments to get url. 

1 reply

avillanueva
23-Emerald I
23-Emerald I
June 2, 2023

Are you looking for the details page or the content link? I have written JSP page that returns the content WTDocs via parameters, very similar. APIs should be similar. A word of caution on directly accessing the content in this manner. Workspaces are able to handle things like rename events dynamically. For example, you know in Creo that the assembly and drawing call for their dependents by their filename. I am able to change the filename in PDMLink at any time. The binary content of the assembly and drawing are not touched where they sit in the vaults. They are dynamically altered when they enter a workspace. This means if you directly access those files in this manner, that rename adjustment will not occur and they will be looking for the old filename.  

16-Pearl
June 2, 2023

Iam using GetRepresentations API from CadDocumentMgmt/CadDocuments. In Output JSON, iam am getting url for first CAD Document. But I need a API which returns url of all the CAD Documents.

AP_10343008_0-1685706168623.png

 

AP_1034300816-PearlAuthorAnswer
16-Pearl
June 2, 2023

I got both epm id from this getPartsInPartsByID API from ProdMgmt/Parts which i can use in GetRepresentations API from CadDocumentMgmt/CadDocuments to get url.