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.