Function Entry: XDROOM

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

Function Entry: XDROOM

Name

xdroom

Class

Function

Syntax

(xdroom ename)

Arguments and Values

  • ename: an entity name.

Description

Returns the amount of extended-data (xdata) space available for the named entity. AutoCAD limits xdata to about 16 KB per entity, shared across all applications that have attached xdata to it. Use this function to verify that enough room exists before appending more xdata.

Return Values

An integer (free bytes), or nil on failure.

Side Effects

None.

Examples

  • (xdroom vpname) returns 16162, indicating 221 bytes of the 16 383-byte budget are already in use.

Availability

  • AutoCAD 2026: documented.
  • BricsCAD V26: presumed compatible.
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.