Solid Edge API: Working With Managed Files

Post on 25-Jun-2015

1.413 views 12 download

Tags:

Transcript of Solid Edge API: Working With Managed Files

#SEU12

Working with Managed Documents

Greg ChasteenSiemens PLM

© 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

© 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

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 4

Insight API’s

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 5

Insight API’s

56 API’s

© 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.

© 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.

© 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 !

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 9

SEEC API’s

Add New file to the TC database

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 10

SEEC API’s

SolidEdgeTCE object from SolidEdgeFramework typelib 44 APIs

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 11

SEEC API’s

© 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

© 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

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 14

IXT API’s

SolidEdgeInsightXT object from SolidEdgeFramework typelib 50 APIs

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 15

IXT API’s

© Siemens AG 2012. All Rights Reserved.

Siemens PLM Software Page 16

© 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

#SEU12

Thank You!Questions?