×
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

Custom Menu and Toolbar controlled over network

Custom Menu and Toolbar controlled over network

Custom Menu and Toolbar controlled over network

(OP)
I am trying to create custom company pull down menus (beside the standard File, Edit, View etc pull down menus) and also custom toolbars. I would like all users in our company to have read-only access to these custom menus and have the definition files for these menus in one location on our network and have them locked read-only so noone while in NX can modify them. If these definition files are edited by adding new commands or editing existing commands all user menus and toolbars will be updated the next time they open NX.

I have tried to create my own .tbr toolbar files and .mem menu files but cannot create buttons that point to journal vb files. It seems only native NX commands can be assigned. I would like something like this:

BUTTON/COMMAND="X:\My_Custom_Files\My_Journals\My_Cmd.vb"

but the only BUTTON options seem to be

BUTTON
BUTTON/FOLDED
BUTTON/PLATFORM
BUTTON/HIDE

Also I know how to load a .tbr file through Customize->Toolbars->Load, but once loaded does this toolbar update if the original .tbr file is updated? And how do you load a .mem file over a network?

Thanks

NX 6.0.1.5

RE: Custom Menu and Toolbar controlled over network

First of all you should create or check
UGII_SITE_DIR or UGII_GROUP_DIR env. variable.
Please copy to ....\STARTUP\ subdirectory menu files and programs and if exist dlg file copy them to ...\Aplication\.
Regards
Siwy

RE: Custom Menu and Toolbar controlled over network

(OP)
Siwy, thanks for the reply.

Right, I've set the UGII_SITE_DIR variable and added my custom .men file to the startup sub folder. The menu now shows up in NX and all users across the network have the menu as well by default.

I've also managed to get a journal file to run from the menu by using:

  BUTTON MY_BUTTON
  LABEL &My button
  MESSAGE My message
  ACTIONS run_journal X:\My_Custom_Files\My_Cmd.vb

How do you set up the toolbars. I've read that loading .tbr files will eventually be unsupported and roles will control toolbars, how do you create network controlled toolbars with roles?

Thanks

NX 6.0.1.5

RE: Custom Menu and Toolbar controlled over network

You should be able to put the TBR file in the same startup folder as the MEN file.

The TBR file would only need BUTTON NAME:

!
! My Toolbar
!
TITLE My Toolbar
VERSION 170
DOCK TOP

BUTTON MY_BUTTON

You dont need to specify any actions, you have already defined your actions in the menu file.  

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