×
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

Adding text to NX main window topbar

Adding text to NX main window topbar

Adding text to NX main window topbar

(OP)
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
title Native NX8.5, no Teamcenter 

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

RE: Adding text to NX main window topbar

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.

RE: Adding text to NX main window topbar

(OP)
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

RE: Adding text to NX main window topbar

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.

RE: Adding text to NX main window topbar

(OP)
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

RE: Adding text to NX main window topbar

(OP)
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

RE: Adding text to NX main window topbar

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.

RE: Adding text to NX main window topbar

(OP)
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

RE: Adding text to NX main window topbar

(OP)

Quote (Nut Ace)

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

RE: Adding text to NX main window topbar

(OP)
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

RE: Adding text to NX main window topbar

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.

RE: Adding text to NX main window topbar

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

RE: Adding text to NX main window topbar

(OP)

Quote (JohnRBaker)

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

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