• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Solid Edge Developer Day: Managed Automation
 

Solid Edge Developer Day: Managed Automation

on

  • 714 views

In this session we will give a walkthrough of a program that will demonstrate usage of the following API’s: Solid Edge Embedded Client Related API’s, Check out and download Documents from Server, ...

In this session we will give a walkthrough of a program that will demonstrate usage of the following API’s: Solid Edge Embedded Client Related API’s, Check out and download Documents from Server, Revise to Team Center, Save as to Teamcenter, CheckIn documents to Team Center Server, Get Item revision, Get List of files from Tc Server

Statistics

Views

Total Views
714
Views on SlideShare
662
Embed Views
52

Actions

Likes
0
Downloads
14
Comments
0

1 Embed 52

http://community.plm.automation.siemens.com 52

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Solid Edge Developer Day: Managed Automation Solid Edge Developer Day: Managed Automation Presentation Transcript

    • Unrestricted © Siemens AG 2013 All rights reserved. 4th Generation VLC courtesy of Edison2 #SEU13 Managed Automation Greg Chasteen, Siemens PLM Software
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 2 Siemens PLM Software Working With PDM Managed Documents Each Solid Edge PDM client provides an API • Insight • Will provide documented examples • Solid Edge Embedded Client ( SEEC) • Will provide documented examples • Solid Edge for Sharepoint (SESP) • Will provide documented examples
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 3 Siemens PLM Software Insight API’s All 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 INSIGHT server specific commands such as download/upload/check-in/check-out etc. Insight API’s available on both Revision Manager and Solid Edge Framework object models
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 4 Siemens PLM Software Insight API’s Let’s take a look at the Insight API’s
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 5 Siemens PLM Software Insight API’s Document containing details on each API • USB drive provided Advanced TrackReference MaterialInsightExamples.doc DisplayAlert will suppress all authentication dialogs as well as the Edit Profile dialog.
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 6 Siemens PLM Software SESP and SEEC APIs • Very similar design. In fact, whenever possible and exact duplicate • Access to APIs via SolidEdgeFramework type library • SEEC – SolidEdgeTCE • SESP – SolidEdgeInsightXT • Let’s take a look at them via object browser
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 7 Siemens PLM Software SESP and SEEC APIs…. Some differences ValidateLogin Purpose: This API is used to authenticate the user before calling any others SEEC functions. Syntax: Call ObjSEEC.ValidateLogin( UserName, Password, Group, Role,URL) 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 Tier Note: The behavior of the authentication process depends on the display_alerts flag. If the value of the flag is OFF, then Validatelogin () method internally silently (i.e. without showing any Login dialog) does Auto login using supplied credentials.
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 8 Siemens PLM Software Example logging into SEEC
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 9 Siemens PLM Software SESP and SEEC APIs…. Some differences API Name: ValidateLogin Purpose: This API is used to login into SESP. Note: The API actually uses to log in to the SESP. The behavior of the authentication process depends on the display_alerts flag. If the display_alerts flag is ON then user will see the Auto-Login dialog (for the login purpose) where he can do AutoLogin or he can directly type in his UserName and password to authenticate him. If the user provides the wrong information then the value of the hr will return as S_FALSE. If the value of the flag is OFF, then Validatelogin () method will use the username/password that is supplied, to login into SESP. But this time, no login dialog will be shown and the login will be done silently.
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 10 Siemens PLM Software SESP and SEEC APIs Notice there was not an Open API… Slightly different approach than the Insight API’s with regards to C-OOpen, C-IClose • 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 strFileNameToCheckout is the file from the SEEC cache !
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 11 Siemens PLM Software Example for SESP Demo code working!
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 12 Siemens PLM Software SEEC API’s Create a new document and save to the database Always import it with the ImportDocumentsToServer API OR
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 13 Siemens PLM Software SESP API’s Create a new document and save to the database Import it with the ImportDocumentsToServer API Demo code working!
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 14 Siemens PLM Software More SEEC API’s Document containing details on each API • USB drive provided Advanced TrackReference Material FilesTeamCenter Automation APIs.doc
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 15 Siemens PLM Software More SESP API’s Document containing details on each API • USB drive provided Advanced TrackReference Material FilesSolid Edge for Sharepoint Automation APIs.doc
    • Unrestricted © Siemens AG 2013 All rights reserved. Page 16 Siemens PLM Software Let’s look at some more Sample Code! USB drive provided Advanced TrackProgramsSEEC Package Complete DesignSEEC Package Complete Design.sln Advanced TrackProgramsSEECUtilitiesSEECUtilities.sln