• 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

TALLYBAR LISP: Live Selection Count in the Status Bar

August 3, 2026

Select objects and the status bar reads 14 objects selected. Deselect and it reverts to whatever it said before. TALLYBAR is small, but it removes a constant low-grade uncertainty — did that window actually catch the row of blocks, or only most of them?

What TallyBar does

TALLYBARON enables the counter; TALLYBAROFF disables it and restores the status bar. The counter is enabled automatically when the file loads.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path. It turns itself on.
  2. Select objects and read the count in the status bar.
  3. Type TALLYBAROFF to turn it off, TALLYBARON to bring it back.

How it works

Two reactors do the work, and the second is there for a specific reason.

:vlr-pickfirstmodified fires whenever the pick-first selection changes, which covers ordinary windowing and clicking. That is the main trigger.

:vlr-commandEnded is needed because QSELECT and SELECTSIMILAR build their selection without raising a pickfirst event. Without that second reactor those two commands would leave a stale count on display — which is worse than no count, because you would believe it.

The status bar text is the MODEMACRO system variable, so displaying the count means overwriting MODEMACRO and putting it back afterwards.

Notes and limits

  • It overwrites MODEMACRO. If you use that variable for something else, the counter will contend with it.
  • It loads enabled. Use TALLYBAROFF if you would rather it were not.
  • Reactors live for the session.
  • Nothing in the drawing is changed.

Download and details

NameTallyBar — show a live count of the current selection in the status bar
DownloadTallyBar.lsp — 9.7 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandsTALLYBAROFF, TALLYBARON
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size9.7 KB, 240 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

  • CORRAL LISP — select everything inside an irregular boundary
  • FOLLOWON LISP — select a whole connected chain in one pick
  • 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