Solid Edge Framework Type Library
DoesInsightXTFileExists Method
Specifies the item-id of the item.
Specifies the item-rev of the item.

A Boolean value. It has following possible values.

Description
Checkes whether the FileExists on the server
Syntax
Visual Basic
Public Sub DoesInsightXTFileExists( _
   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

A Boolean value. It has following possible values.

  • True – If the given UID is present on the InsightXT server.
  • False - If the given UID is not present on the InsightXT server.
Example
Private Sub Command1_Click()
    On Error Resume Next
    Dim objApplication As SolidEdgeFramework.Application
    Dim objSolidEdgeInsightXT  As SolidEdgeFramework.SolidEdgeInsightXT
    
    Set objApplication = GetObject(, "SolidEdge.Application")
    Set objSolidEdgeInsightXT = objApplication.SolidEdgeInsightXT

    Dim FileItemRevID As String
    Dim FileItemItemID As String
    Dim bIsFileExists As Boolean

    FileItemItemID = "009431"
    FileItemRevID = "A"

    Call objSolidEdgeInsightXT.DoesInsightXTFileExists(FileItemItemID, FileItemRevID, bIsFileExists)
    MsgBox (bIsFileExists)

    Set objSolidEdgeInsightXT = Nothing
    Set objApplication = Nothing
End Sub
See Also

SolidEdgeInsightXT Object  | SolidEdgeInsightXT Members  | Solid Edge ST4 - What's New