Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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
Solved! Go to Solution.
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);
I got Solution.
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
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);