tblnext


(tblnext table [ fromStart ] )

This function returns the next or first entry of specified table.

Arguments

table  (string) name of the table (like "LAYER" "UCS" ...)
fromStart  (NIL/non-NIL, optional)  if present and not NIL, the table iteration is reset to the first entry

Return

the (entget) style definition list; NIL if no more record is present in table (at the end of iteration)

Example

(tblnext "Layer" T)
((0 . "LAYER") (2 . "0") (70 . 0) (62 . 7) (6 . "Continuous"))

Remarks

at very first call on a specific table, (tblnext) will return the first table record;
but it is advised to always start iteration with fromStart specified as T;
see (tblsearch) function



©  Bricsys NV. All rights reserved.