cancel
Showing results for 
Search instead for 
Did you mean: 

Post Processing each group of programs to separate file with same name of group

Experimenter
Experimenter

Hello!

 

How I can add GROUP_NAME of programs to OUTPUT_FILE_NAME when post processing?

 

I have groups of programs:

 

programs_1

programs_2

 

I want see in File Name (input box) path like a:

 

c:\prgms\part1_programs_1

 

and when post processing programs_2 group:

 

c:\prgms\part1_programs_2

 

with extensions of post (mpf)

 

I don't want make this changes manual.

 

Thank you.

10 REPLIES

Re: Post Processing each group of programs to separate file with same name of group

Esteemed Contributor
Esteemed Contributor

There are 2 procs you probably want to add handlers for:

MOM_start_of_group

MOM_end_of_group

 

Then you can use MOM_close_output_file and MOM_open_output_file (and reset variables mom_output_file_full_name and, if needed, ptp_file_name)

Use variable mom_group_name to get the nam eof the grop

 

Be careful if there are other groups within the top level groups.

 

Ken

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: Post Processing each group of programs to separate file with same name of group

Experimenter
Experimenter

Thank you Ken_A!

 

In *.tcl file:

 

#### Listing File variables

set mom_sys_list_output "OFF"

set mom_sys_header_output "OFF"

set mom_sys_list_file_rows "40"

set mom_sys_list_file_columns "132"

set mom_sys_warning_output "OFF"

set mom_sys_group_output "OFF"

set mom_sys_list_file_suffix "lpt"

set mom_sys_output_file_suffix "mpf"

set mom_sys_commentary_output "ON"

set mom_sys_commentary_list "x y z 4axis 5axis feed speed"

 

When I change "mpf" to "nc" in *.tcl

 

File Extenstion interactivelly changed when I choose another postprocessor.

Is it possible change File Name like File extension?

 

Thank you!

Re: Post Processing each group of programs to separate file with same name of group

Esteemed Contributor
Esteemed Contributor

The other thing I forgot to mentin (I don't use it) is "Output Settings" -> "Other Options" -> check the "Generate group output"

 

Not sure what it does, but you could check it out

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: Post Processing each group of programs to separate file with same name of group

Master
Master
I have been in on conversations about this before in the old forum but cannot find through the search, those threads. But what I remember is that if you use the group output setting it outputs a file for each program group folder you have in the operation navigator. Correct me if I am wrong and this was in NX 6and7.
Shags72 Mfg. Eng.
Windows 7 Pro 64bit
NX 8.5.2.3 MP3 Teamcenter 8
Dell M6700 i7-3740QM 8GB RAM,
NVIDIA Quadro k3000M

Re: Post Processing each group of programs to separate file with same name of group

PLM World Member Pioneer PLM World Member Pioneer
PLM World Member Pioneer

Hello

 

You can use attached jurnal for posprocesing, in this jurnal you must edit line with name_of_post with name of your post as is in template_post.dat

 

You can also rename what extension you want (in example is .h)

 

When you post, journal first ask for folder, then he automaticly post all groups you select and if programs exist, programs will be automatically overwriten

 

I hope the journal helpsSmiley Happy

Re: Post Processing each group of programs to separate file with same name of group

Phenom
Phenom

The "Generate Group Output" inside post builder will cut off and split up the output - with the name of the group appended. This method will not print out header and trailer in each program - but you could get that to happen with the group events (putting header/trailer in there.) The journal would be a good approach too.

NX10.03
Windows 7 Pro

Re: Post Processing each group of programs to separate file with same name of group

Genius
Genius

Hi all,

 

I have tested this journal on NX8.5  and Windows 7 and it works perfect.

But on NX9.0.2 and Windows 8.1 dosen't work, error on line 65. Why this error? How can be solved?

 

macro code error.jpg

Re: Post Processing each group of programs to separate file with same name of group

If works fine in NX9.0.3MP2 on Windows 7, so I suspect it has to do with Windows 8.

Mark Rief
Retired Siemens

Re: Post Processing each group of programs to separate file with same name of group

Genius
Genius

Hi Mark,

 

How could I change the code for launching it on Windows 8.1?

 

Thanks.

Learn online





Solution Information