Can we start a LISP routine by simply clicking in a viewport and not having to call the LISP thru command line. For ex., I am in viewport X and layer 1 is active, and then move to viewport Y and continue annotating, to realize that layer 1 is frozen in viewport Y. Now I have to set layer 2 current.Is there a way for the code to sit in background and then as soon as I click in the viewport call the LISP. I can accoplish the code to set layers based on active viewport. However, I am not sure how to call the LISP simply by clicking in the viewport. Don't know if it is even possible. Thanks.
I am not experienced in constructing them, nor do I know exactly what kinds of things they can respond to, but I expect a REACTOR could do that -- I hope someone who knows about them can help you, but of course you can read about them in Help and Search here [and elsewhere] for examples.