DocumentChange
The DocumentChange event notifies the client when the document is changed, supplying the reasons for change.
EventNames:
DocumentChange_Pre
DocumentChange_Post
Parameters
Type |
Name |
Description |
|---|---|---|
reasonsForChange |
This argument indicates the type of change that occurred. The value is from the CommandTypesEnum list, which represents the different categories of changes that can be made. Typically this will be a single value from the list but it can represent multiple values that have been combined together so you need to use bitwise operations to check for a specific change. |
Examples:
DocumentChange_Pre:
Register-InventorEvent -EventName DocumentChange_Pre -Action 'PreDocumentChange'
function PreDocumentChange() {
#Write event code here
}
DocumentChange_Post:
Register-InventorEvent -EventName DocumentChange_Post -Action 'PostDocumentChange'
function PostDocumentChange() {
#Write event code here
}