美文网首页
CATIA VBA:SendToFolder

CATIA VBA:SendToFolder

作者: 锦囊喵 | 来源:发表于2020-06-29 20:48 被阅读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
    
    

    相关文章

      网友评论

          本文标题:CATIA VBA:SendToFolder

          本文链接:https://www.haomeiwen.com/subject/haiafktx.html