*executetclscript()
Executes a Tcl script from within a template, and optionally calls a procedure defined in the script.
Syntax
*executetclscript (filename, proc_name)
Type
HyperMesh Template Command
Description
Executes a Tcl script from within a template, and optionally calls a procedure defined in the script.
This command should be called in the *before() section.
Inputs
- filename
- Full path of the Tcl file to be executed. The path should be always defined with two back slashes.
- proc_name
- Name of the procedure to be executed. If not required, use two empty quotes.
Example
To execute a Tcl file
C:\TclScripts\test.tcl”
without a call to specific procedure:*executetclscript("C:\\TclScripts\\test.tcl","")
To execute a Tcl file
C:\TclScripts\test.tcl
and
call a procedure named TestProc:*executetclscript("C:\\TclScripts\\test.tcl","TestProc")