Model Sub-Package

The Model sub-package covers general management of a network model. You can add comments to a model with Ets_Nt_Comments_Add(). To set or clear a procedure that will be invoked each time a model is loaded, use Ets_Nt_Load_Callback_Register() and Ets_Nt_Load_Callback_Deregister(). To generate EMA C source code representing the current network model, use Ets_Nt_Model_Ema_Code_Gen(). You can work with a model's keywords using Ets_Nt_Model_Keywords_Get() and Ets_Nt_Model_Keywords_Set() or get the height and width of the current network view with Ets_Nt_Model_Visible_Bounds_Get().

Sites can be drawn with a temporary icon instead of the one specified by the site's icon attribute. You can set a temporary icon with Ets_Site_Display_Icon_Name_Set() and get the name of a temporary icon, if any, with Ets_Site_Display_Icon_Name_Get().

Ets_Link_Location_Changed_Handler_Register() and Ets_Site_Location_Changed_Handler_Register() let you specify functions that perform custom operations and are called whenever a link or site is moved.

Ets_Nt_Object_Pre_Uninstall_Callback_Register() and Ets_Nt_Object_Post_Uninstall_Callback_Register() let you specify functions that perform custom operations whenever an object is being removed from a network.

You can add a showcase to a network model with Ets_Nt_Model_Showcase_Add() or delete one with Ets_Nt_Model_Showcase_Remove(). To get a handle to a showcase, use Ets_Nt_Model_Showcase_Default_Get() or Ets_Nt_Model_Showcase_Active_Get(). To display a showcase, use Ets_Nt_Model_Showcase_Show(). (You can perform additional showcase operations using the “Showcase Package“.)

You can get a list of all models of a specific type in an object palette with Ets_Nt_Object_Palette_Model_List_Get(). You can register callbacks to perform custom processing on the object palette selection list using Ets_Nt_Object_Palette_List_Changed_Callback_Register(), Ets_Nt_Object_Palette_List_Define_Callback_Register(), and Ets_Nt_Object_Palette_List_Select_Callback_Register().

Ets_Nt_Coord_Lat_Long_To_Subnet_Convert() and Ets_Nt_Coord_Subnet_To_Lat_Long_Convert() let you convert locations between world and subnet coordinate systems.