Compiling an AutoLISP source file allows you to protect your program.
Note: The Visual LISP IDE is available on Windows only.
- At the AutoCAD Command prompt, use the vlisp-compile function using the following syntax:
(vlisp-compile 'mode “filename” [out-filename])
For this function
- mode is a symbol identifying the compiler mode
- filename is a string naming the source file
- out-filename is a string naming the compiled output file
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")
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")