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 strFileName As String
Dim FileItemRevID As String
Dim FileItemItemID As String
strFileName = "F:\009431.par"
Call objSolidEdgeInsightXT.GetDocumentUID(strFileName, FileItemItemID, FileItemRevID)
MsgBox (FileItemItemID)
MsgBox (FileItemRevID)
Set objSolidEdgeInsightXT = Nothing
Set objApplication = Nothing
End Sub