LoadStateChange

The LoadStateChange event notifies the client whenever an assembly document goes from lite to full or full to lite loading.

EventNames:

  • LoadStateChange_Pre

  • LoadStateChange_Post

Parameters

Type

Name

Description

DocumentLoadStateEnum

newLoadState

Input DocumentLoadStateEnum value indicating the state the document is changing to when the timing kBefore and the current state when the timing is kAfter.

Examples:

LoadStateChange_Pre:

Register-InventorEvent -EventName LoadStateChange_Pre -Action 'PreLoadStateChange'

function PreLoadStateChange($newLoadState) {
	#Write event code here
}

LoadStateChange_Post:

Register-InventorEvent -EventName LoadStateChange_Post -Action 'PostLoadStateChange'

function PostLoadStateChange($newLoadState) {
	#Write event code here
}