RepresentationDelete
The RepresentationDelete event notifies the client when a representation related object is deleted. These include positional representations and design views. _Pre fires before and _Post after the object is deleted.
EventNames:
RepresentationDelete_Pre
RepresentationDelete_Post
Parameters
Type |
Name |
Description |
|---|---|---|
document |
The document the deleted object is within. |
Examples:
RepresentationDelete_Pre:
Register-InventorEvent -EventName RepresentationDelete_Pre -Action 'PreRepresentationDelete'
function PreRepresentationDelete($document) {
#Write event code here
}
RepresentationDelete_Post:
Register-InventorEvent -EventName RepresentationDelete_Post -Action 'PostRepresentationDelete'
function PostRepresentationDelete($document) {
#Write event code here
}