Batch lsp to fas conversion

Discussion in 'AutoCAD' started by swu, Mar 30, 2005.

  1. swu

    swu Guest

    Does anyone have a working lsp to fas conversion lisp?

    I've tried some samples I found in past posting but couldn't find anything that seemed to work.

    I'm looking to convert a folder of lsp files to a folder of fas files and maintain the file names.

    Thanks in advance.
     
    swu, Mar 30, 2005
    #1
  2. swu

    Shane-W Guest

    this is what I use. for compiling to work you must have VL ide open.

    You will need to change the paths of course

    ---------------------------
    (foreach Lisp (vl-directory-files "c:/data/source/" "*.LSP" 1)
    (setq NewFile (strcat "c:/data/source/fas/" (vl-string-right-trim "LSP" (strcase lisp)) "FAS")
    OldFile (strcat "c:/data/source/" Lisp)
    )
    (princ (strcat "\n" OldFile))
    (princ (strcat "\n" NewFile))
    (vlisp-compile 'st oldfile NewFile)
    )
    -----------------------------------------------
     
    Shane-W, Mar 30, 2005
    #2
  3. swu

    ECCAD Guest

    Shane,
    Sweet !
    I'll be needing that in a couple of weeks.

    Bob
     
    ECCAD, Mar 30, 2005
    #3
  4. swu

    Shane-W Guest

    you can remove the princ(s), the princ(s) was for testing.

    Glad to help
     
    Shane-W, Mar 30, 2005
    #4
  5. swu

    swu Guest

    Perfect . . .

    Thanks again!
     
    swu, Mar 30, 2005
    #5
  6. swu

    Vxc Guest

    Hy all !

    Can someone tell me the diference between converting "lsp to fas" & "lsp
    to vlx" ??
    I usualy encript to Vlx.

    Vxc
     
    Vxc, Mar 31, 2005
    #6
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.