To Compile a Single AutoLISP Source File (AutoLISP/VS Code)

Note: The ability to compile a LSP file is supported in AutoCAD for Windows only; not available in AutoCAD LT for Windows.

Examples

The following compiles the yinyang.lsp to yinyang.fas:

(vlisp-compile 'st "yinyang.lsp")

The following compiles the yinyang.lsp to GoodKarma.fas:

(vlisp-compile 'st "yinyang.lsp" "GoodKarma.fas")

If the file yinyang.lsp is not located in a folder specified by Support File Search Path, you must specify the path in which the file is located.

(vlisp-compile 'st "c:/program files/Autodesk/<AutoCAD installation directory>/sample/visuallisp/yinyang.lsp")