ParameterChange

The ParameterChange event notifies the client when a parameter is changed (its value, units or name), regardless of the cause. _Pre fires before and _Post after the change, so the state of the parameter can be compared before and after the change.
A parameter can change by an explicit edit in the Parameters dialog or on the dimension, by being driven through an adaptive assembly, or as the result of an equation. If parameter B is defined as “A * 2”, changing A also changes B and the event fires for both A and B.

EventNames:

  • ParameterChange_Pre

  • ParameterChange_Post

Parameters

Type

Name

Description

Document

document

Document object the parameter is contained within.

Remarks

A parameter’s value can be changed in many ways. This notification is sent for any change, regardless of what caused it.

Examples:

ParameterChange_Pre:

Register-InventorEvent -EventName ParameterChange_Pre -Action 'PreParameterChange'

function PreParameterChange($document) {
	#Write event code here
}

ParameterChange_Post:

Register-InventorEvent -EventName ParameterChange_Post -Action 'PostParameterChange'

function PostParameterChange($document) {
	#Write event code here
}