hm_runcommandfile
Runs a HyperMesh command file specified by a complete path and filename.
Syntax
hm_runcommandfile filename ?prompt?
Type
HyperMesh Tcl Query Command
Description
This command can be used to execute a HyperMesh command file (*.cmf) from within aTcl script. In the case there is an error in one of the lines of the command file, the command execution continues without prompting if the user wants to continue.
Inputs
- filename
- The full path and filename of the command file. Note that forward slashes (/) are required in the path and filename, the name must be wrapped in curly braces {}, or the backwards slash (\) must be escaped. Paths with spaces must be enclosed in quotes or curly braces. These are Tclrequirements.
- prompt (optional)
- Argument specifying whether to ignore the *answer command in the command file (default, 0) or to honor the *answer command when present (1).
Examples
To run the command file command1.cmf in folder C:/solidedit:
hm_runcommandfile C:/solidedit/command1.cmf
or
hm_runcommandfile {C:\solidedit\command1.cmf}
or
hm_runcommandfile C:\\solidedit\\command1.
To run the command file command1.cmf in folder "C:/solid edit:"
hm_runcommandfile "C:/solid edit/command1.cmf"
or
hm_runcommandfile {C:/solid edit/command1.cmf}
Errors
None.
Version History
9.0