Private Sub Command1_Click()
On Error Resume Next
Dim objApplication As SolidEdgeFramework.Application
Dim objSolidEdgeTCE As SolidEdgeFramework.SolidEdgeTCE
Set objApplication = GetObject(, "SolidEdge.Application")
Set objSolidEdgeTCE = objApplication.SolidEdgeTCE
Dim FileItemID As String
Dim FileItemRevID As String
Dim FileDataSetName As String
Dim FileRevisionRule As String
Dim FolderName As String
FileItemID = "020670"
FileItemRevID = "A"
FileDataSetName = "020670.par"
FileRevisionRule = ""
FolderName = ""
Call objSolidEdgeTCE.ReviseToTeamCenter(FileItemID, FileItemRevID, FileDataSetName, FileRevisionRule, FolderName)
Set objSolidEdgeTCE = Nothing
Set objApplication = Nothing
End Sub