Adds an object to a named dictionary.
See Also | Example
RetVal = object.AddObject(Keyword, ObjectName)
The object or objects this method applies to.
The keyword to be listed in the dictionary for this object.
The rxClassName of the object to be created in the dictionary.
The newly created object.
This method adds a new entry specified by ObjectName to the dictionary. If the entry already exists, it is replaced by the new object. The name of the object is specified by Keyword.
For example, an object with the Keyword "ThirdKeyword" and an object type "Object3" can be added to MyDictionary to create the following:
MyDictionary Keyword Object FirstKeyword Object1 SecondKeyword Object2 ThirdKeyword Object3
NOTE The ObjectARX application that defines the object must be loaded for this method to function correctly. See the LoadARX method for information on loading ObjectARX applications.