cancel
Showing results for 
Search instead for 
Did you mean: 

Postprocess List Output Default Editor

Valued Contributor
Valued Contributor

Is it possible to specify/change the default editor used by NX CAM when postprocessing a toolpath?

 

NX appears to use a modified version of Windows notepad.

 

Can I specify a different editor (Cimco Edit for example)?

 

Thank you for yourtime.

7 REPLIES

Re: Postprocess List Output Default Editor

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

It can be done by customising your postprocessor.

At the end of posting you can start your favourite editor using command like:

open "|C:/CIMCO/CIMCOEdit7/CIMCOEdit.exe $mom_output_file_full_name"

And in NX uncheck "List Output" option in postprocessing dialog

 

Marek Pawlus, NCmatic

Production: NX 11.0.2
Development: C#, Tcl/Tk, CSE

Re: Postprocess List Output Default Editor

Valued Contributor
Valued Contributor

NX Rules!

 

Thank you Marek.

Re: Postprocess List Output Default Editor

Esteemed Contributor
Esteemed Contributor

Note you probably want to "MOM_close_output_file $mom_output_file_full_name" before opening it in your editor...

 

Also note the "List output" checkbox keeps re-checking itself (change your part, change your post, etc.).

So keep an eye on it.

 

 

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


Re: Postprocess List Output Default Editor

Valued Contributor
Valued Contributor

I'm able to start the editor but TCL is interpreting the Windows path separators as command separators.

 

Here is my code (using notepad.exe for testing):

 

proc notepad_edit {} {

global mom_output_file_full_name

MOM_close_output_file $mom_output_file_full_name

open "|C:/Windows/System32/Notepad.exe $mom_output_file_full_name"

}

 

I call this proc at the end of LIB_GE_command_buffer_seq MOM_end_of_program_LIB END_OF_PROGRAM

using a Post Configurator postprocessor. 

 

For example file is located at:

 

c:\data\programfile.h

 

which is the value in mom_output_file_full_name

 

however when editor starts it is trying to load:

 

C:\Program Files\Siemens\NX10.0\UGII\Dataprogramfile.h

 

which it can't find.

Re: Postprocess List Output Default Editor

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

This is how it works on my sample.

But I use Post Builder...

 

global mom_output_file_full_name

set file_to_open $mom_output_file_full_name

MOM_open_output_file $file_to_open
MOM_close_output_file $mom_output_file_full_name

regsub -all {\\} $file_to_open {/} file_to_open
regsub -all { } $file_to_open {\ } file_to_open

open "|C:/Windows/System32/Notepad.exe $file_to_open"

 

 

Marek Pawlus, NCmatic

Production: NX 11.0.2
Development: C#, Tcl/Tk, CSE

Re: Postprocess List Output Default Editor

Valued Contributor
Valued Contributor

Hi Marek,

 

Thank you for your reply and the regsub code.

 

Works perfectly in the Post Configurator postprocessor!

Re: Postprocess List Output Default Editor

Valued Contributor
Valued Contributor

Hi Ken,

 

Thank you for your reply.

 

Sorry for the delay.

 

Learn online





Solution Information