Function Entry: ENTMOD

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: ENTMOD

Name

entmod

Class

Host Function

Syntax

(entmod elist)

Arguments and Values

  • elist: entity definition association list

Autodesk documents that the entity name to modify is taken from group -1 in elist.

Description

Modifies an entity in the drawing database according to the supplied entity definition list.

Return Values

List or nil.

If successful, Autodesk documents that entmod returns the supplied elist; otherwise it returns nil.

Side Effects

Modifies the drawing database.

Exceptional Situations

Erroneous if the entity definition list is invalid or requests an illegal modification.

Compatibility

Semantically paired with entget.

Availability

  • AutoCAD 2026: documented (per Autodesk reference page).
  • BricsCAD V26: presumed compatible (no contradicting page found).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.

Notes

  • Autodesk documents that an entity's type and handle cannot be changed.
  • Autodesk documents that certain internal fields, such as the -2 group of a SEQEND, are ignored if modified.
  • Autodesk documents that viewport entities cannot be modified with entmod.
  • Autodesk documents that changing entities inside a block definition affects all inserts of that block.
  • Autodesk documents special color behavior in AutoCAD 2004 and later: if true-color group 420 conflicts with ACI group 62, the true-color value takes precedence.