CADEx

How to Compile a LISP Routine to FAS

AutoCADCivil 3D7 min
Short answer

To compile a LISP routine to FAS: in AutoCAD, type VLIDE, open your .lsp in the Visual LISP IDE, then File → Make Application → New Application Wizard, pick 'Simple' for single-file FAS, follow the prompts. Visual LISP produces a .fas next to your .lsp that loads identically but ships without source code.

Steps

1

Open Visual LISP

In AutoCAD, type VLIDE (or VLISP). The Visual LISP IDE opens in a separate window.

2

Open your .lsp file

File → Open File → browse to your .lsp source. The file opens in an editor tab with syntax highlighting.

3

Launch the Application Wizard

File → Make Application → New Application Wizard. Pick 'Simple' for a single .lsp file → .fas. Pick 'Module' if you have multiple .lsp files to bundle into one .vlx.

4

Choose Simple → next

Set the Application Location (where to write the .fas) and the Application Name. Add your .lsp file. Step through Next → Next → Finish.

5

Build

In the resulting Project window, click 'Make' (the hammer icon). Visual LISP compiles your source into a .fas next to it. The output window shows any errors.

6

Distribute

Ship the .fas alone. Buyers load it the same way they would the original .lsp — APPLOAD or Startup Suite. Source is hidden.

Frequently asked questions

Does compiling to FAS hide my source code completely?

It hides the original text. .fas is bytecode, not encryption — a determined attacker can decompile it. For real source protection, write the value-critical logic in .NET and ship a signed/obfuscated DLL.

What's the difference between FAS and VLX?

.fas is one compiled file. .vlx is a single packaged bundle of multiple .fas files plus optional resources (DCL dialogs, support data). Use FAS for single-file utilities; use VLX for larger apps.

Will the FAS work in any AutoCAD version?

Yes — FAS is forward and largely backward compatible across AutoCAD versions. The exception is FAS that uses LISP functions only added in newer AutoCAD releases — those won't work in older versions.

Can I edit a .fas?

No. .fas is compiled. Keep the original .lsp source under version control — that's the editable form.

Related guides

How to Load a LISP Routine in AutoCAD

Three reliable ways to load .lsp, .fas, and .vlx files into AutoCAD, plus how to add them to the Startup Suite so you never reload again.

How to Write Your First AutoLISP Routine

Write, save, and load a five-line LISP routine that adds a custom command to AutoCAD.

Browse listings

AutoCAD LISP Routines

Hundreds of verified AutoLISP and Visual LISP routines for AutoCAD: .lsp source, compiled .fas, and bundled .vlx applications. Loaded with APPLOAD, version-friendly, malware-scanned.

Related terms

FAS

A compiled, single-file binary of an AutoLISP/Visual LISP routine. Faster to load and obscures the source code.

VLX

A compiled Visual LISP application that bundles multiple .lsp/.fas files, DCL dialogs, and resources into one file.

Visual LISP

An extended LISP environment in AutoCAD that adds an IDE, debugger, COM access, and the ability to compile to FAS or VLX.

AutoLISP

Autodesk's dialect of LISP, built into AutoCAD since 1986, used to write custom commands and automate drawings.