Solid Edge
Example API code for Save As of existing Part in Teamcenter under a new Item Id.
2021-10-06T23:52:50Z
PART/SHEETMETAL
Summary
Details
Example API code showing how to take an existing Item in SEEC/TC and save as to a new Item.
Solution
Following is the workflow and sample code necessary to perform a Save As of an existing Part in Teamcenter under a new Item Id.
1. Validate user credentials using ValidateLogin API
Sample code for ValidateLogin API is available at
https://docs.plm.automation.siemens.com/docs/se/2019/api/SolidEdgeFramework~SolidEdgeTCE~ValidateLogin.html
2. Make sure that the document is downloaded on user's machine. It is not possible to copy the document directly from the server, the document has to be available on disk.
Sample code to download the document on user machine is available at
https://docs.plm.automation.siemens.com/docs/se/2019/api/SolidEdgeFramework~SolidEdgeTCE~DownladDocumentsFromServerWithOptions.html
3. Use SetPDMProperties API to set the properties
Sample code to for "SetPDMProperties" API is available at
https://docs.plm.automation.siemens.com/docs/se/2019/api/SolidEdgeFramework~SolidEdgeTCE~SetPDMProperties.html
Hardware/Software Configuration
Platform: INTL64
OS: window
OS Version: 10_1803
Product: SOLID_EDGE
Application: AUTOMATION
Version: V110.0
Function: API_DOCUMENT
Ref: 002-8002411
KB Article ID# PL8002411
Contents
Summary
Details
Associated Components
PART/SHEETMETAL: FEATURES