EnvironmentChange

The EnvironmentChange event notifies the client when the active environment switches from one environment to another.

EventNames:

  • EnvironmentChange_Pre

  • EnvironmentChange_Post

Parameters

Type

Name

Description

EnvironmentStateEnum

environmentState

Indicates the transition state the environment is going through.

Examples:

EnvironmentChange_Pre:

Register-InventorEvent -EventName EnvironmentChange_Pre -Action 'PreEnvironmentChange'

function PreEnvironmentChange($environmentState) {
	#Write event code here
}

EnvironmentChange_Post:

Register-InventorEvent -EventName EnvironmentChange_Post -Action 'PostEnvironmentChange'

function PostEnvironmentChange($environmentState) {
	#Write event code here
}