Open File Dialog

Open File Dialog

Wheelie22
Collaborator Collaborator
3,367 Views
6 Replies
Message 1 of 7

Open File Dialog

Wheelie22
Collaborator
Collaborator

Not every Acad Open File Dialog has an add to favorites option so you have to browse a lot.

Often you see the last directory you used (previous project), i would like a current directory and a favorites part in every OFD.

OPEN FILE PART.png

Please,Smiley Embarassed

0 Likes
Accepted solutions (1)
3,368 Views
6 Replies
Replies (6)
Message 2 of 7

GrantsPirate
Mentor
Mentor

Navigate to the folder you would like to show and drag and drop it into that area.

 

Set rememberfolders to 1.  When you go to open another drawing it will open the last used folder.


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

0 Likes
Message 3 of 7

Wheelie22
Collaborator
Collaborator

I am happy with what you wrote...  Smiley Tongue

That rememberfolders was on (both in 2012 and 2015).

 

But i can not remember which file dialog has no favorites. O... the Copy To in the project tree has no favorites (No drag en drop - it has Recent Places). I am sure there are more.

  

And with current directory, i mean, the directory the active drawing is in. I hope this will be in ACAD 3015, or an earlier version.

 

0 Likes
Message 4 of 7

Kent1Cooper
Consultant
Consultant

@Wheelie22 wrote:

....  

And with current directory, i mean, the directory the active drawing is in. ....


As for that choice, this won't get it into your Open File dialog boxes, but I've used this DCF command [= open a Drawing in the Current Folder] for many years, to have the file navigator open up in that folder instead of the last one used in an Open command:

 

;;;  DwgCurrentFolder.lsp
;;;  to open a Drawing in the Current drawing's Folder
(defun C:DCF ()
  (vla-activate
    (vla-open
      (vla-get-documents
        (vlax-get-acad-object)
      )
      (getfiled "Select drawing:" (getvar 'dwgprefix) "dwg" 0)
    )
  )
)
(prompt "\nType DCF to open a Drawing in the Current Folder.")

Have that loaded by something like acaddoc.lsp, and you can type DCF or put it into a menu item somewhere that you can pick on.

Kent Cooper, AIA
0 Likes
Message 5 of 7

Wheelie22
Collaborator
Collaborator

Nice, put it in there.

 

I made this one to open a W-Explorer in the directory of active project :

 

(defun C:OPEN-EXPLORE ()
  (setq	AA	 (ace_getactiveproject)
	AB	 (C:WD_SPLIT_FNAM AA)
	AC	 (cadr AB)
	AD	 (substr AC 1 9)
	PRO-PATH (car AB)

  )
  (if (findfile
	"C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe"
      )
    (startapp
      "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe"
      PRO-PATH
    )
    (progn
      (alert "No Iexplore.exe found !")
      (exit)
    )
  )

)

Without VLA. Smiley Embarassed

 

0 Likes
Message 6 of 7

Wheelie22
Collaborator
Collaborator

In acad electrical 2015 there is no favorites part in this dialog :

- project-wide utilities

 

OPEN SCRIPT.PNG

 

The favorites here are the Internet favorites, not my acad favorites like in the 1st pic.

0 Likes
Message 7 of 7

GrantsPirate
Mentor
Mentor
Accepted solution

It works different but you can add Favorites and then pick the one button to go to favorites.


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

0 Likes