Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Hide Custom Toolbar

Status
Not open for further replies.

DQuick

Aerospace
Dec 8, 2010
8
I have developed several custom toolbars for use within my company and have setup a common network startup directory so that all computers can load them. The problem I am having is that everytime I add a new toolbar or modify an existing one, the toolbar reappears in all applications.

Is there a way to make the toolbar not show up by default and instead just be availible to be added by the user?

UG NX 6.0.4.3
 
Replies continue below

Recommended for you

DQuick,

Use the right mouse button with the mouse over any toolbar to invoke the "Customize" dialog.

In the "Toolbars" tab of the customize dialog scroll and find your custom toolbar and select it (row highlight, not the checkbox).

Click the "Properties" button near the upper right corner of the customize dialog.

A "toolbar Properties dialaog will now be displayed with a list of checkboxes for the applications which should display this toolbar.

Uncheck the applcations where you want to hide the toolbar.

Press Ok on the tool properties dialog.

Press Close on the Customize dialog.

Regards, Joe

 
Thanks for the reply, but thats not exactly what I am looking for. It would work fine for custom toolbars that a users creates as part of their role, but I am not seeing that option for toolbars created with a .tbr file. When they are created with a tbr file the toolbars can be shared between users and computers and are then similar to and standard toolbar, ie the View or Standard Toolbar, atleast as far as I can see.

What I am after is a way to tell the .tbr files to load into UG, but not be placed on the screen until the user wants it there. The reasoning behind this is that we have different toolbars for different projects and someone working on one project doesnt need to see the toolbar for another project.

Our current method to fix this is everytime a toolbar is added/updated the ser has to go close the toolbar in every application, which is simple enough, but annoying as toolbars for startup projects are changing almost daily/weekly.

UG NX 6.0.4.3
 
We checked and there are no user-accessable means for doing that, at least not without a lot of 'hacking' which we cannot recommend.

The best that you can do is ask that each user, after they have loaded the new .tbr file, use the Customize tools to update their own Role file setting in which applications will this toolbar be visible.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
Thats about what I figured the answer would be.

The method we are using now is having each user customize the toolbars, but given all the toolbars are also contained in a menu I think we are going to do away with the custom toolbars and just let the user create thier own toolbar with commands from the menu.

Thanks

UG NX 6.0.4.3
 
Dquick,

As John points out this is an unsupported technique.

In the "application" peer directory to the "startup" directory that contains the custom .tbr file(s), create an ascii file with a .mtx extension. E.g. hide_custom_toolbars.mtx

Put the following 16 lines in the mtx file, replacing "Custom_tool_bar.tbr" with the name of your custom toolbar.

To hide additional toolbars repeat the 4 lines beginning with the one that starts with <ActionList...
placing the 4 new lines after the </Actionlist> and before the </ActionLists> line (the two lines do differ by just the letter "s").

This technique will work for newly deployed tbr files but it will not work if the user has launched NX with the custom tbr based toolbars since the visibility of the toolbars is already recorded in the users "user.mtx" file.

Regards, Joe
-------------

<?xml version="1.0" encoding="UTF-8"?>
<NX_PROFILES>
<Profile name="UG_APP_NOPART">
<Layout>
<ActionLists>
<ActionList name="custom_tool_bar.tbr" type="toolbar">
<BarInfo position="float" visibility="0">
<DockInfo row="0" column="0" offset="0"/>
<FloatInfo x="200" y="200" width="900"/>
</BarInfo>
</ActionList>
</ActionLists>
</Layout>
</Profile>
</NX_PROFILES>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor