Hiding a Menu Item
Hiding a Menu Item
(OP)
I'm looking to hide the File->New option.
Using a custom MEN file, I can add the line "HIDE UG_FILE_NEW". And that works.
But, how to also hide the toolbar icon ?
Using a custom MEN file, I can add the line "HIDE UG_FILE_NEW". And that works.
But, how to also hide the toolbar icon ?
NX 6.0.5.3 (NX 8 Testing)
Windows XP32 (Windows 7 64)





RE: Hiding a Menu Item
Of course a user is able to insert the command again, i dont know if its possible to permantly remove the file-new button?
Best regards,
Michaël.
NX7.5.4.4 + TC Unified 8.3
RE: Hiding a Menu Item
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum: http://www.plmworld.org/p/cm/ld/fid=209
To an Engineer, the glass is twice as big as it needs to be.
RE: Hiding a Menu Item
Obviously the PLM solution has a file new option (inside NX), we'd just prefer to ensure that that's the option the user uses.
NX 6.0.5.3 (NX 8 Testing)
Windows XP32 (Windows 7 64)
RE: Hiding a Menu Item
This can be done using something called MenuScripts.
Note that while MenuScripts was the mechanism we used before we added the Customize tools to edit the Menu and Toolobar items, it still can used today, particularly for something like what you're proposing, changing what a menu item does, or adding a pre- or post- action to a menu item.
If you go to NX Help and search on 'menuscript' you will find the information that you need to set this up. The big advantage of using MenuScripts over using only Customize, is that it's easier to prevent the average user from undoing this since it's done at a level where the changes are made to NX as it starts up so as far as the user is concerned, this is how NX is supposed to work and he will never know the difference as long as you don't give him WRITE access to where the 'MenuScript' files are located.
Anyway, long term for something like this, MenuScripts are the preferred approach.
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum: http://www.plmworld.org/p/cm/ld/fid=209
To an Engineer, the glass is twice as big as it needs to be.
RE: Hiding a Menu Item
Thank you.
NX 6.0.5.3 (NX 8 Testing)
Windows XP32 (Windows 7 64)