Cancel
Showing results for 
Search instead for 
Did you mean: 

Post Builder Procedure/Event Handler Modification

Valued Contributor
Valued Contributor

Confused about how to modify the proceedure MOM_initial_move.

 

Created a PB_CMD_initial_move Custom Command with changes, but it did not work.

 

Then tried "hacking" the tcl file directly without using Post Builder which worked but when I made other changes to the post with Post Builder the previous hack reverted back to the OOTB version??

 

Can someone explain how Post Builder knows how to change my hack??

 

Sorry if this has already been discussed, I could not find any post abiout this.

 

Thank you for your time.

4 REPLIES

Re: Post Builder Procedure/Event Handler Modification

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

You need to add your custom command to the initial move event, see image below.

 

PbInitialMove.PNGPB Initial Move Event

The procedure is not called if it is not assigned to an event.

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: Post Builder Procedure/Event Handler Modification

Gears Phenom Gears Phenom
Gears Phenom

Why?  What are you trying to acomplish?

John Joyce, Manufacturing Engineer,
Senior Aerospace

NX 11.0.2.7 Vericut 8.0.3 - Statements and opinions are mine alone and do not reflect
the opinion of my employer or any other member of the human race

Re: Post Builder Procedure/Event Handler Modification

Siemens Legend Siemens Legend
Siemens Legend

If you want to edit one of the system procs you need to capture it in a proc, bind to Start of Program and uplevel it. Then you can add anything you want to it.

ScreenHunter_01 Jun. 01 08.31.gif

Re: Post Builder Procedure/Event Handler Modification

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Note on Mike's response:

Some procedures are re-defined in every operation to the "post builder created" version.

So you have to re-define YOUR version in  the "start of path" event

So if you "uplevel" but still don't get what you want, put a couple "MOM_output_text" (or whatever) in your proc, and the Siemens supplied one (edit the tcl file directly) to see which is being used.

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


Learn online





Solution Information