Ets_Nt_Subnet_Grid_Properties_Set()
Abstract
Sets the new value on the specified grid property on the ETS subnet object.
Syntax
Ets_Nt_Subnet_Grid_Properties_Set (subnet_hndl, op_code, …)
| Argument | Type | Description |
|---|---|---|
subnet_hndl |
EtsT_Obj_Handle |
Handle of the object of interest. |
op_code |
EtsT_Nt_Grid_Prop_Op |
Identifies the property to be set and specifies the type of the next value. |
… |
Vartype (must match the property to be set) |
Value to be set on the property. |
Return Type
EtsT_Compcode
EtsC_Compcode_Success if the property exists and the value is valid. EtsC_Compcode_Failure otherwise.
Header
ets_api_nt.h
Details
The subnet must be installed in an ETS model in order for the grid properties to be set.
The op_code specifies which property is to be set. Each property accepts only one type of value. The properties and corresponding value data types are listed below.
| Property | Data Type of Value |
|---|---|
EtsC_Nt_Grid_Division_Automatic |
boolean |
EtsC_Nt_Grid_Division_Op |
double |
EtsC_Nt_Grid_Draw_Style_Op |
EtsT_Nt_Grid_Draw_Style |
EtsC_Nt_Grid_Color_Op |
EtsT_Nt_Grid_Draw_Color |
EtsC_Nt_Grid_Resolution_Op |
double |
EtsC_Nt_Grid_Units_Op |
EtsT_Nt_Grid_Unit |