11.1 Dynamic Fields & Excel Data Links

Key Takeaways

  • The FIELD command embeds dynamic, self-evaluating metadata expressions within MText, attributes, and table cells that reflect real-time object geometry, document properties, and sheet set parameters.

  • FIELDEVAL uses an additive bitcode mask (default 31) to control automated evaluation triggers across Open (1), Save (2), Plot (4), eTransmit (8), and Regen (16), while FIELDDISPLAY toggles editor grey background shading that never plots.

  • Object fields extract live geometric properties such as polyline area, perimeter, and circle radius, which automatically update when grips are stretched or objects are modified.

  • The DATALINK command establishes live, bidirectional bridges between Microsoft Excel spreadsheets (.xlsx) and AutoCAD tables, supporting full sheet links, named ranges, or explicit cell ranges (e.g., A1:D20).

  • Linked table cells default to locked states to protect data integrity, requiring explicit cell unlocking before local edits can be written back to Excel with DATALINKUPDATE (Write data link), which works only when the link allows writing to the source file.

Last updated: October 2026

11.1 Dynamic Fields & Excel Data Links

Note

Dynamic fields and external data links eliminate manual text entry and redundant data maintenance in production drafting. By binding drawing annotations directly to object geometry, drawing properties, sheet sets, and external spreadsheets, documentation updates automatically when designs change.

In professional drafting environments, static text represents a severe operational liability. When a room boundary shifts, an equipment tag relocates, or a structural schedule changes in an engineering spreadsheet, manually tracking and updating every affected text string across a drawing set introduces human error and project delays. AutoCAD provides two interconnected technologies to automate text values: Dynamic Fields, which extract live data from internal drawing entities and system states, and Data Links, which establish associative connections to external Microsoft Excel workbooks.


Dynamic Fields Architecture and the FIELD Command

A field is a specialized text string containing an underlying evaluation expression. When displayed in the drawing, AutoCAD evaluates the expression and outputs the resulting data value. If the underlying data changes, the field updates to reflect the new value.

Fields can be inserted virtually anywhere text is supported:

  • Within Multiline Text (MTEXT) and Single-Line Text (TEXT).
  • Inside Block Attribute definitions (ATTDEF) and existing block references (EATTEDIT).
  • Inside individual cells of an AutoCAD Table (TABLE).
  • As multileader content (MLEADER).
┌────────────────────────────────────────────────────────────────────────┐
│                            FIELD EXPRESSION                            │
│  %<\AcObjProp Object(%<\_ObjId 2129783424>%).Area \f "%lu2%pr2">%      │
└───────────────────────────────────┬────────────────────────────────────┘
                                    │ Evaluated by AutoCAD
                                    ▼
┌────────────────────────────────────────────────────────────────────────┐
│                        CANVAS DISPLAY / PLOT                           │
│                             1,452.50 SQ. FT.                           │
│               (Optional gray shading controlled by FIELDDISPLAY)       │
└────────────────────────────────────────────────────────────────────────┘

The Field Dialog Interface

Typing FIELD (or pressing Ctrl+F while inside the MText editor) opens the Field dialog box, which organizes data sources into distinct categories:

  1. Field Category Filter: Filters the available field names by discipline (All, Date & Time, Document, Linked, Objects, Other, Plot, SheetSet).
  2. Field Names List: Displays available evaluation variables within the selected category.
  3. Property / Expression Panel: Displays available properties for selected objects or files.
  4. Format Panel: Controls the visual representation, case formatting, linear/angular unit styles, and numeric precision.

Core Field Categories and Real-World Evaluation Targets

Understanding which field category holds the required data is critical for rapid workflow execution during production and on the certification exam.

Field CategoryCommon Field NamesEvaluated InformationPractical Production Application
Date & TimeCreateDate, Date, PlotDate, SaveDateOperating system timestamps, drawing creation dates, last-saved timestampsTitle block revision logs, automatic submission stamps on plot sheets
DocumentFilename, FileSize, Comments, Title, AuthorDrawing file system properties, drawing path, database file sizeFile path labels in sheet margins, transmittal tracking
ObjectsObject, BlockPlaceholderGeometric parameters: Area, Length, Diameter, Radius, Coordinates, VolumeRoom finish schedules, pipe run lengths, dynamic equipment coordinate tags
SheetSetCurrentSheetNumber, CurrentSheetTitle, CurrentSheetDescription, CurrentSheetCustom, CurrentSheetSetCustomSheet metadata managed by the Sheet Set Manager (.dst database)Automated title block population across hundreds of layout sheets
Other (SystemVariable field)CANNOSCALE, CLAYER, VIEWSIZE, DIMSCALELive values of AutoCAD system variablesScale callouts, active layout viewport scale indicators

Object Property Extraction

The Objects category is among the most versatile. Clicking Object in the Field Names column reveals an object selection button. Selecting any drawing entity exposes all readable properties of that entity in the Property list:

  • Closed 2D Polylines / Hatches / Regions: Expose Area and Length (perimeter). If the polyline boundaries are edited using grip stretching, trimming, or vertex insertion, the associated field automatically updates to reflect the new area.
  • Circles and Arcs: Expose Radius, Diameter, Circumference, Arc Length, and Center coordinates.
  • Block References: Expose insertion coordinates (Position), Rotation, Scale X/Y/Z, and Name.

Advanced Formatting and Unit Conversions

When extracting geometric properties, raw AutoCAD database units (such as square inches in an architectural imperial template) often require mathematical conversion before presentation. Clicking the Additional Format button in the Field dialog provides advanced controls:

  • Conversion Factor: Multiplies the evaluated value by a specified factor. For example, to convert drawing area measured in square inches into square feet, enter a conversion factor of 0.006944444 (1/144).
  • Prefix and Suffix: Appends text strings directly to the evaluated number (e.g., adding SQ. FT. as a suffix).
  • Zero Suppression: Suppresses leading zeros, trailing zeros, 0 feet, or 0 inches according to drafting standards.
  • Decimal Separators: Defines period or comma decimal delineation.

Custom Fields: Drawing Properties and Formulas

Objective 5.3.c includes custom field creation. Two common ways to supply a value AutoCAD does not track on its own:

  • Custom drawing properties: Open Drawing Properties (DWGPROPS), go to the Custom tab, and add a name and value such as PROJECT_PHASE = 90% CD. The property then appears in the Field dialog under the Document category, so a title block, note, or table can display it, and changing the value in DWGPROPS updates every field that uses it.
  • Formula fields: The Formula field in the Objects category can sum, average, or calculate from other fields and table cells, such as a room area field converted to square feet multiplied by a unit cost.

Customized object data comes from the Additional Format options described above: a conversion factor, prefix, suffix, and precision turn a raw object property into a presentation-ready value.

Tip

When creating room tags with dynamic area fields, group the boundary polyline and the MText tag into a named group or assign a hyperlink. This prevents team members from accidentally deleting the boundary polyline, which would cause the field to display the unresolved error string ####.


Automated Evaluation Control: FIELDEVAL and FIELDDISPLAY

Fields do not constantly recalculate on every cursor movement because continuous recalculation of hundreds of mathematical expressions would degrade graphic performance. Instead, AutoCAD governs field updates through two dedicated system variables.

The FIELDDISPLAY System Variable

FIELDDISPLAY controls the background shading of fields in the drawing window:

  • 1 (Default): Fields are displayed with a light gray background shading in the drawing editor. This visual indicator alerts drafters that the text is dynamically driven and should not be manually typed over.
  • 0: Shading is turned off; fields blend visually with standard text.

Important

The grey background shading generated when FIELDDISPLAY = 1 is strictly an on-screen drafting aid. Field shading never plots or publishes to physical paper, DWF, or PDF files.

The FIELDEVAL Bitcode System Variable

FIELDEVAL controls the specific drawing events that trigger automated field recalculation. It uses an additive bitcode integer sum:

Bitcode ValueEvaluation Event Trigger
0Not updated automatically; fields only update via manual intervention
1Updated automatically when the drawing is opened (OPEN)
2Updated automatically when the drawing is saved (QSAVE, SAVEAS)
4Updated automatically when the drawing is plotted or published (PLOT, PUBLISH)
8Updated automatically when using eTransmit (ETRANSMIT)
16Updated automatically when regenerating the drawing (REGEN, REGENALL)
31 (Default)Sum of 1 + 2 + 4 + 8 + 16: Fields update automatically on all listed events

If a drafter modifies a room boundary and immediately notices that the room area text has not changed, they can execute the REGEN command (if bit 16 is active) or invoke the UPDATEFIELD command, select the desired text objects, and press Enter to force an immediate database evaluation.


Microsoft Excel Data Linking Architecture

While dynamic fields excel at individual text annotations, tabular engineering data (such as door schedules, structural steel takeoffs, or panel schedules) is frequently maintained in external spreadsheets. The Data Link feature binds external Microsoft Excel workbooks (.xlsx or .xls) to native AutoCAD table objects.

┌────────────────────────────┐                  ┌────────────────────────────┐
│   Microsoft Excel (.xlsx)  │                  │    AutoCAD Table Object    │
│  ┌───┬──────────┬───────┐  │   DATALINK       │  ┌───┬──────────┬───────┐  │
│  │ID │ Component│ Count │  │ ───────────────► │  │ID │ Component│ Count │  │
│  ├───┼──────────┼───────┤  │                  │  ├───┼──────────┼───────┤  │
│  │101│ Valve A  │   14  │  │ ◄─────────────── │  │101│ Valve A  │   14  │  │
│  └───┴──────────┴───────┘  │   DATALINKUPDATE │  └───┴──────────┴───────┘  │
│     External Source        │    (Upload/Down) │      Drawing Canvas        │
└────────────────────────────┘                  └────────────────────────────┘

Establishing a Data Link with the DATALINK Command

To establish an associative connection:

  1. Type DATALINK at the command prompt to open the Data Link Manager.
  2. Click Create a new Excel Data Link and enter an alphanumeric name (e.g., Structural_Steel_Schedule).
  3. In the New Excel Data Link dialog, browse to the target .xlsx file.
  4. Select path retention: Full path, Relative path, or No path (Relative path is standard for networked project folders).
  5. Specify the link scope:
    • Link entire sheet: References the primary active sheet tab in its entirety.
    • Link to a named range: Connects to a pre-defined Excel Named Range (configured in Excel's Name Manager), protecting the link from breaking if rows or columns are inserted around the data in the spreadsheet.
    • Link to range: Explicitly targets cell boundaries using standard Excel syntax (e.g., Sheet1!A1:G30 or B2:E15).
  6. Expand the dialog's additional options to set how cell contents and formatting come across: keep data formats and formulas, keep data formats but solve formulas in Excel, or convert data formats to text and solve formulas in Excel; and whether to use Excel formatting and keep the table updated to it.
  7. Select Allow writing to source file if edits made in AutoCAD will ever need to be written back to the workbook. Without it, the link is read-only from AutoCAD's side.

Inserting the Linked Table

Once the link is defined, launch the TABLE command:

  1. Under Insert options, select From a data link.
  2. Choose the newly created data link from the drop-down list.
  3. The cell-content and formatting choices saved with the data link (steps 6 and 7 above) decide whether Excel formatting or the AutoCAD table style controls appearance and whether formulas such as =SUM(C2:C10) are solved in Excel before the results reach AutoCAD.
  4. Click OK and place the table insertion point in model space or paper space.

Bidirectional Synchronization and Cell Locking Protocols

Data links are not static snapshots; they maintain an active reference to the disk path. When changes occur in either application, AutoCAD manages data reconciliation.

Synchronizing Data with DATALINKUPDATE

  • Downloading from Excel to AutoCAD: When an external contributor edits and saves the Excel file, AutoCAD detects the modified file timestamp and displays an alert balloon in the system tray: "Data link has changed. A data link has been modified externally..." Clicking the hyperlink in the balloon—or entering DATALINKUPDATE and selecting Update data link (download)—pulls the revised values into the drawing table.
  • Uploading from AutoCAD to Excel: If the data link was created with Allow writing to source file, a drafter can modify cell values inside the AutoCAD table and write them back to the workbook. Run DATALINKUPDATE, choose Write data link, and select the table, or select linked cells and click Upload to Source on the Table Cell ribbon tab.

Warning

Uploading data from AutoCAD back to Excel will fail if the Excel spreadsheet is currently open with exclusive write locks by another user across the local area network. The spreadsheet file must be closed before executing an upload.

Cell Locking States in Linked Tables

By default, AutoCAD protects linked table cells from accidental user modification. If you click inside a linked cell, a padlock icon appears next to the cursor, indicating that the cell is locked.

Cell locking encompasses four distinct operational states available in the Table cell ribbon or right-click context menu under Data Locking:

  1. Unlocked: Content and formatting can be freely edited by the user.
  2. Content Locked: Text, numeric values, or field expressions cannot be typed over, but cell background color, text size, and margins can be modified.
  3. Format Locked: Formatting properties are frozen, but cell values can be edited.
  4. Content and Format Locked: Both cell value and visual appearance are completely protected.

To alter a value locally in AutoCAD prior to uploading to Excel, right-click the target cell, choose Data Locking > Unlocked, enter the revised numeric data, and then perform DATALINKUPDATE (Upload) to synchronize the change back to the external .xlsx file.

Test Your Knowledge

A drafter notices that dynamic fields placed in drawing title blocks to display the current plot date and file save date are not updating when the drawing is sent to the plotter, even though manual regeneration works. Which system variable and setting ensures that fields automatically evaluate during both plotting and saving?

A

Set FIELDEVAL to 31 (or ensure bitcodes 2 and 4 are included)

B

Set FIELDDISPLAY to 1 so that fields are shaded and refresh on plot

C

Set UPDATEFIELD to 1 so that every field updates at each save

D

Set FIELDEVAL to 0 so that fields update only when edited

Test Your Knowledge

A CAD technician is preparing presentation drawings for an architectural client and notices that all room square footage callouts display with a solid grey background shading on screen. How will this grey shading behave during printing, and how can its on-screen visibility be controlled?

A

The shading will plot as a half-tone gray hatch unless FIELDDISPLAY is set to 2

B

The shading only plots when using CTB monochrome styles, and can be suppressed by setting FIELDEVAL to 0

C

The grey shading is an on-screen aid that never plots; FIELDDISPLAY turns it on (1) or off (0)

D

The shading indicates a broken field link that will output the error text '####' unless purged with UPDATEFIELD

Test Your Knowledge

An engineering team links an equipment schedule from Microsoft Excel into an AutoCAD drawing. A drafter needs to edit several unit model numbers directly within the AutoCAD table cells and save those changes back into the original Excel workbook. What sequence of operations is required?

A

Convert the table to static text using EXPLODE, edit the text, and re-import it through the DATALINK manager

B

Use a link that allows writing to the source file, unlock the cells, edit them, and run DATALINKUPDATE > Write data link

C

Change FIELDEVAL to 16, edit the cell text, and run the REGEN command so the edits overwrite the Excel file

D

Execute the UPDATEFIELD command, select the table, and choose its Overwrite Source option to push the edits

Test Your Knowledge

When creating a dynamic room tag that evaluates the area of a closed boundary polyline, the evaluated field displays the room area as 207360 square inches. The project standard requires the annotation to read in square feet with the suffix ' SQ. FT.' (e.g., '1,440.00 SQ. FT.'). How should the field properties be configured?

A

Select the polyline, run the SCALE command with a factor of 0.0833, and then reinsert the area field

B

Change the drawing insertion units from Inches to Architectural in the UNITS dialog

C

Set the FIELDDISPLAY system variable to 144 and specify an Architectural precision of 1/8"

D

Use Additional Format in the Field dialog: conversion factor 0.00694444 and suffix ' SQ. FT.'

Sections you finish are checked off in the contents.