tblsearch

(tblsearch table_type item_name)

The tblsearch function searches the entry specified item_name in the table specified by table_type and returns the table item information.

Arguments

table_type specifies valid names of table types are: APPID, BLOCK, DIMSTYLE, GROUP, LAYER, LTYPE, STYLE, UCS, VIEW, and VPORT.

item_name specifies the name of the table entry to be searched.

The table pointer is positioned to the table record found. This position is at the next call of tblnext the base position of the table pointer to the next position.

Return Value

If the function succeeds, it returns the table-entry described in an association list, otherwise it returns nil.

Example

: (tblsearch "LAYER" "0")

((0 . "LAYER") (2 . "0") (70 . 0) (62 . 1) (6 . "CONTINUOUS"))