Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Custom Menu and Toolbar controlled over network

Status
Not open for further replies.

cmacca

Mechanical
Mar 19, 2008
66
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
 
Replies continue below

Recommended for you

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
 
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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor