Solid Edge Framework Type Library > SolidEdgeTCE Object : ValidateLogin Method |
Specifies the Role of the User in teamcenter.
Specifies the server name to which the user wants to connect.
Visual Basic |
---|
Public Sub ValidateLogin( _ ByVal bstrUserName As String, _ ByVal bstrPassword As String, _ ByVal bstrGroup As String, _ ByVal bstrUserRole As String, _ ByVal bstrDBUrl As String _ ) |
Specifies the Role of the User in teamcenter.
Specifies the server name to which the user wants to connect.
Option Explicit Sub Example() Dim objApplication As SolidEdgeFramework.Application Dim objTCE As SolidEdgeFramework.SolidEdgeTCE Dim UserName As String Dim Password As String Dim Group As String Dim Role As String Dim URL As String Set objApplication = GetObject(, "SolidEdge.Application") Set objTCE = objApplication.SolidEdgeTCE UserName = "username" Password = "password" Group = "Engineering" Role = "Designer" URL = "http://Servername:8085/tc" Call objTCE.ValidateLogin(UserName, Password, Group, Role, URL) If Not objApplication Is Nothing Then Call objApplication.Quit End If Set objTCE = Nothing Set objApplication = Nothing End Sub