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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

API for Check Out and download action in windchill PDMLink 11.1 M020

MS_10194939
11-Garnet

API for Check Out and download action in windchill PDMLink 11.1 M020

Hi,

I design desktop application using java. Need to download  files from server using onclick button function 

I need java API  for checkout and download  action in windchill.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @MS_10194939 

I am not sure if the API can help you because you need to start communication with Windchill over HTTP Server with credentials. 

 

I usually write own java function in the Windchill that is called by HTTP Request and a result is returned by HTTP Response. It can be file 😄  

// for checkout object you can use follwoing API
Folder folder = WorkInProgressHelper.service.getCheckoutFolder();
CheckoutLink checkLink = WorkInProgressHelper.service.checkout(workableObject, folder, "checkout By Code");
Workable objectCheckOutCopy = checkLink.getWorkingCopy();

 

Or another option exists, use the Windchill REST API.

 

PetrH

View solution in original post

4 REPLIES 4

Hi @MS_10194939 

I am not sure if the API can help you because you need to start communication with Windchill over HTTP Server with credentials. 

 

I usually write own java function in the Windchill that is called by HTTP Request and a result is returned by HTTP Response. It can be file 😄  

// for checkout object you can use follwoing API
Folder folder = WorkInProgressHelper.service.getCheckoutFolder();
CheckoutLink checkLink = WorkInProgressHelper.service.checkout(workableObject, folder, "checkout By Code");
Workable objectCheckOutCopy = checkLink.getWorkingCopy();

 

Or another option exists, use the Windchill REST API.

 

PetrH

Thank you for the help. Can you please tell me another option using windchill REST API. I am at the beginning level in windchill . 

Hello @MS_10194939 

You can start with help documentation.

windchill_rest_services/r2.5.

 

Also each Windchill installation has documentation for OData REST API

https://serverAddress.company.com/Windchill/app/#ptc1/apiDocs/apiDocs

 

I have experience just with OData REST APIs because I use it in the ThingWorx .

HelesicPetr_0-1675925364850.png

HelesicPetr_1-1675925505859.png

 

I hope this can help.

 

PetrH

Thank you 

Top Tags