• 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

FORMATBRUSH LISP: Match Field Formatting in AutoCAD

August 3, 2026

FORMATBRUSH is a match-properties brush for field number formatting. Pick a field that displays exactly the way you want — the right units, the right precision, the right suffix — then keep clicking other fields, and each takes on that formatting while keeping its own value.

What FormatBrush does

The cursor changes to the match-properties brush while destinations are being picked, so it is obvious the tool is live.

Only the formatting code is transferred — the part of a field expression that says how to display the number, not what number to display. So a field showing an area and one showing a length can share formatting without either changing what it reports.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type FORMATBRUSH.
  3. Pick the source field — the one that already looks right.
  4. Keep clicking the fields that should match it.
  5. Press Enter or Escape to finish.

How it works

There is a deliberate restraint with nested fields, and it is the most considered thing in the routine. A field can contain other fields. Where a nested field already has its own formatting, that formatting is replaced. But a nested field with no formatting is left alone, and formatting is only added at the top level.

That distinction matters. Adding formatting to an inner field that never had any would change how the outer calculation reads its value — quietly altering the result rather than just its appearance. A brush that is supposed to change how something looks should never change what it says.

It is the same rounding trap that FIELDMATH avoids from the other direction: format an inner value to two decimals and every calculation built on it inherits the rounding.

Notes and limits

  • Values are never changed, only the formatting that displays them.
  • Nested fields without formatting are left alone, deliberately, to avoid altering a calculation’s result.
  • Both source and destination must contain fields. Plain text has no formatting code to receive.
  • One undo group covers the whole run of destinations.

Download and details

NameFormatBrush — copy field formatting from one field to others
DownloadFormatBrush.lsp — 17.5 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandFORMATBRUSH
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size17.5 KB, 420 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

  • FIELDSNOOP LISP — read the formatting code rather than brushing it across
  • FIELDGRAFT LISP — copy the whole field, expression and all
  • FIELDMATH LISP — why inner-field rounding matters in a calculation
  • 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