Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Postprocessor - skip first operation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
  1. save the current value of the variable
  2. call the code to create the tool list
  3. reload the variable with the saved value

You will have to do this for any variable you are trying to use without modification.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: Postprocessor - skip first operation

Legend
Legend

What about after the tool list trying?

 

global mom_your_variable_name

catch {unset mom_your_variable_name}

Glenn Balon
Production: NX 12.0.2 MP7 Primarily CAM

Re: Postprocessor - skip first operation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Somewhere I saw code to save/restore all  the "globals" around a shop docs call - was it in one of the weekly symptoms/solutions articles?  I'll try to track it down.

 

The other option (that I would use) is to write a small, separate post, that JUST creates the tool list.

Then use "MOM_run_postprocessor" to run that instead.  You'll have to fold the output file back into the original post's output file, so, depending on your knowledge of tcl, it may be a case of "choosing your poison" ;-)

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: Postprocessor - skip first operation

Creator
Creator

Thanks all for the help.

 

Catching and setting the op_type variable after the tool list call has solved the issue.  I appreciate all the information.

 

David

Re: Postprocessor - skip first operation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Finally found the code I remembered to save/restore tcl variables around a "shop docs" call.

See this thread:

https://community.plm.automation.siemens.com/t5/Discussion-Forum-NX-Manufacturing/Machine-time/m-p/4...

 

2 procs in one of the replies:

PB_CMD_StoreMomVars {}

PB_CMD_RestoreMomVars {}

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: Postprocessor - skip first operation

Creator
Creator

Thanks Ken, I'll take a look at it.

 

dc

Learn online





Solution Information