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 FileItemID As String
Dim FileItemRevID As String
Dim FileDataSetName As String
Dim FileRevisionRule As String
Dim FolderName As String
Dim pListOldAndNewItemIDRevsFileNamesAs As Variant
FileItemID = "020670"
FileItemRevID = "A"
FileDataSetName = "020670.par"
FileRevisionRule = ""
FolderName = ""
Call objSolidEdgeInsightXT.SaveAsToInsightXT(FileItemID, _
FileItemRevID, _
FileDataSetName, _
FileRevisionRule, _
FolderName, _
pListOldAndNewItemIDRevsFileNamesAs)
Set objSolidEdgeInsightXT = Nothing
Set objApplication = Nothing
End Sub