Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Value of Toggle Button?

Status
Not open for further replies.

pcalonzi2

Mechanical
Feb 1, 2013
18
All,

I am trying to use the value command in a menu script, however everytime I do so, I get an error:

Syntax error at line 16 in file: \\lildata01group\NX_Pilot\Configuration_Files\CPD\GROUP\TOOLING\application\MTG_MODELING.men
Found an unexpected keyword VALUE.

This is the code for Value:

VALUE statement
Specifies the initial value of a toggle button, which can be either OFF or ON. The VALUE statement is optional.

Example:

...
MENU UG_WCS
TOGGLE_BUTTON UG_WCS_DISPLAY
LABEL Display WCS
ACTIONS STANDARD
VALUE OFF
...


This is my code:
TOGGLE_BUTTON HOLE_TOOL_RENAME_SCREWS
LABEL Auto-Rename Screws
VALUE ON

Any suggestions?

Thanks,
-Pat



Thank you,
-Pat
 
Replies continue below

Recommended for you

Hi everyone,

Well after a morning of messing around with the command I figured it out. I wanted to post it here so if it ever happens again it might help somebody out...

The key is you have to assign a Label and message text before you assign the Value.


Here is the code that worked:

TOGGLE_BUTTON HOLE_TOOL_RENAME_SCREWS
LABEL Auto-Rename Screws
MESSAGE Auto-Rename Screws
VALUE ON

Good luck,
-Pat

Thank you,
-Pat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor