Document Events
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
}
The ChangeSelectSet event notifies the client when the contents of the select set have changed.
EventNames:
ChangeSelectSet_Post
Examples:
ChangeSelectSet_Post:
Register-InventorEvent -EventName ChangeSelectSet_Post -Action 'PostChangeSelectSet'
function PostChangeSelectSet() {
#Write event code here
}