DocumentDelete

The documentDelete event notifies the client when ane entity is deleted.

Remarks

This notification is sent for each entity that is deleted. If the user selects multiple entities and then presses the delete key a delete notification is sent for each entity that is deleted.

EventNames:

  • DocumentDelete_Pre

  • DocumentDelete_Post

Examples:

DocumentDelete_Pre:

Register-InventorEvent -EventName DocumentDelete_Pre -Action 'PreDocumentDelete'

function PreDocumentDelete() {
	#Write event code here
}

DocumentDelete_Post:

Register-InventorEvent -EventName DocumentDelete_Post -Action 'PostDocumentDelete'

function PostDocumentDelete() {
	#Write event code here
}