Ets_Topo_Object_Count_Get()
Abstract
Returns the number of objects of the specified type which are members of the specified model.
Syntax
Ets_Topo_Object_Count_Get (model_hndl, obj_mtype)
| Argument | Type | Description |
|---|---|---|
model_hndl |
EtsT_Model_Handle |
Handle to the (network) model. |
obj_mtype |
“EtsT_Obj_Type“ |
Value specifying the type or meta-type of member objects (one of the values in Table 33 “General Sub-Package Symbolic Constants“ on page 1046). |
Return Type
int
Number of member objects of the specified type.
Header
ets_api_topo.h
Details
The member objects of a network model are the nodes, subnets, links, and annotations that have be installed (indirectly) into the model as well as the model’s top subnet itself. Currently, only network models have constituent objects.
The obj_mtype argument can be either a specific object type (e.g., EtsC_Obj_Type_Node_Fix) or a general object meta-type (e.g., EtsC_Obj_Mtype_Link).
The function Ets_Topo_Object_Get() will return an ETS object handle for each of the counted objects when called with the same model, the same object type, and an index ranging from zero (inclusive) and the count (exclusive).