AssemblyDelete
The AssemblyDelete event notifies the client whenever an object within this events set is deleted in a document.
Remarks
Assembly objects currently reported are ComponentOccurrence and AssemblyConstraint objects. The Document.OnDelete event can be used if delete notification is needed for other types of objects.
EventNames:
AssemblyDelete_Pre
AssemblyDelete_Post
Examples:
AssemblyDelete_Pre:
Register-InventorEvent -EventName AssemblyDelete_Pre -Action 'PreAssemblyDelete'
function PreAssemblyDelete() {
#Write event code here
}
AssemblyDelete_Post:
Register-InventorEvent -EventName AssemblyDelete_Post -Action 'PostAssemblyDelete'
function PostAssemblyDelete() {
#Write event code here
}