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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Attached a local file to EPMDocument in Winchill by RESTApis

DB_11361720
4-Participant

Attached a local file to EPMDocument in Winchill by RESTApis

I want to attached a local file to EPMDocument in Winchill by RESTApis. But i can not see any document about this. When working around i see 2 possible ways
 

Way 1: 

+> Find some way to upload the file to server's content cache. Then get the encodedCCD property

+> Using encodedCCD to add to the request create EPMDocument. API: **POST Windchill/servlet/rest/v1/wgm/workspaces/{workspaceId}/store **

 

Way 2: 

+> Associate EPMDocument to a WTDocument

+> Attach the file to WTDocument

 

I not have any experience in Winchill, so can anybody have faced with similar problems, please help me Thank you

2 REPLIES 2
avillanueva
22-Sapphire II
(To:DB_11361720)

EPMDocuments are a bit more complicated than other content holders. They typically have structure and relationships to other objects that comes from inspecting the content they are holding. Its best to use supported means via a Creo application or a WGM that can read the content and extract those relationships. Can you state your ultimate goal or requirement you are working toward?

Thank you for your answer.
Current in my old system, we have a word flow:
Open the workspace -> Create New Part -> Enable Create CAD Document checkbox ->Choose template of DWG file -> OUTPUT: A EPMDocument in a Workspace with a DWG file with template content in is attached to it and WTPart -> We will update the content of DWG file from template content to the correct content needed

Now in new system, we have a word flow:

We now have a DWG file with the correct content in a third party app -> From third party app we will use RESTApis to call to Winchill for create EPMDocument in a Workspace and WTPart -> Now we need some way to attached the DWG file to EPMDocument and WTPart created.
So we looking for Apis to do this

If you have any idea please help me. Thank you so much

Announcements

Top Tags