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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Upload primary content to EPMDocument by API Rest

NC_10068031
7-Bedrock

Upload primary content to EPMDocument by API Rest

Hi

I trying to add the primary content to a emp document that i created using the api rest service

NC_10068031_0-1666651458400.png

 

There is a method in the API rest service to do this?

 

Thanks in advance

 

 

2 REPLIES 2

@NC_10068031.. There is not rest endpoint to add primary content to CAD.
Using API.. Try checkout CAD to workspace, add content, checkin. Refer following article.
https://www.ptc.com/en/support/article/cs348427
Note: Please note that use of such constructors are a bit risky. Please do not create EPMDocuments in this manner unless you know exactly what data is  required by the application, as incorrect usage can result in data corruptions

Are you going to relate the file to a WTPart, or manage it in the future using Windchill Workgroup Manager? If no to both, you could consider storing DWG files in a regular Document. You could still get a number and revision control - but no BOM structure. I'm not familiar with the rest API, so I don't know if that's any easier. 

Announcements


Top Tags