Adams Basic Package > Adams View > View Command Language > interface > interface object_table set row

interface object_table set row

Allows you to alter the contents of single or multiple rows 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 row properties of a object_table can be edited using this command.

Format:

 
interface object_table set row
object_table_name =
A Exisitng GI_otable
use_row_selected=
True_only
row_range=
Integer
object_rows=
An Existing Entity
new_row_entity =
An Existing Entity
row_action =
Row_action
strings =
String

Example:

 
interface object_table set row &
object_table_name =
.gui.obj.objt &
row_range =
.model_1.PART_3.LINK_2 &
new_row_entity =
.model_1.PART_2.LINK_1 &
row_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
Use_row_selected
True_only
Specifies a row to be altered
row_range
Integer
Specifies the range of multiple rows to be altered
object_rows
An Existing Entity
Specifies the object name listed in the row
new_row_entity
An Existing Entity
Specifies the new object which will be added to the table
row_action
Row_action
Specifies the mode of insertion of new row
Strings
String
Specifies the new contents of the cells in a modified row

Extended Definition:

1. The cells to be altered are initially addressed by the ‘object_table name’. Next, the rows to be altered are marked by various choices like, ‘use_row_selected’, ‘row_range’, and ‘object_rows’.
2. Specifying ‘row range’ allows to modify the contents of multiple cells in a row. For example, row range = 1,2 will change all the cells in rows 1,2.
3. Alternatively, the row can be marked by the name of the ‘object’ contained within the row.
4. The row can be altered in two ways, namely, 1) ‘string action’ and 2) ‘object_action’.
5. The choice ‘string action’ will replace all the contents in that row with the new contents specified. On the other hand if the ‘object action’ is specified, then keeping the ‘field for columns’ same all the contents of the row for old entity will be replaced with values of ‘field for column’ for the new entity mentioned.
For example, in the example above, the entity listed in the row is ‘i_marker’ for entity ‘PART_3.LINK_2’ under ‘model_1’. With the execution of the command, the field for the columns will be replaced by the similar values for the ‘PART_2.LINK_1’ under ‘model_1’.
6. The mode of insertion of the new row contents depends on the choices like ‘before’, ‘after’, ‘delete’ or ‘replace’ denoted by the parameter ‘row_action’.