Vlisp Projects

Discussion in 'AutoCAD' started by dean_bourke, Apr 7, 2005.

  1. dean_bourke

    dean_bourke Guest

    Is there a vlisp/lisp function that returns a list of source (lsp) files from a project file?

    Dean
     
    dean_bourke, Apr 7, 2005
    #1
  2. Dean,
    from a project file?


    This is something I also want it to have, but as far I know there is no
    built-in function for this.

    Type in the APROPOS the keyword: VLISP-

    You will get the available functions [not all acctually work]

    But for example to get the path of a PRJ file you can use:

    (vlisp-find-project "my_project")

    To get a list of loaded projects:

    (vlisp-list-loaded-projects)

    The other functions have not play that much...

    I assuming one would have to read the PRV file, get the PRJ projects and
    read each of them just after the line of :OWN-LIST to get the list of lisp
    files.... I don't know on this one.

    HTH
     
    Luis Esquivel, Apr 7, 2005
    #2
  3. dean_bourke

    Shane-W Guest

    (vl-directory-files [directory pattern directories])

    EX
    (vl-directory-files "c:/data/source/" "*.lsp" 1)
    would return al .lsp files in that directory
     
    Shane-W, Apr 7, 2005
    #3
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.