• 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

FIELDGRAFT LISP: Copy a Live Field to Many Objects

August 3, 2026

Copying a field by copying its text gives you the number it happened to show at the time. FIELDGRAFT copies the field itself — pick a source object containing a field, then keep picking destinations, and each one receives the same live expression.

What FieldGraft does

Every destination is updated immediately, so they all display the live value and all keep tracking it.

It works with Text, MText, attributes, multileaders and dimensions — and the source and destination need not be the same type, so a field from an MText can be grafted straight into a dimension override.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type FIELDGRAFT.
  3. Pick the source object containing the field you want.
  4. Keep picking destinations. Each receives the field and updates straight away.

How it works

A field is not held in the object you can see, which is why this cannot be done by copying a string.

The visible object stores only a placeholder. The real expression lives in an ACAD_FIELD dictionary hanging off it — referring to other objects by an internal index that only makes sense within that one object’s data, and split across multiple DXF entries whenever it runs longer than 250 characters.

So the expression has to be reassembled from its fragments and every internal reference resolved into a real object ID before it can be written anywhere else. Copy the raw string without doing that and the destination shows ####, or — worse — resolves against the wrong object entirely and displays a plausible number that is measuring something else.

Notes and limits

  • The source must actually contain a field. Plain text has nothing to graft.
  • Source and destination types can differ. MText to dimension, attribute to multileader — all fine.
  • Every destination tracks the same objects as the source. This copies the expression, it does not re-point it at something nearer.
  • Fields update on regeneration, governed by FIELDEVAL and FIELDDISPLAY.

Download and details

NameFieldGraft — copy a field expression to other objects, keeping it live
DownloadFieldGraft.lsp — 11.6 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandFIELDGRAFT
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size11.6 KB, 288 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

  • FIELDMATH LISP — build a live calculation from numbers already on the drawing
  • FIELDSNOOP LISP — report the expression and formatting of an existing field
  • AREASUM LISP — a live field totalling several areas
  • 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