LIB_GE_command_buffer_edit_remove MOM_end_of_program_LIB END_OF_PROGRAM OOTB_T0 OOTB_M6
I think you just have to edit the settings of the tool change section to not output a tool change at the end of the program.
No need for buffer voodoo ;-)
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
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide