Skip to main content
7-Bedrock
October 24, 2022
Question

Upload primary content to EPMDocument by API Rest

  • October 24, 2022
  • 2 replies
  • 1421 views

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

14-Alexandrite
October 25, 2022

@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

joe_morton
18-Opal
December 2, 2022

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.