Share

deleteAcRxClass

C++

ADESK_DEPRECATE_FOR_INTERNAL_USE ACBASE_PORT void deleteAcRxClass(
    AcRxClass* pClassObj
);

File

rxclass.h

Description

Deprecated. 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. Typically this pointer value is obtained by using the desc() function of the class.

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::desc());
        deleteAcRxClass(CustomClass2::desc());
        deleteAcRxClass(CustomClass3::desc());
    }
    return AcRx::kRetOK;
}

Parameters

Parameters Description
pClassObj Input pointer to the AcRxClass object representing the C++ class to be removed from the ObjectARX run-time class tree

Was this information helpful?