interface object_table set column
Allows you to alter the contents of single or multiple columns in a object_table
The object_table is used to list one or more types of objects in a modeling environment. For example, a type of entities like link, center_marker or properties like mass, inertia can be selectively listed and displayed using this command. The objects listed can be edited, or copied as required.
The column properties of the object_table can be edited using this command.
Format:
interface object_table set column |
|---|
object_table_name = | A Exisitng GI_otable |
column_width = | Integer |
use_column_selected = | True_only |
column_range = | Integer |
field_name_of_column = | String |
string = | String |
action = | Col_action |
Example:
interface object_table set column & |
|---|
object_table_name = | .gui.obj.objt & |
column_width = | 5 & |
column_range = | 1,2 & |
strings = | new_str & |
action = | replace |
Description:
Parameter | Value Type | Description |
|---|
object_table _name | An Existing GI_otable | Specifies the name of the object_table in which the cells are to be altered |
column_width | Integer | Specifies a new width for the columns |
use_column_selected | True_only | Specifies the columns in which cells are altered |
column_range | Integer | Specifies the range of columns in which the cells are to be altered |
field_name_of_column | String | Specifies the column in which the cells are altered by entering the field name |
string | String | Specifies the new contents of the cell |
action | Col_action | Specifies the mode of insertion of new contents |
Extended Definition:
1. The cells to be altered are initially addressed by the ‘object_table name’. Next, the columns to be altered are marked by various choices like, ‘use_column_selected’, ‘column_range, and ‘field_name_of_ columns’.
2. The width of the columns can be changed by entering a new value of ‘column_width’. The column width can be specified in units like mm or inches. If not specified, the unit for the parameter field will be the default length unit.
3. All the cells in a column are selected with the choice ‘use_column_selected’
4. Specifying ‘column range’ allows to modify the contents of multiple cells. For example, column range = 1,2 will change all the cells in column 1,2.
Alternatively, a column can be selected by specifying the ‘field name for the column’. For example, to rename cells in column ‘i_marker’ (which is field_name_of_column) the ‘field_name_for_column’ = i_marker.
The parameter ‘string’ specifies the new contents of the respective cells. The mode of insertion of the new contents depends on the choices like ‘append’, ‘prefix’ or ‘replace’ denoted by the parameter ‘action’