Skip to main content
12-Amethyst
March 13, 2020
Solved

Windchill REST API

  • March 13, 2020
  • 1 reply
  • 3788 views

Dear all,

I need to know about is there REST API available for below mentioned scenario : 

 

1. Can we retrieve as stored configuration of EPM Document?

2. Can we download content of EPM Document iteration which is non latest?

 

Can anyone please help me out to find REST API?

 

Thanks.

Best answer by DmitryC

Hi,

 

It depends on what you are trying to achieve. Keep in mind that you can not download the actual CAD document through the REST API:

DmitryC_0-1584318552737.png

 

You CAN navigate the CAD assembly structure and apply different ConfigSpec (including 'As-Stored') filters. I haven't tried it, but, in theory, it should return the actually used iteration at the time of check-in.

 

It seems that you can not get a non-latest iteration in the initial queries (when you look up a document by number, for example: /Windchill/servlet/odata/CADDocumentMgmt/CADDocuments?$filter=Number%20eq%20%27TestNumber.prt%27), but there might be workarounds. You may try accessing them (non-latest iterations) by OR directly, or look for them using the SavedSearch odata domain.

 

 

Kind regards,

Dmitry.

 

1 reply

DmitryC14-AlexandriteAnswer
14-Alexandrite
March 16, 2020

Hi,

 

It depends on what you are trying to achieve. Keep in mind that you can not download the actual CAD document through the REST API:

DmitryC_0-1584318552737.png

 

You CAN navigate the CAD assembly structure and apply different ConfigSpec (including 'As-Stored') filters. I haven't tried it, but, in theory, it should return the actually used iteration at the time of check-in.

 

It seems that you can not get a non-latest iteration in the initial queries (when you look up a document by number, for example: /Windchill/servlet/odata/CADDocumentMgmt/CADDocuments?$filter=Number%20eq%20%27TestNumber.prt%27), but there might be workarounds. You may try accessing them (non-latest iterations) by OR directly, or look for them using the SavedSearch odata domain.

 

 

Kind regards,

Dmitry.

 

mohitenw12-AmethystAuthor
12-Amethyst
March 16, 2020

Thanks.