NewFeature

The NewFeature event notifies the client whenever a new feature is created. _Pre fires before and _Post after the feature is created.
In _Post Inventor is not in a state to handle edit operations correctly; only query operations should be performed.

EventNames:

  • NewFeature_Pre

  • NewFeature_Post

Parameters

Type

Name

Description

Document

document

Document object that indicates the document in which the change occurred.

Examples:

NewFeature_Pre:

Register-InventorEvent -EventName NewFeature_Pre -Action 'PreNewFeature'

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

NewFeature_Post:

Register-InventorEvent -EventName NewFeature_Post -Action 'PostNewFeature'

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