Option Explicit
Sub Example()
Dim objApplication As SolidEdgeFramework.Application
Dim objTCE As SolidEdgeFramework.SolidEdgeTCE
Dim strFileName As String
Dim FileItemRevID As String
Dim FileItemItemID As String
Set objApplication = GetObject(, "SolidEdge.Application")
Set objTCE = objApplication.SolidEdgeTCE
strFileName = "F:\009431.par"
Call objTCE.GetDocumentUID(strFileName, FileItemItemID, FileItemRevID)
If Not objApplication Is Nothing Then
Call objApplication.Quit
End If
Set objTCE = Nothing
Set objApplication = Nothing
End Sub