dictadd
(dictadd dictionary item new_object)
The dictadd function adds a non-graphical object to the specified dictionary.
Arguments
dictionary specifies a dictionary entity name where the new object will be added.
item specifies the name of an item; it must be unique in the dictionary.
new_object specifies the new non-graphical object to be added.
Return Value
The function returns the entity name of the object added to the dictionary.
The examples that follow create objects and add them to the named object dictionary.
Create a dictionary entry list:
: (setq dictionary (list '(0 . "DICTIONARY") '(100 . "AcDbDictionary"))) ((0 . "DICTIONARY") (100 . "AcDbDictionary"))
Create a dictionary object using the entmakex function:
: (setq xname (entmakex dictionary))
<Entity name: 1d98950>
Add the dictionary to the named object dictionary:
: (setq newdict (dictadd (namedobjdict) "MY_DICTIONARY" xname))
<Entity name: 1d98950>
dictnext, dictremove, dictrename, dictsearch, namedobjdict