Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

getfiled to specify directory only

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
327 Views, 7 Replies

getfiled to specify directory only

is it possible to use "getfiled" to find a directory only ?? Thanks inadvance Greg McLandsborough
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

don't know, but you can use the expresstools functions: (acet-ui-pickdir "Select target folder..." "c:\\") "Greg McLandsborough" > is it possible to use "getfiled" to find a directory only ?? > > Thanks inadvance > > Greg McLandsborough > >
Message 3 of 8
Anonymous
in reply to: Anonymous

Yes. (setq xref_file (getfiled "Select Xref file.." (getvar"dwgprefix") "dwg" 4)) -- Rudy@Cadentity.com AUTODESK Authorized Developer www.Cadentity.com MASi "Greg McLandsborough" wrote in message news:3fe0dddb_6@statler... > is it possible to use "getfiled" to find a directory only ?? > > Thanks inadvance > > Greg McLandsborough > >
Message 4 of 8
Anonymous
in reply to: Anonymous

Sorry my misunderstanding. Just like Luis mentioned. "Rudy Tovar" wrote in message news:3fe0e867$1_7@statler... > Yes. > (setq xref_file (getfiled "Select Xref file.." (getvar"dwgprefix") "dwg" 4)) > -- > Rudy@Cadentity.com > AUTODESK > Authorized Developer > www.Cadentity.com > MASi > > > "Greg McLandsborough" wrote in message > news:3fe0dddb_6@statler... > > is it possible to use "getfiled" to find a directory only ?? > > > > Thanks inadvance > > > > Greg McLandsborough > > > > > >
Message 5 of 8
Anonymous
in reply to: Anonymous

(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 ) "Greg McLandsborough" ha scritto nel messaggio news:3fe0dddb_6@statler... > is it possible to use "getfiled" to find a directory only ?? > > Thanks inadvance > > Greg McLandsborough > >
Message 6 of 8
H.vanZeeland
in reply to: Anonymous

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
)
Message 7 of 8
Anonymous
in reply to: Anonymous

Thanks. Pay attention on trailing "\\"! -- ________________________________________________ Marc'Antonio Alessi (TV) Italy (strcat "NOT a " (substr (ver) 8 4) " guru.") O.S. = XP Pro 2002 - Sp.1 - Ita AutoCAD = 2004 Ita - Sp.1 ________________________________________________
Message 8 of 8
petervose
in reply to: Anonymous

My preferred method is to use dos_getdir from doslib2k

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost