The OnSave event notifies a client whenever the document is saved.
Name | Type | Description |
BeforeOrAfter | EventTimingEnum | Input indicating when the event is being fired. Specifies if the notification is being sent before the document is saved (kBefore) or after the save (kAfter). |
Context | NameValueMap | Input object that can be used to determine the context of why the event fired. Additional information is provided through this argument to help in understanding the context of the save. Name = "SaveFileName", Value = The full filename that document is being saved to. |
HandlingCode | HandlingCodeEnum | Output that indicates how you are handling the event. This event supports the ability to cancel the change. Setting this argument to kEventCanceled when the BeforeOrAfter argument is kBefore Inventor will abort the save. If the event is aborted, it is not fired again with either kAfter or kAbort. |