A manufacturing file is posted from
NX CAM using
Post Builder. After the
G-code file is generated is it possible to have the output automatically open in a third party
NC Editor? Below is a picture of the
G-code opened in
WordPad for demonstration purposes.
Solution
1. Add the following
TCL code to a
Custom Command created in the
Post Builder End of Program procedure. The code below will launch
WordPad. The
exec path will need to be changed to launch the correct editor.
global ptp_file_name
MOM_close_output_file $ptp_file_name
catch {exec "C:\\Program Files (x86)\\Windows NT\\Accessories\\wordpad.exe" $ptp_file_name} resp
if { $resp != "" } {
set resp [MOM_display_message "$resp" "Editor Error:" Q OK]
}2. When posting leave the
List Output option unchecked. This will prevent the
NX Information window from being displayed after the
NC Editor is opened. This option can be turned off as the default setting by going to
Customer Defaults -> Manufacturing -> Output -> List Output.
Notes and References
Hardware/Software Configuration
Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: CAM
Version: V1863
Function: POSTBUILDER
Ref: 001-9488184