ai_viewports_alert
(ai_viewports_alert)
The ai_viewports_alert function displays «Command active in Sheet area only» in the Command Window.
Use the function in menus in front of a command name or command sequence that is not valid when the Model tab is active.