10 Replies Latest reply on Jun 14, 2017 5:14 AM by Prabaharan Pichaiyan

    API open dialog box last path.

    Prabaharan Pichaiyan

      I used following commands to execute open dialog box,


      Set swApp = CreateObject("SldWorks.Application")

         swApp.Visible = True

         strFilter = "SolidWorks Files (*.sldprt; *.sldasm; *.slddrw)|*.sldprt;|All Files (*.*)|*.*|"

          strFileName = swApp.GetOpenFilename("Open file", "", strFilter, strFileOptions, strFileConfig, strFileDispName)

          Debug.Print strFileName


      Every time when i trigger the macro, open dialog box default location is "DESKTOP"

      Is there any way to change that to last opened location?




      Thank you