TmRestoreTemplate Function
Restores a saved VDA Tool template.
Usage
status = TmRestoreTemplate(tool_name, filename)
Parameters
tool_name—A string containing the unique name of a VDA Tool.
filename—String containing name of the file storing the saved template.
Keywords
None.
Returned Value
status—A returned value of 1 indicates success; 0 (zero) indicates failure.
Discussion
A template is a VDA Tool without any data associated with it. The template contains all of the modifications to the VDA Tool—colors, axes, graphical elements—that were set when the template file was saved.
When a VDA Tool is saved with TmSaveTools, it can be restored in two ways: using TmRestoreTools or TmRestoreTemplate. TmRestoreTools restores the entire VDA Tool, including the data associated with it. TmRestoreTemplate restores the VDA Tool, but it does not restore any data that was associated with the VDA Tool when it was saved.
Example
status=TmRestoreTemplate(tool_name, 'saved_template.xdr')
See Also