Skip to main content
1-Visitor
January 16, 2019
Solved

How to get files from windchill in Thingworx?

  • January 16, 2019
  • 1 reply
  • 5264 views

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/Content/
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

Best answer by shindemayur

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);

1 reply

1-Visitor
January 18, 2019

I got Solution.

Support
January 18, 2019

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

shindemayur1-VisitorAuthorAnswer
1-Visitor
January 19, 2019

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);