cancel
Showing results for 
Search instead for 
Did you mean: 

Customize menus and ribbons

Creator
Creator

Hello everyone,

I have some user functions and i'd like to deploy them in many ways, menus and ribbons.

And the best would that MenuCAD will be only visible from UG_APP_MODELING.

I have read "NXRibbonCustomizationandTransition" from Gtac.  But this document explain only for .rbn customization.

Do someone have an idea for menu deploy on a specific application ?

Best regards

Adrien

7 REPLIES

Re: Customize menus and ribbons

Esteemed Contributor
Esteemed Contributor

Also read the menuscript section of the NX programming help file, which will describe how to create application specific menus.

Best is to search for menuscript in the NX help file.

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

How to Get the Most from Your Signature in the Community

Re: Customize menus and ribbons

Phenom
Phenom

Note that the NX programmer's help isn't installed by default when you install the NX help files. You may need to run the NX help install program again and choose the "programmer's help" option. Alternatively, you can use the online help supplied here (NX 11 version).

Re: Customize menus and ribbons

Creator
Creator

Hello,

 

Thank you for the link very helpfull... For rtb file.

 

Whoever for .men cutomization file, i haven't found what i want...

 

Which file customize the menu (see menu.png)  (difference between UG_APP_NOPART and UG_APP_MODELING)

 

Best regards

 

Adrien

 

 

Re: Customize menus and ribbons

Esteemed Contributor
Esteemed Contributor

Make sure you have the following structure in your menu file location:Custom Menus FolderCustom Menus Folder

In the folder application put the menu file "modeling_only.men" containing the menu entries only useful for modeling.

In the startup folder add the following to your main menu file:

    APPLICATION_BUTTON      UG_APP_MODELING
    MENU_FILES/APPEND       modeling_only.men

That will add the contents of the application specific menu file only if the user enters the application.

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

How to Get the Most from Your Signature in the Community

Re: Customize menus and ribbons

Creator
Creator

Hello,

 

Perfect, I have found the solution thank to "application_button" in ug_main.men

 

It works fine !

 

Thank you

 

Adrien

Re: Customize menus and ribbons

Esteemed Contributor
Esteemed Contributor

It is mandatory to not change the files shipping with NX, since any update can replace them without notice.

It is better to use separate folders pointed to by UGII_SITE_DIR, UGII_GROUP_DIR, UGII_USER_DIR or listed in the file specified by UGII_CUSTOM_DIRECTORY_FILE.

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

How to Get the Most from Your Signature in the Community

Re: Customize menus and ribbons

Creator
Creator

Hello,

 

I have done my work based on NX90Custom.

 

I have define those two variables:

NX_CUSTOM_MENUS=${NX_CUSTOM_LIB}\Menuscript\
NX_CUSTOM_TOOL_BARS=${NX_CUSTOM_LIB}\ToolBars\

 

I also have edit ug_main.men like this : edit_ug_main.men in Menuscript\startup

VERSION 120

EDIT UG_GATEWAY_MAIN_MENUBAR

TITLE NX 9 -  TURCK DELEMONT

MENU UG_APPLICATION

	APPLICATION_BUTTON UG_APP_MODELING
		MENU_FILES Turck_3d_main.men
		
	APPLICATION_BUTTON UG_APP_DRAFTING
		MENU_FILES Turck_2d_main
		
	APPLICATION_BUTTON UG_APP_MANUFACTURING
		MENU_FILES Turck_CAM_main
		
END_OF_MENU

And for toolbars i have edited UG_APP_*.dtx as it's explain in NXRibbon Customization and Transition from GTAC

 

So, based on what i know, in case of update i juste have to replace UG_APP_*.dtx by the newer one.

 

If you have an advice to do an import of juste a specific part of code in initial UG_APP_*.dtx or an other way, let me know...

 

Best regards

 

Adrien