Ets_Nt_Import_Model_Convert()
Note: Requires OPNET Development Kit
Abstract
Imports a model into a specified network model.
Syntax
Ets_Nt_Import_Model_Convert (model_ptr, ets_model_hndl, options)
| Argument | Type | Description |
|---|---|---|
model_ptr |
EtsT_Nt_Import_Model* |
Import model to be converted. |
ets_model_hndl |
EtsT_Model_Handle |
Network model to receive the converted model. |
options |
int |
Flags controlling the conversion process (see Details). |
Return Type
EtsT_Obj_List*
List of objects (sites, links, and so on) in the converted model.
Header
ets_nt_obj_import.h
Details
This function converts the import model model_ptr, importing it into the specified network model. If ets_model_hndl is not a network model, the current network model is used.
If a site being imported already exists in the network model, the conversion process overwrites the existing object with the imported one. As a result:
- Any links attached to the existing site are destroyed. To retain the links, set
optionstoETSC_NT_IMPORT_MODEL_KEEP_LINKS. - Existing attributes and their values are wiped out. You should save any attributes you want to preserve before calling this function and restore them after the import.