Hide Table of Contents
LoginAuto Method (IEdmVault5)

Logs in to the specified vault.

Syntax

Visual Basic (Declaration) 
Sub LoginAuto( _
   ByVal bsVaultName As System.String, _
   ByVal hParentWnd As System.Integer _
) 
C# 
void LoginAuto( 
   System.string bsVaultName,
   System.int hParentWnd
)
C++/CLI 
void LoginAuto( 
&   System.String^ bsVaultName,
&   System.int hParentWnd
) 

Parameters

bsVaultName
Vault name
hParentWnd
Parent window handle; used when the login dialog box displays to ensure it remains visible

Example

See the IEdmVault5 examples.

Remarks

This method differs from IEdmVault5::Login in that this method does not require the username and password. This method logs into the vault as the same user that is already logged into either the vault view through Windows Explorer or the vault through the SolidWorks Enterprise PDM client software. This method allows you to share the license of the already logged-in user. If no user is already logged into the specified file vault, a login dialog box displays. Also unlike IEdmVault5::Login, this method properly consumes a license without first calling IEdmVault13::LoginEx to comply with the SolidWorks End User License Agreement (EULA)

You can retrieve the ID of the SolidWorks Enterprise PDM client user by calling IEdmVault11::GetLoggedInWindowsUserID. You can also log in silently as the SolidWorks Enterprise PDM client by calling IEdmVault11::LogInWindowsUser.

Return codes: 

  • S_OK: The method successfully executed.
  • E_EDM_ALREADY_LOGGED_IN: You are already logged in to this vault.
  • E_EDM_CANT_OPEN_DATABASE: The database could not be opened (Maybe the vault name was incorrect?).
  • E_EDM_CANCELLED_BY_USER: The log-in dialog box displays, but the user clicked Cancel instead of logging in.
 

See Also

Availability

SolidWorks Enterprise PDM Version 5.2


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   LoginAuto Method (IEdmVault5)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2014 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.