• 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

SPANLINE LISP: Aligned Dimensions at a Consistent Offset

August 3, 2026

Ordinary DIMALIGNED makes you place the dimension line by eye, so a sheet full of dimensions ends up with a sheet full of slightly different offsets. SPANLINE and SPANPICK compute the offset instead.

What QuickSpan does

The dimension line is placed perpendicular to the measured run, one DIMTXT — the current text height — clear of it. Every dimension placed this way sits at an identical stand-off.

SPANLINE is one click: pick a line and it is dimensioned end to end. SPANPICK is two clicks: pick any two points to dimension between.

The consistency is the whole point. A sheet where every dimension sits the same distance off reads as drawn by someone who was paying attention, and it takes less effort than the ragged version.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type SPANLINE and pick a line, or SPANPICK and pick two points.
  3. The dimension is placed at the standard offset. There is nothing to position.

How it works

The offset is one DIMTXT — the current dimension text height — measured perpendicular to the run being dimensioned.

Tying it to DIMTXT rather than to a fixed distance is what makes it scale-correct. Change the drawing scale and DIMTXT changes with it, so the stand-off stays proportionate on paper rather than becoming enormous on a detail or invisible on a site plan.

Both commands modify the drawing, so both open an undo group — a single U removes the dimension.

Notes and limits

  • The offset comes from DIMTXT. Set your dimension text height correctly and the stand-off follows.
  • SPANLINE needs a line. Use SPANPICK for anything else, or for a distance between two features.
  • It uses your current dimension style for everything else — arrowheads, units, precision.
  • One undo per dimension.

Download and details

NameQuickSpan — rapid aligned dimensioning at a consistent, automatic offset
DownloadQuickSpan.lsp — 6.1 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandsSPANLINE, SPANPICK
Requiresnothing beyond a CAD platform with AutoLISP.
Source size6.1 KB, 146 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoThe whole operation is wrapped in a single undo group, so one U reverses all of it.
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

  • RISERUN LISP — dimension the X and Y components instead of the direct run
  • DIMCLASH LISP — find dimensions that overlap once the sheet is full
  • Drawing scale chart — what DIMSCALE and DIMTXT should be at each scale
  • 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