Skip to main content
7-Bedrock
Oct 24, 2022 10:46 PM UTC
Question

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

14-Alexandrite
Oct 25, 2022 6:30 AM UTC

@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

Translate
joe_morton
19-Tanzanite
Dec 2, 2022 2:51 PM UTC

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. 

Translate