Share

deleteAcRxClass

C++

template <class RXClass> void deleteAcRxClass();

File

rxclass.h

Description

Removes a C++ class from the ObjectARX run-time class tree and do all the necessary cleanup that may be involved, such as making a proxy of any objects or entities of the class that are present in any AcDbDatabase objects. pClassObj must point to the AcRxClass object that is in the ObjectARX run-time class tree and represents the C++ class to be removed.

Note: For Internal Use Only.

extern "C" AcRx::AppRetCode
acrxEntryPoint(AcRx::AppMsgCode msg, void* pkt)
{
switch (msg) {
    case AcRx::kInitAppMsg:
        acrxDynamicLinker->unlockApplication(pkt);
        CustomClass1::rxInit();
        CustomClass2::rxInit();
        CustomClass3::rxInit();
        acrxBuildClassHierarchy();
        break;
    case AcRx::kUnloadAppMsg:
        // Remove the custom classes from the ObjectARX runtime class
        // tree.
        //
        deleteAcRxClass<CustomClass1>();
        deleteAcRxClass<CustomClass2>();
        deleteAcRxClass<CustomClass3>();
    }
    return AcRx::kRetOK;
}

Was this information helpful?