Cancel
Showing results for 
Search instead for 
Did you mean: 

Menuscript LIBRARIES

Does anybody have a working example of how to use the 'LIBRARIES' keyword in Menuscript to run a .dll on the start of an application (Manufacturing in this case).  Old style 'user exits' with the environment variable are not an option because of only one .dll allowed.  Siemens GTAC suggested the use of LIBRARIES as the way forward, but I cannot get it to work properly.

 

VERSION 130

EDIT UG_GATEWAY_MAIN_MENUBAR
MODIFY
    APPLICATION_BUTTON UG_APP_MANUFACTURING
    LIBRARIES test_mfg_start
END_OF_MODIFY

While the above properly attempts to load the dll on start of MFG, I must not have the correct 'entry point' defined in the code.  I've tried ufusr, ufsta, and ufcams all to no avail.  NX throws a warning dialog saying the library could not be loaded.

1 REPLY 1

Re: Menuscript LIBRARIES

I somewhat got it to work. The LIBRARIES keyword needed to be before the MENU_FILES keyword. However, this .dll only gets run ONCE per NX Session. I need it to run EVERY time manufacturing is entered. I guess I will just have to live with the old 'user exit' method.