TmAddSelectedGrael Procedure
Adds a graphical element to the graphical element selection list.
Usage
TmAddSelectedGrael, tool_name, grael_name
Parameters
tool_name—A string containing the unique name of a VDA Tool.
grael_name—A string containing the name of the graphical element to add to the graphical element selection list.
Keywords
None.
Discussion
The graphical element selection list enables graphical elements to be cut, copied, pasted, and deleted from VDA Tools. To get a list of graphical elements associated with a given VDA Tool, use the TmEnumerateGraels function. To see which graphical elements are currently on the selection list, use TmEnumerateSelectedGraels.
If the grael_name is selected (on the selection list), no action is taken.
Example
The following commands get the names of the items associated with a VDA Tool, then add one of the items, a graphical element (rectangle), to the selected list.
PRINT, TmEnumerateGraels('WzPlot_0')
TM_WINDOWID TM RECTANGLE LINE AXIS LEGEND TEXT MENUBAR 
   BUTTONBAR MESSAGE XX TM_HELP AXIS_0 AXIS_1 TM_DRAWING 
   RECTANGLE_0 LINE_1 GROUP_0
TmAddSelectedGrael, 'WzPlot_0', 'RECTANGLE_0'
PRINT, TmEnumerateSelectedGraels('WzPlot_0')
   RECTANGLE_0
See Also