Hide Table of Contents
Login Method (IEdmVault5)

Logs in to the specified vault using the specified user name and password.

Syntax

Visual Basic (Declaration) 
Sub Login( _
   ByVal bsUserName As System.String, _
   ByVal bsPasswd As System.String, _
   ByVal bsVaultName As System.String _
) 
C# 
void Login( 
   System.string bsUserName,
   System.string bsPasswd,
   System.string bsVaultName
)
C++/CLI 
void Login( 
&   System.String^ bsUserName,
&   System.String^ bsPasswd,
&   System.String^ bsVaultName
) 

Parameters

bsUserName
User name of user created in the SOLIDWORKS PDM Professional User Manager
bsPasswd
Password for bsUserName
bsVaultName
Vault name

Remarks

If your application is custom (i.e., it is not supplied or supported by SOLIDWORKS PDM Professional) and your application:

  • logs into SOLIDWORKS PDM Professional
    - or -
  • logs into a vault view
    - or -
  • directly accesses a vault database

when the same user is not already logged into a local view, you must first call IEdmVault13::LoginEx or IEdmVault5::LoginAuto to comply with the SOLIDWORKS End User License Agreement (EULA). Call IEdmVault13::LoginEx or IEdmVault5::LoginAuto before calling this method to ensure that licenses are properly consumed by your application.

Call IEdmVault5::LoginAuto to log in as a user already logged into a vault view through Windows Explorer or into a vault through the SOLIDWORKS PDM Professional client software. You do not need to specify a username and password when you call IEdmVault5::LoginAuto to share a license with the already logged-in user.

Return codes: 

  • S_OK: The method successfully executed.
  • E_EDM_ALREADY_LOGGED_IN: You are already logged into this vault.
  • E_EDM_LOGIN_FAILED: You entered an invalid user name or password.
  • E_EDM_CANT_OPEN_DATABASE: The database could not be opened.
 

See Also

Availability

SOLIDWORKS PDM Professional 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:   Login 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) 2018 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.