Check for Visibility of AutoCAD

Level

Requirement

Applies to

ObjectARX and .NET applications

Scripts that get executed at AutoCAD startup (typically code in acad.lsp, acaddoc.lsp, and so on) need to check whether the AutoCAD process is visible or invisible. If it is invisible, the AutoCAD process is most likely in a background plot process. In that case, the code in the scripts should not execute or it will interfere with the plot process. A similar check should be made in reactors.