• 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

ATTCLONE LISP: Match Attribute Formatting in AutoCAD

August 3, 2026

When attributes drift out of step — one tag at the wrong height, another on the wrong layer — fixing them one at a time through Properties is tedious and easy to get half-done. ATTCLONE is a format painter for attributes: pick one that looks right, then keep picking the ones that should match.

What AttClone does

Pick a source attribute whose appearance is correct, then keep picking attributes that should look the same. Height, style, layer, rotation, oblique angle, width factor, the colour-bearing properties and both mirror flags are all carried across.

Both prompts use nested selection, so attributes are picked directly inside their block references. Nothing has to be exploded and no block editor has to be opened.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type ATTCLONE.
  3. Pick the source attribute — the one that already looks right.
  4. Pick each attribute that should match it. Carry on picking; the source stays fixed.
  5. Press Enter or Escape to finish.

How it works

The attribute’s value is deliberately left alone. This is the most important thing about the routine, and it is a design decision rather than an oversight. Attributes are how drawings carry real data — door numbers, room names, title block fields, revision references. A tool that silently overwrote that data while claiming to fix formatting would be genuinely dangerous, and the damage would not be visible until somebody read the schedule. Only appearance is touched.

The property list is meant to be edited. AttClone:Properties near the top of the file is a plain list of ActiveX property names. Delete a line to stop that property being copied — drop Layer, for instance, if you want the text to match but each attribute to stay where it lives. Add a line to include something else the attribute exposes.

To see the full set of property names available on an attribute, run XRAY from this library on one. Every name it reports can go in the list.

Notes and limits

  • Values are never copied. If you actually want to push the same value into many attributes, that is a different job — see ATTPUSH in AttHarvest.
  • Nested selection means no exploding. Attributes are picked in place, inside their blocks.
  • Constant attributes cannot be targets. They belong to the block definition, not the insertion, so there is no per-instance formatting to change.
  • Everything is one undo group, so a single U puts every changed attribute back.

Download and details

NameAttClone — match attribute formatting from a source to many targets
DownloadAttClone.lsp — 8.1 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandATTCLONE
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size8.1 KB, 216 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

  • ATTPULL and ATTPUSH LISP — read and write attribute values across a folder
  • TAGTINT LISP — recolour chosen attribute tags across many blocks
  • XRAY LISP — list every property an object exposes
  • 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