Customize menu with a journal file

Hello,
I contact you because I'm making an application that has to gide the user in the drawing of a scketch. For the application is important that the user uses only scketch features like lines, arcs, ecc... and for this, I want o do manage the NX menu.
The target for my application is that the user pushes a button in the NX standard menu, the previous menu disapears and appears a new menu with only scketch features. Again, when the users pushes another button in this new envirompment, the new menu disapears and apears the standard one. I need to write this tool in a .vb file because the program must do authomatic operations when the menu is opened and even when it is closed by the user.
Thank you.

Why not use the "sketch in task environment" to create the sketch? This will place the user in a special sketching mode that limits them to using sketch tools. When your journal is started, it could take any actions necessary, then start the sketch task environment.

I need to do authomatic operations when the user opens the scketch and even when he close it. For this reason I thought to use a button to start the application with a journal that sets the envirompment for the user (also with some component of the scketch that are automatically built) and when the user wants to close the scketck he can use only a button, this because the program has to memorize, complete the scketch and save it.
I can do all of these operation with the standard scketch envirompment?

It may be possible to create some callback functions that hook into NX to get what you want. An alternative is to write your own custom "task environment" for NX (similar to routing, drafting, etc) for which you will have more control.

However, both options are beyond what you can do with journaling alone. You would need an author license to compile the code and run it as part of NX.

I have an Author license, and I can also write my custom task enviromment, but I don't know if it is possible call it with a journal or simply pushing a button in the standard menu. There is a way to change the .men file used by NX, with a journal file (or with a custom button), without closing the CAD?
Because I've seen that exists some module that changes the environment without closing NX, and I'm angry because I can't do that! :)

I think NX only reads the .men files at startup (i.e. you can't modify them "on the fly"). If you have written your custom task environment, put your code and the modified .men file in the startup folder. When NX starts it will read your customizations and make it available in the session. The custom button or menu entry would call your .dll directly, there is no need for a separate journal to start your custom code.