Solid Edge API: Working With Managed Files

1,831 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,831
On SlideShare
0
From Embeds
0
Number of Embeds
102
Actions
Shares
0
Downloads
69
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Solid Edge API: Working With Managed Files

  1. 1. Working with ManagedDocumentsGreg ChasteenSiemens PLM #SEU12
  2. 2. Working With PDM Managed DocumentsEach Solid Edge PDM client provides an API Insight  Will provide documented examples Solid Edge Embedded Client ( SEEC)  This presentation will focus mainly on SEEC APIs Insight XT (IXT)  Will provide documented examples © Siemens AG 2012. All Rights Reserved.Page 2 Siemens PLM Software
  3. 3. Insight API’sAll Solid Edge API commands are “INSIGHT” enabled File Open (both interactive command and API) accepts either url or folder based name, cache, etc. Revision Manager.Open will automatically check-out a file managed by Insight.There is an INSIGHT automation layer to directly access/execute INSIGHTserver specific commands such as download/upload/check-in/check-outetc.Insight API’s available on both Revsion Manager and Solid EdgeFramework object models © Siemens AG 2012. All Rights Reserved.Page 3 Siemens PLM Software
  4. 4. Insight API’s © Siemens AG 2012. All Rights Reserved.Page 4 Siemens PLM Software
  5. 5. Insight API’s56 API’s © Siemens AG 2012. All Rights Reserved.Page 5 Siemens PLM Software
  6. 6. Insight API’sDocument containing details on each API ..Dev Day SE University 2012Beginner Tract - Working with Managed FilesInsightExamples.docDisplayAlert will suppress all authentication dialogs as well as the EditProfile dialog. © Siemens AG 2012. All Rights Reserved.Page 6 Siemens PLM Software
  7. 7. How to Log Into SEEC/TCValidateLoginPurpose: This API is used to authenticate the user before calling any others SEEC functions.Syntax: Call ObjSEEC.ValidateLogin( UserName, Password, Group)Parameters: UserName (Input): Specifies the UserName of the user to authenticate Password (Input): Specifies the password of the user to authenticate Group (Input): Specifies the group to which the user belongs. The default group is “dba” Url (Input) : Specifies the TC database. Can be 2 Tier or 4 TierNote: The behavior of the authentication process depends on the display_alertsflag. If the value of the flag is OFF, then Validatelogin () method internally silently(i.e. without showing any Login dialog) does Auto login using suppliedcredentials. © Siemens AG 2012. All Rights Reserved. Page 7 Siemens PLM Software
  8. 8. SEEC API’sSlightly different approach that the Insight API’s with regards to COOpen,CIClose The Documents.Open API does not take input directly from the TC database  The document needed must already exist in the SEEC cache  At this point the Documents.Open from the SEEC cache strFileName is the file from the SEEC cache ! © Siemens AG 2012. All Rights Reserved.Page 8 Siemens PLM Software
  9. 9. SEEC API’sAdd New file to the TC database © Siemens AG 2012. All Rights Reserved.Page 9 Siemens PLM Software
  10. 10. SEEC API’sSolidEdgeTCE object from SolidEdgeFramework typelib 44 APIs © Siemens AG 2012. All Rights Reserved.Page 10 Siemens PLM Software
  11. 11. SEEC API’s © Siemens AG 2012. All Rights Reserved.Page 11 Siemens PLM Software
  12. 12. SEEC API’sDocument containing details on each API ..Dev Day SE University 2012Beginner Tract - Working with Managed FilesTeamCenter Automation APIs.doc © Siemens AG 2012. All Rights Reserved.Page 12 Siemens PLM Software
  13. 13. Let’s look at some Sample Code!.. Dev Day SE University 2012Beginner Tract - Working with ManagedFilesSEEC Package Complete DesignSEEC Package Complete Design.sln.. Dev Day SE University 2012Beginner Tract - Working with ManagedFilesSEECUtilitiesSEECUtilities.sln..Dev Day SE University 2012Beginner Tract - Working with ManagedFilesSEEC Print DraftsSEEC Print Drafts.sln © Siemens AG 2012. All Rights Reserved.Page 13 Siemens PLM Software
  14. 14. IXT API’sSolidEdgeInsightXT object from SolidEdgeFramework typelib 50 APIs © Siemens AG 2012. All Rights Reserved.Page 14 Siemens PLM Software
  15. 15. IXT API’s © Siemens AG 2012. All Rights Reserved.Page 15 Siemens PLM Software
  16. 16. © Siemens AG 2012. All Rights Reserved.Page 16 Siemens PLM Software
  17. 17. IXT API’sDocument containing details on each API ..Dev Day SE University 2012Beginner Tract - Working with Managed FilesInsightXT Automation APIs.doc © Siemens AG 2012. All Rights Reserved.Page 17 Siemens PLM Software
  18. 18. Thank You!Questions? #SEU12

×