Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
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
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