ade_odsetfield

AutoCAD Map 3D AutoLISP

Up a level
ade_odsetfield
 
 

Sets a field value.

(ade_odsetfield ename table field recnum value)

Returns T or nil.

ename AutoCAD object name.
table Table name (string) can be up to 25 characters long. Must be unique, contain no spaces, and start with an alphanumeric character.
field Field name (string) can be up to 31 characters long. Must be unique, contain no spaces, and start with an alphanumeric character.
recnum Record number (integer); the first record number is 0.
value New field value.

To identify a unique record, you need to specify the table to which it belongs, the object to which it is attached, and its record number. The record number is necessary because more than one record from the same table can be attached to an object. For more information about records and record numbers, see ade_odaddrecord.