NX Changing the NC Output file Location in Post Builder

2024-02-23T20:52:21Z
NX for Manufacturing

Summary


Details

What TCL code can be added to a Post Builder post to change the output file name to the Program Group name?

Platforms
  • all n/a-n/a
Release Versions
  • NX V2312
Solution

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

KB Article ID# PL8772724

Contents

SummaryDetails

Associated Components

Manufacturing Post Builder