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

How to get files from windchill in Thingworx?

shindemayur
13-Aquamarine

How to get files from windchill in Thingworx?

Hello,

I am uisng Thingworx 8.3 and Windchill 11.1.

In Windchill connector there is a service called "GetCreoDataView" .  This service returns thumbnail, structure, files.

Files in service consist of file name, linkHTML, URL, icon .

But, I am not able to download file. linkHTML is not working and also URL.

 

How to use them, or is their any other way to download representation files?

 

 

 

linkHTML I get is ,

 

 

 

 

http://gt026.galaxy.com:8080/Thingworx/MediaEntities/ptc-windchill-integration-connector-proxy/Conte...
servlet/WindchillAuthGW/wt.content.ContentHttp/viewContent/tank_drw.pdf?
u8&HttpOperationItem=wt.content.ApplicationData%3A586480&ofn=tank_drw.pdf&ContentHolder=wt.viewmarkup.DerivedImage%3A586468&forceDownload=true
&wt.effectiveUid=Administrator

1 ACCEPTED SOLUTION

Accepted Solutions
shindemayur
13-Aquamarine
(To:slangley)

Ok, to get Representation files from windchill,

there is a service in "ptc-windchill-integration-connector" called as "GetDesignFiles ".

 

 

just pass the parameter to it and you will get back JSON.

 

 

e.g. Create a custom service and paste the code below

 

var mycontent={
"objectIds": [oid],
"expand" : "Representation"
}

var params = {
request: mycontent /* JSON */,
CSRF_NONCE:me.getCSRF() /* STRING */
};

// result: JSON
var resultJSON = Things["ptc-windchill-integration-connector"].Content_GetDesignFiles(params);

View solution in original post

3 REPLIES 3

I got Solution.

slangley
23-Emerald II
(To:shindemayur)

Hi @shindemayur.

 

For the benefit of others on the community, we would much appreciate you posting the details of your solution and marking it as the Accepted Solution.

 

Your participation on the community is greatly appreciated!

 

Regards.

 

--Sharon

shindemayur
13-Aquamarine
(To:slangley)

Ok, to get Representation files from windchill,

there is a service in "ptc-windchill-integration-connector" called as "GetDesignFiles ".

 

 

just pass the parameter to it and you will get back JSON.

 

 

e.g. Create a custom service and paste the code below

 

var mycontent={
"objectIds": [oid],
"expand" : "Representation"
}

var params = {
request: mycontent /* JSON */,
CSRF_NONCE:me.getCSRF() /* STRING */
};

// result: JSON
var resultJSON = Things["ptc-windchill-integration-connector"].Content_GetDesignFiles(params);

Announcements