getfiled to specify directory only

Discussion in 'AutoCAD' started by Greg McLandsborough, Dec 17, 2003.

  1. is it possible to use "getfiled" to find a directory only ??

    Thanks inadvance

    Greg McLandsborough
     
    Greg McLandsborough, Dec 17, 2003
    #1
  2. don't know, but you can use the expresstools functions:

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


    "Greg McLandsborough"
     
    Luis Esquivel, Dec 17, 2003
    #2
  3. Greg McLandsborough

    Rudy Tovar Guest

    Yes.
    (setq xref_file (getfiled "Select Xref file.." (getvar"dwgprefix") "dwg" 4))
    --

    AUTODESK
    Authorized Developer
    www.Cadentity.com
    MASi
     
    Rudy Tovar, Dec 17, 2003
    #3
  4. Greg McLandsborough

    Rudy Tovar Guest

    Sorry my misunderstanding.

    Just like Luis mentioned.
     
    Rudy Tovar, Dec 17, 2003
    #4
  5. (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
    )
     
    Marc'Antonio Alessi, Dec 18, 2003
    #5
  6. Greg McLandsborough

    zeha Guest

    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
    )
     
    zeha, Dec 18, 2003
    #6
  7. 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
    ________________________________________________
     
    Marc'Antonio Alessi, Dec 19, 2003
    #7
  8. Greg McLandsborough

    petervose Guest

    My preferred method is to use dos_getdir from doslib2k
     
    petervose, Dec 19, 2003
    #8
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.