Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding a Menu Item

Status
Not open for further replies.

phillpd

Mechanical
Oct 19, 2006
780
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 ?

NX 6.0.5.3 (NX 8 Testing)
Windows XP32 (Windows 7 64)
 
Replies continue below

Recommended for you

RMB on the toolbars - choose customize - now right mouse button the file new button - delete.
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

 
We're implementing a PLM solution and we'd prefer users to create new files within PLM.

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)
 
Rather than hiding the File -> New... menu itme, why not just change the 'default action' to call your custom application.

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
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
 
You're correct, that would be a better solution.

Thank you.

NX 6.0.5.3 (NX 8 Testing)
Windows XP32 (Windows 7 64)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor