NX85 - remove a menu command?
NX85 - remove a menu command?
(OP)
Is it possible to remove an NX menu command for all users ?
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
NX85 - remove a menu command?
|
RE: NX85 - remove a menu command?
Exactly what is it that you're looking to remove?
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: NX85 - remove a menu command?
To make things even more "simple" that menu item should be unaccessible for all users sharing our common NX customization (based the Startup folder, Application folder, etc.).
RE: NX85 - remove a menu command?
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: NX85 - remove a menu command?
RE: NX85 - remove a menu command?
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: NX85 - remove a menu command?
I'd recommend the commenting option rather than deleting it entirely from the file; this makes it easy to revert back if needed. Marking a line as a comment usually involves adding a special character at the beginning of the line. In the .men files I think it is the "!" character; there should be other comments in the file, just follow suit.
Either route you take, make a backup copy of the original file before editing it.
www.nxjournaling.com
RE: NX85 - remove a menu command?
I have tried the folowing place in a ".men" file but it does not work - any idea is welcome:
EDIT UG_GATEWAY_MAIN_MENUBAR
HIDE UG_FILE_SAVE_ALL
Thank you.
RE: NX85 - remove a menu command?
Some concerns:
Existing mtx files may still display the menu option if it had been previously displayed.
The key accelerator will still work for the operation so "finger memory" could be a loophole.
A variant would be to use the "edit" .men file to redefine the bitmap (do not use) and redefine the action to "redirect to a web page explaining that the function is intentional removed". This would insure that loopholes did not perform the original operation.
CODE --> .men
HTH, Joe
RE: NX85 - remove a menu command?
Regards,
Tomas
RE: NX85 - remove a menu command?
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: NX85 - remove a menu command?
RE: NX85 - remove a menu command?
I've made this .men file :
CODE -->
When press the save button a DOS window open and close rapidly and I can't see what texts are present inside.
The code is correct because NX starts correctly.
What I wrong ?
Thank you...
Using NX 8 and PDM RuleDesigner
RE: NX85 - remove a menu command?
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: NX85 - remove a menu command?
Please use "Information, Custom Menu Bar, Custom Item Report", search the listing window for "UG_FILE_SAVE_PART".
If the "Actions:" line is followed by a line with the name of your vb file the the problem is in your VB file.
If the line following "Actions:" is "<actions not registered>" then your vb file is in the wrong place. Put the VB file in the "Application" sub-directory of any of the directories in ug_custom_dirs.dat E.g. UGII_SITE_DIR\application.
HTH, Joe
RE: NX85 - remove a menu command?
with you suggestions I've resolved the problem.
Thank you.
Thank you...
Using NX 8 and PDM RuleDesigner
RE: NX85 - remove a menu command?
the vb works in modeling and in assembly, not in drawing.
This custom .men, can exclude drawing environment ?
Thank you...
Using NX 8 and PDM RuleDesigner
RE: NX85 - remove a menu command?
Not that I am aware of (while using an "Edit" style .men file).
Your VB program could check for the Drafting application and exit without doing anything if the program is run while in Drafting.
CODE --> VB
Option Strict On Imports System Imports NXOpen Imports NXOpen.UF Module NXJournal Sub Main (ByVal args() As String) Dim theSession As Session = Session.GetSession() Dim theUfSession As UfSession = UFSession.GetUFSession() Dim lw As ListingWindow = theSession.ListingWindow lw.Open() Dim moduleId As Integer = -1 theUfSession.UF.AskApplicationModule(moduleId) if moduleId = UFConstants.UF_APP_DRAFTING lw.WriteLine("We are in Drafting") else lw.WriteLine("Life is good") end if End Sub End ModuleHTH, Joe
RE: NX85 - remove a menu command?
your support has resolved my problem.
Thank you again.
Thank you...
Using NX 8 and PDM RuleDesigner
RE: NX85 - remove a menu command?
during the normal work I've found an exception in the Journal.
The journal works fine, but doesn't save the drawing if it's new, for example when I make a master model specification.
This is the code:
CODE -->
Thank you...
Using NX 8 and PDM RuleDesigner
RE: NX85 - remove a menu command?
I'm using the 2nd option indicated by John :
and all work fine for all users, but now, some users don't like.
Can this 2nd option be available only for some users ?
We have all centralized, very similar to the jpetach customization (Siemens forum).
Thank you...
Using NX 8 and PDM RuleDesigner