Extended Data - xdata

AutoCAD AutoLISP & Visual LISP

 
Extended Data - xdata
 
 
 

Several AutoLISP functions are provided to handle extended data (xdata), which is created by applications written with ObjectARX or AutoLISP. If an entity contains xdata, it follows the entity's regular definition data.

You can retrieve an entity's extended data by calling entget. The entget function retrieves an entity's regular definition data and the xdata for those applications specified in the entget call.

When xdata is retrieved with entget, the beginning of extended data is indicated by a -3 code. The -3 code is in a list that precedes the first 1001 group. The 1001 group contains the application name of the first application retrieved, as shown in the table and as described in the topics in this section.

Group codes for regular and extended data

Group code

Field

Type of data

(-1, -2

(0-239

)

Entity name)

Regular definition data fields)

.

.

.

Normal entity

definition data

(-3

(1001

(1000,

1002-1071

(1001

(1000,

1002-1071

(1001

Extended data sentinel

Registered application name 1)

XDATA fields)

.

.

.

Registered application name 2)

XDATA fields)

.

.

.

Registered application name 3)

.

.

Extended data