cancel
Showing results for 
Search instead for 
Did you mean: 

How to skip an operation while postprocessing

Creator
Creator

Hi there!

I have a question concerning postbuilder and I want to skip an output of "MILL_CONTROL" or any other operation if it is the first operation in a list. Is there any command which allows implementing it? with respect, Alex.

6 REPLIES

Re: How to skip an operation while postprocessing

Esteemed Contributor
Esteemed Contributor

Do you want to skip ALL output, or just the tool change / initial  move / gohome stuff?

 

global mom_operation_type
global alex_t_machine_ctrl_flag

#MOM_output_to_listing_device "$mom_operation_name - Type = $mom_operation_type"
	
# See if "machine control" op
set alex_t_machine_ctrl_flag 0
if {[EQ_is_ge [string first "Machine Control" $mom_operation_type] 0]} {
	set alex_t_machine_ctrl_flag 1
}


Put in "start of path" event, as the very first thing the vaiable "alex_t_machine_ctrl_flag" to test if it is or is not a "machine control" operation

 

From there forward, you can use

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: How to skip an operation while postprocessing

Creator
Creator

Thanks for your help! Sorry, I am newbie here but could you explain what I should write in order to skip all the operation

Re: How to skip an operation while postprocessing

Creator
Creator
Anybody knows how to skip the whole operation?please help

Re: How to skip an operation while postprocessing

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

I see three ways for this.

For each of them you need some basic understanding of MOM events in general

 

1.

use MOM_abort_event in every event, together with recognition if it is operation which you want to skip or not.

The recognition might look similar to what Ken suggested

- in this case all procedures in the event after MOM_abort_event are skipped! - you should keep it in mind

 

2.

use PB_CMD_before_output. You can set mom_o_buffer to empty string in operations which you want to skip

- in this case all procedures in the operation are NOT skipped! only output is suppressed - you should keep it in mind

 

3.

use MOM_post_oper_path to postprocess only operations which you want.

 

Marek Pawlus, NCmatic

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

Re: How to skip an operation while postprocessing

Creator
Creator
Many many thanks!!! Both of you for your help and for a powerful incentive to study
Postbuilder!

Re: How to skip an operation while postprocessing

Esteemed Contributor
Esteemed Contributor

If I remember correctly, there is also MOM_skip_to_event, but I don't know in which NX release this was introduced.

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: NX12.0

How to Get the Most from Your Signature in the Community

Learn online





Solution Information