Sub CATMain()
Dim File
File=CATIA.FileSelectionBox("Filename", "*.catproduct", CATFileSelectionModeSave)
CATIA.ActiveDocument.SaveAs File
CATIA.DisplayFileAlerts = True
Path = CATIA.ActiveDocument.Path
Name = CATIA.ActiveDocument.Name
initial = Path & "\" & Name
Set Folder = CATIA.FileSystem.CreateFolder("oTemp")
oFolder = Path & "\oTemp"
Set Send = CATIA.CreateSendTo()
Send.SetInitialFile (initial)
Send.SetDirectoryFile (oFolder)
Send.Run
End Sub
网友评论