Object Creation Handler Functions

Abstract

Used to specify custom actions to be performed when an object is created.

Syntax

Object Creation Handler Function Name (obj_hndl, source)
Argument Type Description
obj_hndl EtsT_Obj_Handle Handle to the object that was created.
source EtsT_Nt_Object_Install_Src Source method by which the object was created (see Details for possible values).

Return Type

void

no return value

Details

The object creation handler function allows a model developer to specify custom processing each time an object is added to a network model, regardless of how the object is added. For example, the object can be dragged from the object palette, pasted from the clipboard, created via rapid configuration or ETS, or created during a topology import. If an object creation handler function is specified for a model, it will be called whenever an instance of that model is added to a network model.

The source can be one of the following values:

  • EtsC_Nt_Object_Install_Src_Rapid_Configuration
  • EtsC_Nt_Object_Install_Src_Topology_Import
  • EtsC_Nt_Object_Install_Src_ETS_Program
  • EtsC_Nt_Object_Install_Src_ETS_Db
  • EtsC_Nt_Object_Install_Src_Palette
  • EtsC_Nt_Object_Install_Src_Paste
  • EtsC_Nt_Object_Install_Src_Undo
  • EtsC_Nt_Object_Install_Src_Unknown

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com