ActivateDesignView

The ActivateDesignView event notifies the client when a design view representation is activated. _Pre fires before and _Post after the representation is activated.

EventNames:

  • ActivateDesignView_Pre

  • ActivateDesignView_Post

Parameters

Type

Name

Description

Document

document

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

Examples:

ActivateDesignView_Pre:

Register-InventorEvent -EventName ActivateDesignView_Pre -Action 'PreActivateDesignView'

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

ActivateDesignView_Post:

Register-InventorEvent -EventName ActivateDesignView_Post -Action 'PostActivateDesignView'

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