ade_oddeletefield

AutoCAD Map 3D AutoLISP

Up a level
ade_oddeletefield
 
 

Deletes fields from a table.

(ade_oddeletefield tabname fieldlist)

Returns T or nil.

tabname Table name (string) can be up to 25 characters long. Must be unique, contain no spaces, and start with an alphanumeric character
fieldlist List of field names (string)

The function deletes the fields from the table and from each of its records. The data contained in these fields is also deleted. In other words, it deletes the fields and their data from each set of object data defined by the table and attached to an object.

Note  The fieldlist argument for ade_oddeletefield is a list of field names only. In the companion functions, ade_odaddfield and ade_odmodifyfield, it is a list of field definitions.

The ade_oddeletefield function affects all active drawings in the drawing set. There should not be any queried objects for this operation.

Note  This function will not operate unless your end user has superuser privileges.

The following code deletes three fields from a table.

(ade_oddeletefield "table1" 
    '( "field1" "field2" "field3" ))