Author Topic: Possible to compile .prv and .lsp to .vlx from the windows command line?  (Read 4930 times)

0 Members and 1 Guest are viewing this topic.

SIDESHOWBOB

  • Guest
Is it possible to compile autolisp applications from the windows command line?  Seeing as I believe in automated builds that would be rather useful.

Lee Mac

  • Seagull
  • Posts: 12925
  • London, England
Re: Possible to compile .prv and .lsp to .vlx from the windows command line?
« Reply #1 on: February 24, 2012, 12:09:03 PM »
There are a set of LISP functions, prefixed "vlisp-*" that enable you to compile to a VLX programmatically through LISP (albeit not via the Windows command-line as you initially requested), though none of these functions has been documentated, making them very difficult to use:

Code - Auto/Visual Lisp: [Select]

Peter2

  • Swamp Rat
  • Posts: 654
Re: Possible to compile .prv and .lsp to .vlx from the windows command line?
« Reply #2 on: December 13, 2016, 04:34:51 AM »
There are a set of LISP functions, prefixed "vlisp-*" that enable you to compile to a VLX programmatically through LISP (albeit not via the Windows command-line as you initially requested), though none of these functions has been documentated, making them very difficult to use:....
Something new with the missing documentation?
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

stevej

  • Newt
  • Posts: 30
Re: Possible to compile .prv and .lsp to .vlx from the windows command line?
« Reply #3 on: December 13, 2016, 04:33:40 PM »
Using Autocad 2014.
Entering VLISP on the Autocad command line and pressing ENTER brings up the Visual Lisp Editor.
I have  a lisp-to-fas program by Alan J. Thompson dated 10.30.09 that uses vlisp-compile command to access the editor for the conversion.
It may be that these commands beginning with vlisp- are a way to invoke functions within the editor ??

Steve
« Last Edit: December 13, 2016, 04:45:07 PM by stevej »

BIGAL

  • Swamp Rat
  • Posts: 1430
  • 40 + years of using Autocad
Re: Possible to compile .prv and .lsp to .vlx from the windows command line?
« Reply #4 on: December 17, 2016, 08:59:06 PM »
An example of compiling lisp to fas

Code: [Select]
(VL-LOAD-COM)
(setq loads (list "Lisp1" "Lisp2" "Lisp3"))
(setq loc1 "F:\\") ;;change dirs to where ever you want them saved
(setq loc2 "F:\\Compiled Lisp\\")
(foreach lisp loads
(vlisp-compile 'st (strcat loc1 lisp ".lsp") (strcat loc2 lisp ".fas"))
)
A man who never made a mistake never made anything