Reference Guide > T Routines > TmEnumerateAttributes Function
  

TmEnumerateAttributes Function
Obtains the attributes for a specified graphical element, variable, or other item in a VDA Tool.
Usage
attr_list = TmEnumerateAttributes(tool_name, item)
Parameters
tool_name—A string containing the unique name of a VDA Tool.
item—A string containing the name of a graphical element, variable, or other item in the VDA Tool.
Returned Value
attr_list—A string array containing the names of the attributes that were set for the specified item.
Keywords
None.
Discussion
Items like graphical elements and variables can have attributes associated with them. Each attribute can have a value. For example, a line’s attributes might include linestyle, line thickness, color, and others. This function simply lists all the attributes associated with a specified item in a VDA Tool.
To obtain a list of all the items currently associated with a VDA Tool, use TmEnumerateGraels. To obtain a list of variables, use TmEnumerateVars.
Example
The following commands list the graphical elements and items associated with a VDA Tool. Then, the attributes for one of those items, an axis, is printed using TmEnumerateAttributes. Each attribute has a value that can be obtained with TmGetAttribute and set with TmSetAttribute.
; List graphical elements and items associated with unique VDA
; Tool WzPlot_2.
PRINT, TmEnumerateGraels('WzPlot_2')
   TM_WINDOWID TM RECTANGLE LINE AXIS LEGEND TEXT MENUBAR 
   BUTTONBAR MESSAGE WZPLOT_2_VAR0 TM_HELP AXIS_0 AXIS_1 
   TM_DRAWING
; List the attributes associated with the graphical element
; AXIS_0 that is associated with WzPlot_2.
PRINT, TmEnumerateAttributes('WzPlot_2', 'AXIS_0')
   BMARGIN STYLE TM TYPE TMARGIN SIZE ISLIT MOTION NB_HANDLES
   FONT NMIN THICK LMAJ MIN PLACE COORD_SYS LSTYLE RANGE NMAJ MAX 
   COORD COLOR
See Also
TmGetAttribute, TmSetAttribute

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.