Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Add 'current drawing folder' to the Places list on the file open/save dialog

  1. #11
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719

    Default Re: Add 'current drawing folder' to the Places list on the file open/save dialog

    Quote Originally Posted by rkmcswain View Post
    So that looks like it changes the default directory for certain dialogs.
    Correct... I'm not exactly a fan of forcing these dialog to always go to the ActiveDocument's location either; I tend to use *Here Commands for such tasks (i.e., OpenHere, WorkingFolderHere [when there's not an existing ShortcutsHistory.xml for a new project, followed by a call to the undocumented RefreshShortcutNode Command], etc.)

    Quote Originally Posted by rkmcswain View Post
    I wonder if it's possible to programatically change the "Places List" at run time, so that the Open and SaveAs dialog defaults are not modified, but more to the OP's wish, there is a button link to the current directory...
    I'd think you'd need a reactor on the Open and SaveAs commands to make this registry change before the command is actually executed - because you might have drawings open from a variety of locations, and you could not set the "Current drawing" directory until the moment "Open" or "SaveAs" is executed...
    This is the basis for my earlier comments in this post... I'd have to test some code to know for sure.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  2. #12
    Member
    Join Date
    2013-04
    Posts
    25

    Default Re: Add 'current drawing folder' to the Places list on the file open/save dialog

    Quote Originally Posted by BlackBox View Post
    Code:
    (vl-load-com)
    
    (defun c:OpenHere (/ dwg)
      (if (and
            (setq dwg (getfiled "Select File" (getvar 'dwgprefix) "dwg" 8))
            (setq dwg (findfile dwg))
          )
        (vla-activate
          (vla-open (vla-get-documents (vlax-get-acad-object))
                    dwg
                    :vlax-false
          )
        )
      )
      (princ)
    )
    Is it possible to get the normal open dialog and to select multiple files to open.

    I've tried in vain to modify this.

    Thanks.

  3. #13
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667

    Default Re: Add 'current drawing folder' to the Places list on the file open/save dialog

    Quote Originally Posted by 3dwannab View Post
    Is it possible to get the normal open dialog and to select multiple files to open?
    Not with getfiled, but try: http://www.lee-mac.com/getfilesdialog.html

  4. #14
    Member
    Join Date
    2013-04
    Posts
    25

    Default Re: Add 'current drawing folder' to the Places list on the file open/save dialog

    Quote Originally Posted by Tom Beauford View Post
    Not with getfiled, but try: http://www.lee-mac.com/getfilesdialog.html
    That's a little too complicated for me to at this stage.

    I was thinking maybe the _.OPEN command would accept arguments.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 1
    Last Post: 2015-07-15, 06:38 PM
  2. Open / Save As... Dialogue Box, Places List?
    By saeborne in forum Revit Architecture - General
    Replies: 1
    Last Post: 2008-07-24, 03:35 PM
  3. Open/Save Dialog - custom places
    By rstrandmark in forum Revit Structure - Wish List
    Replies: 1
    Last Post: 2007-05-18, 03:18 AM
  4. Add folder in file open/save
    By Andrew Dobson in forum Revit Architecture - General
    Replies: 3
    Last Post: 2006-08-07, 01:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •