Cancel
Showing results for 
Search instead for 
Did you mean: 

Generate two files in Postbuilder

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello everyone,
would anyone advise me how to set up in the postprocessor that when generating the nc code one code file is created and the other file with some information with its own extension.

Thank you

 

3 REPLIES

Re: Generate two files in Postbuilder

Legend
Legend

It is to generate errors but you can draw on by it of what already exists in Nx , look at ugpost_base.tcl and find 

proc OPEN_files { } {}
@mkn
Production: NX11.0.2.7,VERICUT 7.3.3
Development: Tcl/Tk, Gnuplot
www.deshors-tiremold.com

Re: Generate two files in Postbuilder

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

(more or less) you have a couple options if you want to create a second file.

1) Use standard tcl code to open/write/close the second file
see http://tmml.sourceforge.net/doc/tcl/ (section on "Input/Output")
2) write a 2nd post and use MOM_run_postprocess as/when needed.

 

Personally, I would not use the MOM commands to open/close files & repoint the output file variable as needed.

 

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: Generate two files in Postbuilder

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

How about using the listing-file for the other output, which is already implemented and there is nothing to change in respect to file handling.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Learn online





Solution Information