dictsearch


(dictsearch  dictEname  keystring  [ setForNext ] )

This function returns the dictionary entry with key keystring in dictionary dictEname, optionally presets the dictionary for (dictNext) if setForNext is non-NIL.

Arguments

dictEname  the entity name (ENAME) of the dictionary

keystring  they dictionary entry (key its key string) to search for

setForNext  if non-NIL, the search will start at the first dictionary entry, otherwise at the actual position

Return

the dictionary entry (as entget-style list) if keystring is found, NIL otherwise

Example

(setq mydictdata (dictsearch (namedobjdict) "MyDictKey")
((-1 . <Entity name ...>) (0 . "DICTIONARY") ....)

Remarks

see (dictadd) (dictnext) (dictrename) (dictremove)



©  Bricsys NV. All rights reserved.