[API] How can I get the "Save As" dialog in a Macro ?

Discussion in 'SolidWorks' started by Nicolas Rubin, Jun 17, 2004.

  1. Hi All,

    How can I get this dialog to save my new document there is made with the
    macro ?

    I know it in VB6, but how can I do that in a macro ?

    Thanks in advance


    Nicolas
     
    Nicolas Rubin, Jun 17, 2004
    #1
  2. if you do it with the Windows API, do it the same way.
    Otherwise cut/paste the code from
    http://jrsofty.2webh.com/forums/index.php?showtopic=51
    then do something like

    Dim FileName As String
    FileName = SaveDialog(0, "Text File|*.txt|CSV File|*.csv|", "Save CSV
    file", "C:\Temp")
    ' notice the 0 as hWnd since there is no API to access the SolidWorks
    hWnd
    you're welcome my friend ;-)
     
    Philippe Guglielmetti, Jun 17, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.