Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX RMB menu in assembly Navigator

Status
Not open for further replies.

rajatjain

Computer
Aug 7, 2013
11
Hi
We are developing a customization in NX which requires some command options in the RMB menu of Assembly Navigator. Is it possible through a Menuscript or API call?

Kindly advise.
Thanks
Rajat Jain
 
Replies continue below

Recommended for you

What version of NX are you running?

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.
 
Now if we're talking about selecting a Component in the Assembly Navigator, pressing MB3 (AKA RMB) and adding something to the pop-up menu there's something that you can do without having to write any code using NX 8.5 and NX 9.0. For older versions, I'm not sure how you would go about doing anything but if something is possible it would require using NX Open to customize or add something like what you're asking for.

Now as for NX 8.5 and NX 9.0, while the MB3 pop-up menu itself is not accessible to make changes/additions to, what we call the 'Shortcut Toolbar', which is available using Customization, can be modified. What you can do is add a 'User Command' which can then be set to show an icon of your choice and when selected can initiate any sort of action that you want, including the execution of a program, either written using NX Open, KF or any other language that you wish. You can also call a system command, launch a Journal/Macro or even a GRIP program, as well as any opening any existing NX dialog. All of this is done using the normal Customization function used to add items to toolbars and starting with NX 9.0 to the Ribbon Bar.

Anyway, that's about all that I can suggest at the moment. Note that if you do manage to create some sort of customized program for NX 7.5 and NX 8.0, that it should also work for NX 9.0, just that with NX 9.0 you can probably accomplish what you're looking for without having to write any custom programs, except perhaps the utility that you wish to execute, to add an additional action to MB3 when selecting a Component in the Assembly Navigator, or for that matter, when selecting a feature in the Part Navigator or an Assembly constraint in the Constraint Navigator.

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.
 
Rajatjain,

NX 8.5 added support for programmatically modifying the NX context menu (RMB/MB3) for objects including components.

The modifications include adding new options, suppressing options, setting an option to be the default action, and reordering the options.

Please see the example code in the "%UGII_BASE_DIR%/ugopen/SampleNXOpenApplications/C++/ConfigureContextMenu" directory.

HTH,

Joe
 
Thanks John and Joe,

I could achieve it with API calls.

Thanks a lot for your help.

Thanks
Rajat Jain

Rajat Jain
Technical Director
JeeneDo Auto-Configure Pvt. Ltd.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor