DrawingViewEvents.OnViewUpdate Event

Parent Object: DrawingViewEvents

Description

The OnViewUpdate event notifies a client when the document associated with the drawing view has been modified and causes the drawing view to update.

Remarks

This event in useful in the case where you have created additional sketch geometry or labels referencing that view that may need to be updated to reflect changes in the attached model. Note. Modifying actions should only be performed in the kAfter state. The use of kBefore should be avoided except for query operations.

Syntax

DrawingViewEvents.OnViewUpdate( BeforeOrAfter As EventTimingEnum, Context As NameValueMap, ReasonsForChange As CommandTypesEnum, HandlingCode As HandlingCodeEnum )

Parameters

Name Type Description
BeforeOrAfter EventTimingEnum Input EventTimingEnum indicating when the event is being fired. Indicates if the notification is being sent before or after the drawing view has been updated.
Context NameValueMap Additional information is provided through this argument to help in understanding the context of the update, as indicated by the value of ReasonsForChange, which is a value from the CommandTypesEnum list, which represents the different categories of changes that can be made.
ReasonsForChange CommandTypesEnum A value 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.
HandlingCode HandlingCodeEnum Output that indicates how you are handling the event. The value of this argument is currently ignored for this event.

Version

Introduced in version 9