Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Prevent post processor output with PostBuilder

Hi,

 

how can i prevent the output of the NC-Code while postprocessing?

I want to creat an pp that only writes attributes for my ShopDoc. Therefore i don´t need any output.

(I´m using PostBuilder and NX 10.3.5) 


Thanks,

 

Rafael

12 REPLIES

Re: Prevent post processor output with PostBuilder

I can see two ways:

 

Change output file to some trash directory using commands:

MOM_close_output_file - to close current output file

MOM_open_output_file - to open new one, somewere in TEMP dir

and in the end of postprocessing:

MOM_close_output_file - to close trash file

file delete - to delete trash file

 

another way is to add:

set mom_o_buffer ""

to PB_CMD_before_output

 

Marek Pawlus, NCmatic

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

Re: Prevent post processor output with PostBuilder

Have you looked at how the "TOOL_LIST(text)" etc posts work?

These are non Post Builder posts that generate Shopdocs on Selected Programs/Operations in order like Posting

OOTB in NX9 & 10 these are commented out.

In the template_post.dat

 

TOOL_LIST(text),${UGII_CAM_POST_DIR}post_tool_list_text.tcl,${UGII_CAM_POST_DIR}post_shopdoc.def
TOOL_LIST(html),${UGII_CAM_POST_DIR}post_tool_list_html.tcl,${UGII_CAM_POST_DIR}post_shopdoc.def
OPERATION_LIST(text),${UGII_CAM_POST_DIR}post_operation_list_text.tcl,${UGII_CAM_POST_DIR}post_shopdoc.def
OPERATION_LIST(html),${UGII_CAM_POST_DIR}post_operation_list_html.tcl,${UGII_CAM_POST_DIR}post_shopdoc.def

 

Re: Prevent post processor output with PostBuilder

Hi,

 

firtst: Thank you for the realy quick reply.

 

Agriva, i think your Tipp will help me. I only have to put my custom commands in these PP an run it. Thanks

 

 

Rafael 

Re: Prevent post processor output with PostBuilder

What a pity, i can not open the tool and operation PP with Post Builder...

So, i will try Marek´s solution.


We will see Smiley Wink

Re: Prevent post processor output with PostBuilder

Shop documentation is not a post-processor, but it is of similar design.

What kind of information is not available in shop doc that you need to use PP?

 

Shop doc is much faster, since it doesn't process the tool path.

With the Excel based shop doc you can also process only selected objects too.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: Prevent post processor output with PostBuilder

[ Edited ]

Hi Stefan,

 

hier is an example output of my ShopDoc. This output is 100% automatic created by NX.

In NX I'm using an user defined start event in my program-group (Folder, eg 1.Step) to define customer, date, drawing no,...

 

There are also some technical terms wich were generated by the PP. Take a look at the attached pdf Smiley Wink

 

 

 

 

Rafael 

Re: Prevent post processor output with PostBuilder

I see, so everything but the travel area and the UDE is available from shop docs.

In your case, I would enable turbo mode in the PP, which is much faster than regular PP output. I would also limit the output to linear motion to get rid of additional overhead.

Afterwards delete the created NC file.

For shop doc, one would need to create a DLL to get the travel area and UDE information.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: Prevent post processor output with PostBuilder


Stefan_Pendl wrote:

 

Afterwards delete the created NC file.


Can I do this with a custom command in my "shopdoc-pp"? 

 

Something like: mom_close_ncfile, mom_delete_ncfile... after M30 ?

Solution
Solution
Accepted by topic author KlausDieSchabe
‎01-18-2017 10:38 AM

Re: Prevent post processor output with PostBuilder

Yes, using commands which I listed for you before:

global mom_output_file_full_name
MOM_close_output_file $mom_output_file_full_name
file delete -force $mom_output_file_full_name

 

Marek Pawlus, NCmatic

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

Learn online





Solution Information