CATIA VBA:SendToFolder

2020-06-29  本文已影响0人  锦囊喵

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

上一篇下一篇

猜你喜欢

热点阅读