NewParameter

The NewParameter event notifies the client when a new parameter is created. Parameters are created explicitly by the user (Add button in the Parameters dialog) and implicitly when dimension constraints are placed or features are constructed; the event fires in both cases. _Pre fires before and _Post after the parameter is created.
In _Post Inventor is not in a state to handle edit operations correctly; only query operations should be performed.

EventNames:

  • NewParameter_Pre

  • NewParameter_Post

Parameters

Type

Name

Description

Document

document

Document object the parameter is contained within.

Remarks

New parameters can be created explicitly by the end-user using the Add button on the Parameters dialog and they are also created implicitly as the result of placing dimension constraints and constructing features. This event provides notification in both cases.

Examples:

NewParameter_Pre:

Register-InventorEvent -EventName NewParameter_Pre -Action 'PreNewParameter'

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

NewParameter_Post:

Register-InventorEvent -EventName NewParameter_Post -Action 'PostNewParameter'

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