Share

acrxClassDictionary

C++

#define acrxClassDictionary \
AcRxDictionary::cast(acrxSysRegistry()->at(ACRX_CLASS_DICTIONARY))

File

rxdict.h

Description

The acrxClassDictionary macro provides a pointer to the ObjectARX system dictionary of AcRxClass objects. This dictionary contains all of the AcRxClass objects that make up the ObjectARX run-time tree. This dictionary uses the C++ class names that the AcRxClass objects represent as the keys for the entries.

The actual definition of the macro is as follows.

#define ACRX_CLASS_DICTIONARY "ClassDictionary"
#define acrxClassDictionary 
AcRxDictionary::cast(acrxSysRegistry()->at(ACRX_CLASS_DICTIONARY))

An example of the macros use is:

AcRxClass::cast(acrxClassDictionary->at("AcDbLIne"));

Warning

Do not use acrxClassDictionary->remove() to remove classes that have database-resident objects because the objects will not be turned into proxies. To properly remove classes from the dictionary and allow zombification to take place, use the global deleteAcRxClass() function.

acrxClassDictionary->remove() may be used to remove classes that do not have database-resident objects, but it is safer to use the deleteAcRxClass() function for all class removal.

Was this information helpful?