Commands that have long computation processes and poll for cancelation are susceptible to having user events or external ActiveX requests come in and cause problems with their internal state if they change documents. Therefore, some commands will disable document switching during their processing phase. Here is a list of commands built into AutoCAD or supplied with bundled ObjectARX applications that disable document switching while processing:
- PLOT
- REGEN
- RENDER
- HIDE
- SHADE
The following commands disable document switching throughout their invocation:
- NEW
- OPEN
- TABLET
In addition, AcApDocManager::disableDocumentActivation() and AcApDocManager::enableDocumentActivation() will disable and re-enable document activation. The prototypes for these methods are:
virtual Acad::ErrorStatus disableDocumentActivation() = 0; virtual Acad::ErrorStatus enableDocumentActivation() = 0;
The following function indicates whether document activation is enabled:
virtual bool isDocumentActivationEnabled() = 0;