×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Set Value of Toggle Button?

Set Value of Toggle Button?

Set Value of Toggle Button?

(OP)
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

RE: Set Value of Toggle Button?

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources