getfiled to specify directory only

don't know, but you can use the expresstools functions:

(acet-ui-pickdir "Select target folder..." "c:\\")

"Greg McLandsborough"
 
Yes.
(setq xref_file (getfiled "Select Xref file.." (getvar"dwgprefix") "dwg" 4))
 
(defun ALE_GetFolder ( / DirPat)
(and
(setq DirPat
(getfiled
"Browse for folder"
"Open a folder and click on SAVE" " " 1
)
)
(setq DirPat (substr DirPat 1 (- (strlen DirPat) 31)))
)
DirPat
)
 
Modified a little

(defun ALE_GetFolder (/ DirPat)
(and
(setq DirPat
(getfiled
"Browse for folder"
"Open a folder and click on SAVE"
" "
1
)
)
(setq DirPat (vl-filename-directory DirPat))
)
DirPat
)
 

Latest threads

Back
Top