• 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

TERMSTRIP LISP: Draw a Numbered Terminal Strip

August 6, 2026

TERMSTRIP draws a terminal block — a ladder of numbered terminals at an even pitch, at any angle, with a prefix and suffix on the numbers.

What TerminalStrip does

For control panel drawings, junction boxes and marshalling cabinets: anywhere a row of numbered connections has to be drawn and labelled.

Numbers can count up or down, in any step, so a strip wired from the far end reads correctly.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type TERMSTRIP.
  3. Give the pitch, the number of terminals, the start number and step, and any prefix or suffix.
  4. Pick the start point and the direction.

How it works

Labels are strings, not integers. Building the terminal number with itoa restricts a strip to whole numbers — no 1A, 1B, no 101.1, which are the numbers real panel schedules are full of.

A fixed-height text style is a perfectly ordinary way to set a drawing up, and is treated as one. Text height comes from DIMTXT × DIMSCALE unless the style has a fixed height, in which case the style wins — without comment.

An interrupted strip backs out in one step. Without an error handler and an undo group, cancelling half way leaves however many terminals were drawn, each needing its own U.

Notes and limits

  • Any angle — the strip does not have to run horizontally.
  • Count up or down, in any step.
  • Prefix and suffix wrap the number, so X1- gives X1-1, X1-2.
  • One undo group covers the strip.

Download and details

NameTerminalStrip — draw a numbered terminal strip
DownloadTerminalStrip.lsp — 7.5 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandTERMSTRIP
Requiresnothing beyond a CAD platform with AutoLISP.
Source size7.5 KB, 179 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

  • SERIALTAG LISP — the same counting, placed by hand where you want it
  • PNEUMATICLINE LISP — the other panel-drawing routine in this set
  • TAGBATCH LISP — numbering a whole run of blocks at once
  • 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