ActivateView
The ActivateView event notifies the client after a view is activated. A view is equivalent to an Inventor graphics window, so the event fires when the user clicks into a window to work in it. Only _Post is available.
EventNames:
ActivateView_Post
Examples:
ActivateView_Post:
Register-InventorEvent -EventName ActivateView_Post -Action 'PostActivateView'
function PostActivateView() {
#Write event code here
}