Function Entry: XDSIZE

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

Function Entry: XDSIZE

Name

xdsize

Class

Function

Syntax

(xdsize lst)

Arguments and Values

  • lst: a valid extended-data list whose application name has been registered by regapp. The list may optionally start with a -3 group-code sentinel; outer parentheses are required either way. Brace fields (group code 1002) must be balanced.

Description

Returns the number of bytes the list will occupy when linked to an entity as xdata. If the application name is not registered, an error is signalled and ERRNO is set.

Return Values

An integer (byte size), or nil on failure.

Side Effects

None.

Examples

Both of these forms are accepted:

(-3 ("MYAPP" (1000 . "SUITOFARMOR")
             (1002 . "{")
             (1040 . 0.0)
             (1040 . 1.0)
             (1002 . "}")
))
( ("MYAPP" (1000 . "SUITOFARMOR")
           (1002 . "{")
           (1040 . 0.0)
           (1040 . 1.0)
           (1002 . "}")
))

Availability

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