NutAce
Mechanical
- Apr 22, 2010
- 1,192
Hello All,
I tried creating some menu files for NX9 but ran into problems.
1 - Starting a dll with arguments.
2 - Showing menus depending on application
Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2
Building new PLM environment from Scratch using NX11 / TC11
I tried creating some menu files for NX9 but ran into problems.
1 - Starting a dll with arguments.
in an earlier posting I asked a question on how to start a dll with arguments from the ribbon. Below solution was working for the ribbon tabs.
BUTTON Illustrator_CGM
LABEL Illustrator CGM Export
MESSAGE Export CGM for Adobe Illustrator
BITMAP $SITE_PREF_PATH\ForEngineDocsCGM\Startup\Plotcgm4Illustrator.bmp
ACTION $SITE_PREF_PATH\ForEngineDocsCGM\ForEngineDocs_Plotcgm.dll("Ai")
This is however not working for a menu (.men) file... ACTION is not recognized but needs to be ACTIONS for some reason.
And also when changed to ACTIONS apperently the argument ("Ai") is also not recognized
BUTTON Illustrator_CGM
LABEL Illustrator CGM Export
MESSAGE Export CGM for Adobe Illustrator
BITMAP $SITE_PREF_PATH\ForEngineDocsCGM\Startup\Plotcgm4Illustrator.bmp
ACTION $SITE_PREF_PATH\ForEngineDocsCGM\ForEngineDocs_Plotcgm.dll("Ai")
This is however not working for a menu (.men) file... ACTION is not recognized but needs to be ACTIONS for some reason.
And also when changed to ACTIONS apperently the argument ("Ai") is also not recognized
2 - Showing menus depending on application
When I place the Ribbon files in the Applications Profiles directory the ribbons will only appear with the application they are created for.
e.g toolbars in UG_APP_DRAFTING directory will only show in drafting and not in modeling.
How can I accomplish the same with menu files? Placing them in the application folder doesn't work. As far as I have experienced the menu files will only work when placed in the site Startup folder or any folder defined in Custom-dirs.dat
e.g toolbars in UG_APP_DRAFTING directory will only show in drafting and not in modeling.
How can I accomplish the same with menu files? Placing them in the application folder doesn't work. As far as I have experienced the menu files will only work when placed in the site Startup folder or any folder defined in Custom-dirs.dat
Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2
Building new PLM environment from Scratch using NX11 / TC11