ModelStateEvents.OnDeleteModelState Event

Parent Object: ModelStateEvents

Description

Event that fires when a model state is deleted.

Syntax

ModelStateEvents.OnDeleteModelState( DocumentObject As Document, ModelState As Object, BeforeOrAfter As EventTimingEnum, Context As NameValueMap, HandlingCode As HandlingCodeEnum )

Parameters

Name Type Description
DocumentObject Document The Document object the deleted object is within.
ModelState Object The model state that is being deleted. When the value of the BeforeOrAfter argument is kBefore, the model state provided is the object before being deleted. When the value is kAfter, a model state is also provided but since the actual model state has been deleted calling any methods or properties on the object will fail. The only thing that is valid to do with the object at this time is to compare it's identity with a reference previously saved.
BeforeOrAfter EventTimingEnum Input EventTimingEnum indicating when the event is being fired. Notification is sent before and after the object is deleted.
Context NameValueMap Input NameValueMap 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 HandlingCodeEnum that indicates how you are handling the event. The value of this argument is currently ignored for this event.

Version

Introduced in version 2022