Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Adding text to NX main window topbar

Status
Not open for further replies.

NutAce

Mechanical
Joined
Apr 22, 2010
Messages
1,192
Location
CH
Hello all.

I am trying to change the line of text in the NX main window topbar (see attached image).

As I am using NX in number of different environment settings I would like to be able to see (without having to open the logfile) which environment settings NX is using.
If I remember correct this was working up to NX6.
Below the top piece of the cmd file with the line that always did the trick. the line starting with Title added the text to the top bar.

Code:
@echo off
rem ========================================================================= *
rem                                                                           *
rem       Copyright (c) 1996-2001 Unigraphics Solutions, Inc.
rem                  Unpublished - All rights reserved                        *
rem                                                                           *
rem ========================================================================= *
rem
rem File Name:  NX8.5_Native.cmd
rem 
rem ========================================================================= 
rem
rem This script will set the appropriate variables and then run Unigraphics Native.
rem	Using the Wartsila site settings
rem 
rem Input Parameters:
rem
rem Command line parameters will be passed through to Unigraphics.  See
rem the UG Workstation Guide for information on supported parameters.
rem
rem NOTE: you MUST use a colon ':' to delimit a switch from its value.
rem 
rem       For example:
rem	  ugii -retrieve:block.prt
rem
rem ========================================================================= 
rem  
rem
[b]title Native NX8.5, no Teamcenter[/b]

Currently this isn't working anymore...does anyone have a different solution to fix this again?

Ronald van den Broek
Mechanical Engineer
Cad Environment Coordinator
Wärtsilä, Propulsion Services
NX8.5.2 / TC9.1.2
HPZ420 Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 32 Gb Win7 64B
Nvidea Quadro4000 2048MB DDR5

 
The only place that I've ever seen where you could change the title at the top of the NX window was to edit the 'TITLE' entry in the 'ug_main.men' file found in the '...\UGII\menus' folder.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Hi John.

Is it possible through the environments variable file to point to a different UG_Main.men file on a different location?

Ronald van den Broek
Mechanical Engineer
Cad Environment Coordinator
Wärtsilä, Propulsion Services
NX8.5.2 / TC9.1.2
HPZ420 Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 32 Gb Win7 64B
Nvidea Quadro4000 2048MB DDR5

 
What you can do is set-up a local user folder which includes a folder named 'application' and you place a copy of the edited 'ug_main.men' file in this 'application' folder. Then define the environment variable 'UGII_USER_DIR=<path to this user folder>'. What will happen is that any edited copies of a system .men and/or .tbr file(s) will be used instead of the default .men and/or .tbr file(s) when you start NX.

For a more complete description of how to customize the user interface of NX using the scheme described above, open NX Help and go to 'Home -> System administration -> Customizing the NX installation -> Customizing the NX interface'

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Hi John....

Thanks for the tip. I will try this...

Ronald van den Broek
Mechanical Engineer
Cad Environment Coordinator
Wärtsilä, Propulsion Services
NX8.5.2 / TC9.1.2
HPZ420 Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 32 Gb Win7 64B
Nvidea Quadro4000 2048MB DDR5

 
Hi Again John...

Tried and failed...
Created the custom directory and placed the UGII_Main.men file in there.
When looking into the logfile I see below entry.
Code:
No user customizations read from UGII_USER_DIR - startup directory \\nls0642\share\NX-Starter\NX8.5_Native_PDM\application\startup not found

Do I need to add additional files in there?


Ronald van den Broek
Mechanical Engineer
Cad Environment Coordinator
Wärtsilä, Propulsion Services
NX8.5.2 / TC9.1.2
HPZ420 Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 32 Gb Win7 64B
Nvidea Quadro4000 2048MB DDR5

 
Did you place the edited copy of the 'ug_main.men' in the 'application' or the 'startup' folder? Don't place it in the 'startup' folder. BTW, you have use the same exact file name.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Hi...

Copied the original UGII_Main.men to the folder application in
\\nls0642\share\NX-Starter\NX8.5_Native_PDM\Startup\Application

Code:
UGII_USER_DIR=\\nls0642\share\NX-Starter\NX8.5_Native_PDM\

I changed it to \\nls0642\share\NX-Starter\NX8.5_Native_PDM\Startup\menus as well but this didn't help either...

Ronald van den Broek
Mechanical Engineer
Cad Environment Coordinator
Wärtsilä, Propulsion Services
NX8.5.2 / TC9.1.2
HPZ420 Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 32 Gb Win7 64B
Nvidea Quadro4000 2048MB DDR5

 
Nut Ace said:
Copied the original UGII_Main.men to the folder application in
\\nls0642\share\NX-Starter\NX8.5_Native_PDM\Startup\Application

CODE -->
UGII_USER_DIR=\\nls0642\share\NX-Starter\NX8.5_Native_PDM\

I changed it to \\nls0642\share\NX-Starter\NX8.5_Native_PDM\Startup\menus as well but this didn't help either...

Changed the folder Application to menus of course....not the attribute.

Anyways.... When I place the file UGII_Main.men directly in startup folder I get below error message.

Code:
Syntax error at line 8 in file:
\\nls0642\share\NX-Starter\NX8.5_Native_PDM\startup\ugmain.men
Found an unexpected keyword CREATE. Expecting EDIT Menuscript_File_ID

Ronald van den Broek
Mechanical Engineer
Cad Environment Coordinator
Wärtsilä, Propulsion Services
NX8.5.2 / TC9.1.2
HPZ420 Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 32 Gb Win7 64B
Nvidea Quadro4000 2048MB DDR5

 
Stop the presses!!

got pointed to a variable for this.... UGII_MAIN_MENU_FILE.
It can point to the changed UGII_main.men.

Case solved... Thanks for the assistance John...[2thumbsup]

Ronald van den Broek
Mechanical Engineer
Cad Environment Coordinator
Wärtsilä, Propulsion Services
NX8.5.2 / TC9.1.2
HPZ420 Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 32 Gb Win7 64B
Nvidea Quadro4000 2048MB DDR5

 
DO NOT PLACE ANY OF THESE MODIFED FILES IN THE 'STARTUP' FOLDER!!!! In other words, there should be NO folder named 'startup' in the path to where this modified menu file is placed. The 'startup' folder is used to make CHANGES TO or to ADD ADDITIONAL .men and/or .tbr files. The 'application' folder is used for .men and/or .tbr files which will be used INSTEAD of the original ones.

YOU MUST HAVE A FOLDER NAMED 'application'!!!! And the name of the .men file is 'ug_main.men', IT'S NOT 'ugmain.men'. If you change the name of the files, this will NOT work.



John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
I have not looked into this specific case but normally the environment variable is something similar to :
D:\dir1\dir2
then under the above there is a startup directory and potentially also a Application directory plus maybe other
i.e
D:\dir1\dir2\startup
( NX will when starting read all files in this directory.)
and ( not mandatory)
D:\dir1\dir2\application

See examples of this structure in the NX install, for example: \NX7.5\ugautomotive... where the substructure follows the above.


Regards,
Tomas
 
JohnRBaker said:
DO NOT PLACE ANY OF THESE MODIFED FILES IN THE 'STARTUP' FOLDER!!!! In other words, there should be NO folder named 'startup' in the path to where this modified menu file is placed. The 'startup' folder is used to make CHANGES TO or to ADD ADDITIONAL .men and/or .tbr files. The 'application' folder is used for .men and/or .tbr files which will be used INSTEAD of the original ones.

YOU MUST HAVE A FOLDER NAMED 'application'!!!! And the name of the .men file is 'ug_main.men', IT'S NOT 'ugmain.men'. If you change the name of the files, this will NOT work.

Noted!...

I have done exactly all of the things you have stated above.. Strangely enough it still didn't work..
Using the below variable I got it working though.

Code:
Set UGII_MAIN_MENU_FILE=\\nls0642\share\NX-Starter\NX8.5_Native_PDM\menus\ug_main.men

the path in there is just to match the Siemens structure...the folder menus is not mandatory..

Ronald van den Broek
Mechanical Engineer
Cad Environment Coordinator
Wärtsilä, Propulsion Services
NX8.5.2 / TC9.1.2
HPZ420 Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz, 32 Gb Win7 64B
Nvidea Quadro4000 2048MB DDR5

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top