What TCL code can be added to a Post Builder post to change the output file name to the Program Group name?
1. Use Add Block to create a new Custom Command in Post Builder. Place the Custom Command at the bottom of the End of Program.
2. Add the TCL code seen below to the Custom Command.
The TCL for this is attached below.
ChangingOutputFile.tcl (625 Bytes)3. When the post is run the name of the NC file will be the Program Group name. In this sample the file name will be 1234.ptp.
4. As an added benefit the NC code file will be opened in the editor specified in the Custom Command. Currently the code is set to be opened in Notepad. This can be set in the TCL code.
Notes