Object Destruction Handler Functions
Abstract
Used to specify custom actions to be performed when an object is destroyed.
Syntax
Object Destruction Handler Function Name (obj_handle)
| Argument | Type | Description |
|---|---|---|
obj_handle |
EtsT_Obj_Handle |
Handle to the object that is being destroyed. |
Return Type
void
no return value
Details
The object destruction handler function allows a model developer to specify custom processing each time an object is removed from a network model, regardless of how the object is removed. For example, the object can be cut to the clipboard, destroyed when the model is cleared, or destroyed via ETS. If an object destruction handler function is specified for a model, it will be called whenever an instance of that model is removed from a network model.