Skip to main content
12-Amethyst
Mar 13, 2020 4:14 AM UTC
Solved

Windchill REST API

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.

DmitryCAnswer
14-Alexandrite
Mar 16, 2020 12:37 AM UTC

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.

 

2 replies

DmitryC14-AlexandriteAnswer
14-Alexandrite
Mar 16, 2020 12:37 AM UTC

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.

 

Translate
mohitenw12-AmethystAuthor
12-Amethyst
Mar 16, 2020 5:57 AM UTC

Thanks.

Translate