Cancel
Showing results for 
Search instead for 
Did you mean: 

Button SENSITIVITY dynamically in MenuScript

Pioneer
Pioneer

Hello,

 

How to make SENSITIVITY ON/OFF for a custom button during application mode change(Modelling,Drating) dynamically in MenuScript?

for an example SENSITIVITY ON during Modelling mode and SENSITIVITY OFF during Drafting mode 

 

4 REPLIES

Re: Button SENSITIVITY dynamically in MenuScript

Esteemed Contributor
Esteemed Contributor

You will have to add a separate menu file to the application button using the MENU/APPEND keyword.

 

This menu file is to be located in the application folder contained in a folder pointed to by custom_dirs.dat or UGII_[SITE|GROUP|USER]_DIR.

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: NX12.0

How to Get the Most from Your Signature in the Community

Re: Button SENSITIVITY dynamically in MenuScript

Pioneer
Pioneer

Hi stefen Pendal,

 

I have prodcued the same way you have said.but i could not get  resutls.

Please provide me a sample menuscript code.

Best Regards,

Sasikumar

Re: Button SENSITIVITY dynamically in MenuScript

Esteemed Contributor
Esteemed Contributor

You usually don't change the tool bar button, but HIDE the menu entry or only add it to the application it is used in.

 

There has been a similar question a few days ago, have you read that?

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: NX12.0

How to Get the Most from Your Signature in the Community

Re: Button SENSITIVITY dynamically in MenuScript

In NX9 there is a new structure for ribbon and toolbar files, that uses profile folders to add and remove them based on the application. Perhaps this also works with .men files?

Mark Rief
Retired Siemens