• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
blog.draftsperson.net

blog.draftsperson.net

the art of technical drawing

blog.draftsperson.net

STARTUPBUILD LISP: Build Your acaddoc.lsp Automatically

August 3, 2026

STARTUPBUILD builds your acaddoc.lsp — the file AutoCAD runs automatically for every drawing you open. Pick your routines from a multi-folder file browser and it writes the loading expressions for you.

What StartupBuilder does

Start here when deploying a LISP library to a team. It is the difference between “load these forty files by hand” and “everything is just there”.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type STARTUPBUILD.
  3. Pick the routines from the file browser, across as many folders as you need.
  4. The loading expressions are appended to your existing acaddoc.lsp, or a new one is created.

How it works

AUTOLOAD versus LOAD is the whole point of the routine. For a .lsp file whose commands can be identified, an autoload expression is written:

(autoload "C:/lisp/BFind.lsp" '("BFIND"))

That does not load the file at startup. It registers the command names, and the file is loaded the first moment somebody actually types one. With a hundred routines that is the difference between AutoCAD starting instantly and taking several seconds on every drawing — which is the cost that makes people quietly stop using a shared library.

A plain load is written only where autoload cannot work — for compiled .vlx and .fas files, and for any .lsp whose commands cannot be determined:

(load "C:/lisp/reactor.lsp" "Failed to load reactor.lsp")

The second argument is the message shown if the file is missing, which turns a cryptic startup error into something a colleague can act on without ringing you.

Commands are found without loading the file. Each .lsp is read as plain text and scanned with a regular expression for command definitions. No code from the file is ever evaluated, so scanning a file cannot do anything to your session.

Notes and limits

  • An existing acaddoc.lsp is appended to, never overwritten. Your existing startup code survives. If none exists anywhere on the support file search path, a new one is created in the Support folder under your roamable profile.
  • Autoload defers loading until first use. That is why a large library costs nothing at startup.
  • Compiled files always get a plain load, because their commands cannot be read as text.
  • Reactor-based routines need a plain load too — they must run at startup to register, so autoload would defeat them.

Download and details

NameStartupBuilder — build your acaddoc.lsp from a multi-folder file browser
DownloadStartupBuilder.lsp — 33.8 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandSTARTUPBUILD
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com); nothing extra — the dialog is written to a temporary file at run time and deleted again, so there is no .dcl to install.
Source size33.8 KB, 806 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoNot needed — this routine only reads the drawing and changes nothing.
CompatibilityAutoCAD (any release with AutoLISP), BricsCAD, ZWCAD, GstarCAD, ProgeCAD and other IntelliCAD-based platforms. AutoCAD LT needs a LISP enabler. No .NET, no ObjectARX, no installer.
AuthorYZ, August 2026
LicenceFree to use, supplied “as is” with no warranty.

References

  • CMDSCOUT LISP — see what commands a file defines before you add it
  • USAGELOG LISP — find out which of them actually get used
  • LAYERPILOT LISP — one of the routines that must load rather than autoload
  • More free AutoLISP routines on this site
  • Wisey’s Steel Shapes — free structural steel section drawing program

Filed Under: AutoLISP Routines

Primary Sidebar

Subscribe to our Youtube Channel

Post CAD drafting jobs on Freelancer.com. and get some free money to do this.

Categories

  • American Steel Industry (4)
  • AutoCAD Articles & Reference (30)
  • AutoCAD Bugs & Problems (19)
  • AutoCAD Tips (29)
  • AutoCAD Tutorials (54)
  • AutoLISP Routines (328)
  • AutoLISP Tutorials (15)
  • CAD Standards (7)
  • Civil 3D (7)
  • Civil Drafting (4)
  • Dimensions (2)
  • Drafting Funnies (71)
  • Drafting History (9)
  • Drafting Standards (84)
  • Electrical Drafting (2)
  • General IT reference (7)
  • Geometry (15)
  • GIS (2)
  • Hatch Patterns (12)
  • Office Life Hacks (3)
  • PT (1)
  • Revit Tutorials (54)
  • Steel Detailing (14)
  • Structural Drafting (26)
  • Technical Dictionary (61)
  • Useful Website Links (19)

Footer

Free downloads

  • Free AutoLISP routines
  • Free hatch patterns
  • SHX fonts & text styles
  • Numbering LISP collection
  • ISO 3098B font

Reference charts

  • AWS weld symbols chart
  • Steel detailing chart
  • Hole & slot sizes
  • Bolt edge distance
  • ANSI & ARCH paper sizes
  • How to fold an A1 drawing

Useful links

  • CAD blocks (DWG)
  • Revit families
  • structuraldrafter.com
  • cad-corner.com
  • About
  • Privacy policy

Provided for free with no warranty · Log in