Finds the next item in a dictionary
(dictnext ename [rewind])
Arguments
Name of the dictionary being viewed.
nil, the dictionary is rewound and the first entry in it is retrieved.
If this argument is present and is notReturn Values
nil, when the end of the dictionary is reached. Entries are returned as lists of dotted pairs of DXF-type codes and values. Deleted dictionary entries are not returned.
The next entry in the specified dictionary; otherwisedictsearch function specifies the initial entry retrieved.
Thenamedobjdict to obtain the master dictionary entity name.
UseExamples
dictadd. Then make another Xrecord object:
Create a dictionary and an entry as shown in the example forCommand: (setq xname (entmakex datalist))
<Entity name: 1b62d60>
Add this Xrecord object to the dictionary, as the second record in the dictionary:
Command: (dictadd newdict "DATA_RECORD_2" xname)
<Entity name: 1b62d60>
Return the entity name of the next entry in the dictionary:
Command: (cdr (car (dictnext newdict)))
<Entity name: 1bac958>
dictnext returns the name of the first entity added to the dictionary.
Return the entity name of the next entry in the dictionary:
Command: (cdr (car (dictnext newdict)))
<Entity name: 1bac960>
dictnext returns the name of the second entity added to the dictionary.
Return the entity name of the next entry in the dictionary:
Command: (cdr (car (dictnext newdict)))
nil
dictnext returns nil.
There are no more entries in the dictionary, soRewind to the first entry in the dictionary and return the entity name of that entry:
Command: (cdr (car (dictnext newdict T)))
<Entity name: 1bac958>
T for the optional rewind argument causes dictnext to return the first entry in the dictionary.
Specifyingdictadd, dictremove, dictrename, dictsearch, and namedobjdict functions.
The