Ets_Obj_Attr_Set()

Abstract

Set the value of a given ETS object’s attribute.

Syntax

Ets_Obj_Attr_Set (obj_hndl, attr_name, val_ptr)
Argument Type Description
obj_hndl_ptr EtsT_Obj_Handle Handle of object of interest.
attr_name char * Name of attribute of interest.
val_ptr void * New value to be set on the attribute of interest.

Return Type

EtsT_Compcode

EtsC_Compcode_Success if the attribute exists and is valid. EtsC_Compcode_Failure otherwise.

ets_api_obj.h

Details

The purpose of this function is to set the value field of a specific attribute of an object. The object need not be installed in a model. You may need to set the model attribute first. You cannot change the following attributes on an uninstalled object: orbit, trajectory.

This function can only set attributes of the types listed below. The client has to know the attribute type. (Use Ets_Obj_Attr_Desc_Type_Get() if in doubt.)

To set an attribute of type… val_ptr must be…
int int
double double
string char *
text list PrgT_List
compound attr obj EtsT_Obj_Handle
toggle int
typed file char *
profile PrgT_Profile_Spec

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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