Solid Edge Framework Type Library
DoesTeamCenterFileExists Method
Specifies the item-id of the item.
Specifies the item-rev of the item.
True – If the given item is present on the teamcenter server. If the given item is not present on the teamcenter server.
Description
Checkes whether the FileExists on the server
Syntax
Visual Basic
Public Sub DoesTeamCenterFileExists( _
   ByVal bstrItemId As String, _
   ByVal bstrItemRev As String, _
   ByRef bFileExists As Boolean _
) 
Parameters
bstrItemId
Specifies the item-id of the item.
bstrItemRev
Specifies the item-rev of the item.
bFileExists
True – If the given item is present on the teamcenter server. If the given item is not present on the teamcenter server.
Example
Option Explicit

Sub Example()
    Dim objApplication As SolidEdgeFramework.Application
    Dim objTCE As SolidEdgeFramework.SolidEdgeTCE
    Dim FileItemRevID As String
    Dim FileItemItemID As String
    Dim bIsFileExists As Boolean

    Set objApplication = GetObject(, "SolidEdge.Application")
    Set objTCE = objApplication.SolidEdgeTCE

    FileItemItemID = "009431"
    FileItemRevID = "A"
    Call objTCE.DoesTeamCenterFileExists(FileItemItemID, FileItemRevID, bIsFileExists)

    If Not objApplication Is Nothing Then
        Call objApplication.Quit
    End If
    
    Set objTCE = Nothing
    Set objApplication = Nothing
End Sub
See Also

SolidEdgeTCE Object  | SolidEdgeTCE Members  | Solid Edge V19 - What's New