Ets_Shape_Attr_Add()
Note: Requires OPNET Development Kit
Abstract
Adds or updates an attribute on a shape.
Syntax
Ets_Shape_Attr_Add (shape_hndl, attr_name, attr_type, attr_value)
| Argument | Type | Description |
|---|---|---|
shape_hndl |
EtsT_Shape_Handle |
Handle to the shape of interest. |
attr_name |
const char * |
The name of the attribute to add. |
attr_type |
EtsT_Attr_Type |
The type of the attribute to add (use the attribute type constants in Table 26). |
attr_value |
const void * |
Pointer to the attribute value. |
Return Type
EtsT_Compcode
EtsC_Compcode_Success or EtsC_Compcode_Failure.
Header
ets_api_shapeset.h
Details
This function adds an attribute of the given name and type to the specified shape. If the attribute already exists, the function replaces the type and value of the existing attribute with those specified by attr_type and attr_value.