Solid Edge API: Working With Managed Files

18
#SEU12 Working with Managed Documents Greg Chasteen Siemens PLM

Transcript of Solid Edge API: Working With Managed Files

Page 1: Solid Edge API: Working With Managed Files

#SEU12

Working with Managed Documents

Greg ChasteenSiemens PLM

Page 2: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 2

Working With PDM Managed Documents

Each 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

Page 3: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 3

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 Revsion Manager and Solid Edge Framework object models

Page 4: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 4

Insight API’s

Page 5: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 5

Insight API’s

56 API’s

Page 6: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 6

Insight API’s

Document containing details on each API

..\Dev Day SE University 2012\Beginner Tract - Working with Managed Files\InsightExamples.doc

DisplayAlert will suppress all authentication dialogs as well as the Edit Profile dialog.

Page 7: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 7

How to Log Into SEEC/TC

ValidateLogin

Purpose: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 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.

Page 8: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 8

SEEC API’s

Slightly different approach that the Insight API’s with regards to CO\Open, CI\Close

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 !

Page 9: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 9

SEEC API’s

Add New file to the TC database

Page 10: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 10

SEEC API’s

SolidEdgeTCE object from SolidEdgeFramework typelib 44 APIs

Page 11: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 11

SEEC API’s

Page 12: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 12

SEEC API’s

Document containing details on each API

..\Dev Day SE University 2012\Beginner Tract - Working with Managed Files\TeamCenter Automation APIs.doc

Page 13: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 13

Let’s look at some Sample Code!

.. \Dev Day SE University 2012\Beginner Tract - Working with Managed Files\SEEC Package Complete Design\SEEC Package Complete Design.sln

.. \Dev Day SE University 2012\Beginner Tract - Working with Managed Files\SEECUtilities\SEECUtilities.sln

..\Dev Day SE University 2012\Beginner Tract - Working with Managed Files\SEEC Print Drafts\SEEC Print Drafts.sln

Page 14: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 14

IXT API’s

SolidEdgeInsightXT object from SolidEdgeFramework typelib 50 APIs

Page 15: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 15

IXT API’s

Page 16: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 16

Page 17: Solid Edge API: Working With Managed Files

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 17

IXT API’s

Document containing details on each API

..\Dev Day SE University 2012\Beginner Tract - Working with Managed Files\InsightXT Automation APIs.doc

Page 18: Solid Edge API: Working With Managed Files

#SEU12

Thank You!Questions?