ade_dwgindexdef

AutoCAD Map 3D AutoLISP

Up a level
ade_dwgindexdef
 
 

Adds operations to the index operations list.

(ade_dwgindexdef indextype [indexoper] [indexparams])

Returns T or nil.

indextype Type of index (string): "location", "property", "eed", "sqllinks", "objdata", or nil, where nil means remove all.
indexoper Operation (integer): 1 = create, 0 = remove. Omit this argument if indextype is nil.
indexparams List of object-data tables and fields to include in the index if indextype is "objdata", or nil to include all. Add this argument only if indextype is "objdata".

Calls to ade_dwgindexdef add operations to the index operations list. Calling ade_dwgindex executes the index operations in the list. If the index operation list is empty, ade_dwgindex has no effect and returns nil.

Examples

(ade_dwgindexdef nil) Remove all indexes.

(ade_dwgindexdef "location" 1) Create a location index.

(ade_dwgindexdef "location" 0) Remove the location index.

(ade_dwgindexdef "property" 1) Create a property index.

(ade_dwgindexdef "property" 0) Remove the property index.

Object Data Examples

(ade_dwgindexdef "objdata" 1 nil) Create an object data index that includes all object data.

(ade_dwgindexdef "objdata" 0 nil) Remove all object data from the object data index.

(ade_dwgindexdef "objdata" 1 '(("TABLE")) ) Create an object data index that includes all fields in TABLE.

(ade_dwgindexdef "objdata" 0 '(("TABLE")) ) Remove all fields in TABLE from the object data index.

More Object Data Examples

(ade_dwgindexdef "objdata" 1 '(("TABLE" "FIELD1")) )

(ade_dwgindexdef "objdata" 0 '(("TABLE" "FIELD1")) )

(ade_dwgindexdef "objdata" 1 '(("TABLE" "FIELD1" "FIELD2")) )

(ade_dwgindexdef "objdata" 0 '(("TABLE" "FIELD1" "FIELD2")) )

(ade_dwgindexdef "objdata" 1 '(("TABLE1")("TABLE2" "FIELD1")) )

(ade_dwgindexdef "objdata" 0 '(("TABLE1")("TABLE2" "FIELD1")) )