How to make a command icon, added to the Ribbon Interface Tool Bar via a customized '.men' file, use a command favorite?
Solution
1. Create the command favorite interactively in NX, this creates the 'Favorites' folder containing the '.fav' files.
2. Edit the add-on menu (.men) file to reference the favorite, by adding:
'
, FAVORITE="<name_of_fav_file>"' to the end of the line that defines the button.
An example of the syntax is shown below, in the out-of-the-box '
ug_main.men', in this case a favorite is used by the 'Simple Distance' command:
BUTTON UG_INFO_SIMPLE_GEOMETRIC_DISTANCE
PRIMARY=UG_INFO_GEOMETRIC_DISTANCE,FAVORITE="SimpleDistance"
(Note: The command should be all on one line.)
Notes and References
Hardware/Software Configuration
Platform: INTL64
OS: windows
OS Version: 1064
Product: NX
Application: SYSENG
Version: V12.0
Function: UI_TOOLS
Ref: 001-8313657