ApplicationEvents.OnCloseView Event
Parent Object: ApplicationEventsDescription
The OnCloseView event notifies a client when a view is closed. An API view is equivalent to an Inventor graphics window.
Syntax
ApplicationEvents.OnCloseView( ViewObject As View, BeforeOrAfter As EventTimingEnum, Context As NameValueMap, HandlingCode As HandlingCodeEnum )Parameters
Name | Type | Description |
ViewObject | View | The view that is about to be closed. |
BeforeOrAfter | EventTimingEnum | Input indicating if the event is being fired before (kBefore) or after (kAfter) the view is closed. This notification is currently only provided before the view has been closed. To protect yourself against possible future changes to this event you should write your code so that you only respond to kBefore, as shown below. Private Sub ApplicationEvents_OnCloseView(...) If BeforeOrAfter = kBefore Then ' Your code in reaction to the notification. End If End Sub |
Context | NameValueMap | Input object that can be used to determine the context of why the event fired. No context information is provided for this event. |
HandlingCode | HandlingCodeEnum | Output that indicates how you are handling the event. This argument is ignored for this event. |