×
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

Pull-down menu in a toolbar tbr file.

Pull-down menu in a toolbar tbr file.

Pull-down menu in a toolbar tbr file.

(OP)
Hello,

I try to make a pull down menu in a toolbar that i made as a tbr-file.
First i made a toolbar without a pull down menu and that works fine.
In this macro the pull down menu works, but all the buttons in it are the same and perform the same action.
The button and action is always the same as the latest in the tbr-file.

I made some macro's that put "(2x)" to "(9x)" behind a dimension, and I also made 8 associated bitmaps images.
When i load the toolbar all the buttons show "(9x)" and also place "(9x)" behind the dimension.
If i only go till "(5x)" in the tbr file, the toolbar shows only "(5x)" buttons and also place "(5x)" behind the dimension.
And if a place a "(7x)" outside the pull down menu at the bottom of the tbr-file also all the buttons in the pull down menu shows "(7x)"

The two macro's outside the pull down menu works fine.

In this example i've placed also the "(7x)" at the bottom of the tbr-file.

The "label" of all the buttons is always good.

CODE -->

!
!  Unigraphics Blank startup
!
! 
!

TITLE Test2
VERSION 170

DOCK TOP


BEGIN_DROPDOWN Aantal_keer_achter_maat
LABEL Aantal
AS_POPUP_MENU

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (2x) achter de maat
BITMAP T:\NX\Custom\Macro\2x.bmp
ACTION T:\NX\Custom\Macro\2x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (3x) achter de maat
BITMAP T:\NX\Custom\Macro\3x.bmp
ACTION T:\NX\Custom\Macro\3x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (4x) achter de maat
BITMAP T:\NX\Custom\Macro\4x.bmp
ACTION T:\NX\Custom\Macro\4x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (5x) achter de maat
BITMAP T:\NX\Custom\Macro\5x.bmp
ACTION T:\NX\Custom\Macro\5x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (6x) achter de maat
BITMAP T:\NX\Custom\Macro\6x.bmp
ACTION T:\NX\Custom\Macro\6x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (7x) achter de maat
BITMAP T:\NX\Custom\Macro\7x.bmp
ACTION T:\NX\Custom\Macro\7x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (8x) achter de maat
BITMAP T:\NX\Custom\Macro\8x.bmp
ACTION T:\NX\Custom\Macro\8x.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (9x) achter de maat
BITMAP T:\NX\Custom\Macro\9x.bmp
ACTION T:\NX\Custom\Macro\9x.macro


END_DROPDOWN


BUTTON  UG_MODELING_Macro_mfs1
LABEL   Zet de maat tussen haakjes
BITMAP T:\NX\Custom\Macro\maat_tussen_haakjes.bmp
ACTION T:\NX\Custom\Macro\maat_tussen_haakjes.macro

BUTTON  UG_MODELING_Macro_mfs3
LABEL   Load all defaults
BITMAP T:\NX\Custom\Macro\load_all_defaults.bmp
ACTION T:\NX\Custom\Macro\load_all_defaults.macro

BUTTON  UG_MODELING_Macro_mfs
LABEL   Zet (7x) achter de maat
BITMAP T:\NX\Custom\Macro\7x.bmp
ACTION T:\NX\Custom\Macro\7x.macro 

Do i something wrong?

Already thanks for the answers.

Using NX 8.0 on Windows 7 (64)

RE: Pull-down menu in a toolbar tbr file.

(OP)
I just found out that when i load the working toolbar, with only 3 macro's and one of which is the "(2x)", all buttons in the test toolbar with the pull down menu become also the "(2x)".

Using NX 8.0 on Windows 7 (64)

RE: Pull-down menu in a toolbar tbr file.

Quote:

BUTTON UG_MODELING_Macro_mfs

Maybe because all your buttons share the same name?
Try giving them unique names.

www.nxjournaling.com

RE: Pull-down menu in a toolbar tbr file.

(OP)
Yes, thank you!!! That was the solution.
Totally forgotten to look at that BUTTON thing.

Using NX 8.0 on Windows 7 (64)

RE: Pull-down menu in a toolbar tbr file.

as you already has found the answer... The BUTTON name is/should/must be a unique identifier of the button, - that's the purpose of it.

Regards,
Tomas

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