NewOccurrence

The NewOccurrence event notifies the client whenever a component occurrence is created in an assembly. _Pre fires before and _Post after the occurrence is created.

EventNames:

  • NewOccurrence_Pre

  • NewOccurrence_Post

Examples:

NewOccurrence_Pre:

Register-InventorEvent -EventName NewOccurrence_Pre -Action 'PreNewOccurrence'

function PreNewOccurrence() {
	#Write event code here
}

NewOccurrence_Post:

Register-InventorEvent -EventName NewOccurrence_Post -Action 'PostNewOccurrence'

function PostNewOccurrence() {
	#Write event code here
}