OccurrenceChange
The OccurrenceChange event notifies the client whenever the state of a component occurrence changes. Reported changes are: grounded, adaptive, visible, enabled, suppressed and repositioned (transformed). _Pre fires before and _Post after the occurrence is changed.
At _Pre the original state (for example the transformation) can still be read from the occurrence.
EventNames:
OccurrenceChange_Pre
OccurrenceChange_Post
Examples:
OccurrenceChange_Pre:
Register-InventorEvent -EventName OccurrenceChange_Pre -Action 'PreOccurrenceChange'
function PreOccurrenceChange() {
#Write event code here
}
OccurrenceChange_Post:
Register-InventorEvent -EventName OccurrenceChange_Post -Action 'PostOccurrenceChange'
function PostOccurrenceChange() {
#Write event code here
}