Cancel
Showing results for 
Search instead for 
Did you mean: 

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

Genius
Genius

For windows 8.1 on line 65 change to system.windows.forms.dialogresult.OK

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

Creator
Creator

Is there any way to select multiple operations and postprocess each operation to a separate file ?

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

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

If you try to do this (select multiple operations), NX will create a group for the set of operations you select.

I would tend to create the groups before hand & select the group I want to post instead.

 

Post can split output into separate files (based on whatever logic you want to employ) but that code is up to you.

 

Note Post builder has an option (Output settings -> Other options) "Generate group output"

I think that works on groups, not operations, but you can always turn it on & see what happens.

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

Creator
Creator

I understood that I have to modify the post so that it will split the file creating one for file for each operation...but how do I modify the post ?

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

Phenom
Phenom

Can you show us your iso file ?

Production: NX11.0.2.7,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot
www.adgroupe.com

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

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

If you are not given the .PUI, then you have to hand code everything - most likely all the changes will be in the .tcl file

 

You will need to edit these 2 functions (at least)

proc MOM_start_of_path { } {...}

proc MOM_end_of_path { } {...}

 

You will need to use these commands (at least)

MOM_close_output_file
MOM_open_output_file

 

You will (probably) want to deal with these variables, among others:

mom_output_file_basename
mom_output_file_directory
mom_output_file_full_name
mom_output_file_suffix

 

You will also have to figure out how to write the "master" file (the one that calls each operation's file).

 

Basic process flow:

In MOM_start_of_path:

-- close any output file currently open

-- figure out the new output file name & set the variables

-- open the new file

-- write whatever "header" you want to the file

 

in MOM_end_of_path:

-- finish any writing you need to do (e.g. M30 vs. M99 vs...)

-- close the output file

 

You will need to learn tcl

You will need to learn what variables & procedures are available

(see here for the list for NX10: https://docs.plm.automation.siemens.com/tdoc/nx/10/nx_help#uid:index_xid917284:xid913731:xid915199)

 

Hopefully you don't have "listing file" output turned on.  If you have it turned on, you will have to deal with the listing file stuff as well...

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

Creator
Creator

yes I have the .pui

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

Phenom
Phenom

not the *.pui file but iso file (*.fid result of postprocessing) , I don't know postbuilder , but i can help you for a solution in pure tcl...

Production: NX11.0.2.7,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot
www.adgroupe.com

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

Creator
Creator

Here's the iso.

 

I included the iso generated for a single operation (1_operation.fid) and the iso generated for a group of 5 operations (5_operations.fid)

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

Phenom
Phenom

To begin:

Output in program group (5_operations.fid)

MOM_start_of_operation or MOM_start_of_path -> tag + the name of operation

MOM_end_of_operation or MOM_end_of_path ->tag

It's more easy for filter

eg:

<begin_tag>
(OPERATION_NAME=ROUGH)
N7G00X125.579Y36.239Z177.716A-56.649C-57.935
N8G00X-68.181Y-85.14Z27.237
N9G01X-110.655Y-111.748Z-5.749M08
N...
<end_tag>
<begin_tag>
(OPERATION_NAME=ROUGH_1)
N7G00X125.579Y36.239Z177.716A-56.649C-57.935
N8G00X-68.181Y-85.14Z27.237
N9G01X-110.655Y-111.748Z-5.749M08
N...
<end_tag>
...
Production: NX11.0.2.7,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot
www.adgroupe.com

Learn online





Solution Information