Macro Language Reference > Macros > Graphic > tgm
  
tgm
Description
Sets PTC ALD to temporary graphics mode, a mode which is mainly used in scripts, where it can be used with the wdb macro to access the current settings for any selected graphic shape.
 
Example 149. Access line color setting for selected graphic
A script using both the wdb and tgm macros is shown below. This places the line color of the selected graphic shape into a variable named ^linecol:
wdb "linecol"
tgm:tglcol
 
Without using tgm only the overall current setting for line color would have been stored in the variable, rather than the setting for the selected shape.
Syntax
tgm macro:b
tgm
[no parameter]
Puts PTC ALD into graphics Draw Mode.
macro
One or more graphics attributes macros whose values are to be displayed. Usually the macros listed here are available from the graphics attributes menu tgprop).
Related Links