• 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

TAGSHED LISP: Convert Attribute Definitions to Plain Text

August 3, 2026

TAGSHED converts attribute definitions (ATTDEF) into plain TEXT objects. The typical use is a block full of attribute definitions that should have been static text all along, where you want to strip the attribute behaviour without redrawing the annotation.

What TagShed does

Every formatting group that TEXT and ATTDEF share — position, height, rotation, style, justification, oblique angle, width factor, colour — is copied straight across, so the replacement text lands in exactly the same place, at the same size, in the same style.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Open the block in the block editor, or work on attribute definitions sitting in model space.
  3. Type TAGSHED.
  4. Select the attribute definitions to convert.

How it works

An ATTDEF carries two strings, and choosing between them is the one judgement in the routine. DXF group 2 is the tag name; DXF group 1 is the prompt or default value.

What you see on screen in the block editor is the tag, so the tag is what gets carried across into the replacement TEXT object. Taking the default value instead would produce text that matches what the attribute would have displayed once filled in — which is not what was on screen, and not what anybody looking at the block editor expects to keep.

Notes and limits

  • The tag is used, not the default value. That is what was visible.
  • This is one-way in practice. One undo reverses it; after that, turning text back into attribute definitions is manual.
  • The attribute behaviour goes with it. The block will no longer prompt for these values on insertion.
  • One undo group covers the selection.

Download and details

NameTagShed — convert attribute definitions into plain text objects
DownloadTagShed.lsp — 5.6 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandTAGSHED
Requiresnothing beyond a CAD platform with AutoLISP.
Source size5.6 KB, 129 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

  • SMARTBURST LISP — turning attribute values into text when bursting a block
  • ATTCLONE LISP — matching attribute formatting instead of converting it
  • 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