cancel
Showing results for 
Search instead for 
Did you mean: 

Running a custom application after user switches from modeling to drafting

Valued Contributor
Valued Contributor

I need to run a custom application when the user switches from modeling to drafting or drafting to modeling.

NX has not provided any user exit or standard actions for that. Is there any way to achieve this indirectly from within NX session.

4 REPLIES

Re: Running a custom application after user switches from modeling to drafting

Phenom
Phenom

I'd look into using MenuScript. Using MenuScript, you should be able to modify the menu entries and add your own "action" when the user activates the application.

 

https://docs.plm.automation.siemens.com/tdoc/nx/10/nx_api/#uid:index_menuscript:syntax_syntax_keywor...

Re: Running a custom application after user switches from modeling to drafting

Valued Contributor
Valued Contributor

Thanks,

Application buttons do not have standard actions but libraries.

Libraries/append is also not working. So wondering if it is NX issue or not allowed this way.

Re: Running a custom application after user switches from modeling to drafting

Valued Contributor
Valued Contributor

Well I could make it work now 

Re: Running a custom application after user switches from modeling to drafting

Esteemed Contributor
Esteemed Contributor

Use the BUTTON statement with the correct application button name and you can add any post or pre action Smiley Wink

    BUTTON                  UG_APP_MODELING
    ACTIONS                 ${UGII_INITIAL_UFUN_DIR}\NoLicenseMsg.dll
Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community