Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Changing small letters to large with UGII_OPTION=UPPER NX 11 ?

Status
Not open for further replies.

Kall545

Agricultural
Oct 12, 2016
28
Hello
We have a part naming guide of PULxxxxx.prt in large letters ( like PUL000004, Teamcenter 11 ).
Now someone named native parts with small letters pulxxxxx.prt and NX 11 Import Assembly into TC gives an error and does not automatically change pul to large letters PUL .

How to change the small letters pul to large letters PUL ?
I want all those pul- to PUL- before importing the assembly. How is this possible ?

Someone said adding:

UGII_OPTION=UPPER
to
C:\Program Files\Siemens\NX 11.0\UGII\ugii_env.dat
would solve this problem.

But I do not see any difference:

1.) No "#"- mark on front of the text UGII_OPTION=UPPER ?
2.) Do I need those empty spaces above and below UGII_OPTION=UPPER ?
3.) What is similar file "ugii_env.dat_default" ? ( NX 11 )
4.) Are TC 11's NX-files in the same folder or how to change TC 11 NX-files also ?

 
Replies continue below

Recommended for you

Cant help you translate these characters but i can help on the other questions.
replied in a maybe more logical order. :)

3) there are 2 files with almost the same purpose:
the
ugii_env_ug.dat This file contains all the publicized system variables for NX, do not edit but read and copy from this. Into:
ugii_env.dat Paste the copied variable into this file and change the value. It will then overrride the variable from the above. This file contains your site's settings.

You CAN set a Windows variable on each computer UGII_ENV_FILE = \\servername\directory\company-x_env.dat
where this "company-x_env.dat ( can have any name and placement) = the "ugii_env.dat" = Your overrides of NX variables.

4) you can in place almost all related files in the same folder.
( drop a question here, there are many files and many options)

1) remove the # in front of the variable.
# is "comment"

2) empty spaces are for human readability. no effect on NX

5) All the variables you set / can set in this file can also be set in the Windows control panel.
For testing purposes , this might be quicker.
6) MAKE SURE that your changed variable is used in the Session! ( and that somebody have setup NX such that it doesn't read the local files)
The ONLY (?) way to check this is to read the NX logfile.
File- help- NXlogfile, then search for the variable you tried to set, it will be there if you succeeded .

Regards,
Tomas





 
It seems to be using this file:
NX 11 Log file:
"Using environment file \\PRO-TC-001\NX_Site\ugii_env.dat"
Do I need to ask the "server administrator" to change the setting ?

- So my changes here are useless =C:\Program Files\Siemens\NX 11.0\UGII\ugii_env.dat ?
These words are not found inside Log file:
"UGII_OPTION"="UPPER"
 
then your changes are not used.
one way is to ask the server admin ( who ever set your system up and has access to that file)
In the meantime, try set the variable in the windows control panel, it will override the "\\PRO-TC-001\NX_Site\ugii_env.dat"

Start- type "system" , then select the option "edit the system environment variables" that appears in the dialog above.
select the "Environment variables" button under the "advanced" tab,
you can then either select NEW under user variables or system variables
variable: UGII_OPTION ( No "=")
Varable value: UPPER

then restart both NX and Teamcenter.
again search the NX logfile for the string "upper".
If this looks good, you can try the import.

Regards,
Tomas


 
Now NX 11 won't start when the code is in there. Should I try to restart windows or just remove the added UPPER code.

Edit the system environment variables
variables2323_xzimcj.jpg
 
Someone suggested adding the UGII_OPTION=UPPER to somewhere in the portal.bat -file.
Is it this C:\Program Files\Siemens\NX 11.0\PSTUDIO\portal.bat ?
or this C:\Siemens\TCPROD\TC114T\portal\portal.bat ? ( The Teamcenter's "TCPROD 4-tier"-desktop icon launches this portal.bat )
- Could this work ?
- How portal.bat functions and where to insert the text ?

Code:
@echo off
rem 

setlocal

rem TPR is short for TC_PORTAL_ROOT to reduce command line length
title Teamcenter Rich Client

call "C:\Siemens\TCPROD\TC114T\install\tem_init.bat"

set TPR=C:\Siemens\TCPROD\TC114T\portal
set FMS_HOME=C:\Siemens\TCPROD\TC114T\tccs
%FMS_HOME%\bin\fccstat -kill

rem use AUX_PATH env var for any additional required paths
rem save original path for external applications
set ORIGINAL_PATH=%PATH%
rem for optimal startup performance, keep the PATH length at a minimum
set PATH=%SYSTEMROOT%\system32;%FMS_HOME%\bin;%FMS_HOME%\lib;%TPR%;%AUX_PATH%

set JAVA_HOME=%TC_JRE_HOME%
set JRE_HOME=%TC_JRE_HOME%



:start_portal
cd /d %TPR%
set CLASSPATH=.;
set VM_XMX=1024m

rem Set DJIPJL_VMARG environment variable
IF EXIST "%TPR%\djipjl\setenv.cmd" call "%TPR%\djipjl\setenv.cmd"

@echo Starting Teamcenter Rich Client...
start Teamcenter.exe %* -vm "%JRE_HOME%\bin\javaw.exe" -vmargs -Xmx%VM_XMX% -XX:MaxPermSize=128m -Xbootclasspath/a:"%JRE_HOME%\lib\plugin.jar";"%JRE_HOME%\lib\deploy.jar";"%JRE_HOME%\lib\javaws.jar" %DJIPJL_VMARG%
 
This is strange. I do not run Teamcenter on the computer i tested the UGII_OPTION on, there it works flawless.
I doubt that it would make a difference to set it in the portal.bat
the result should be exactly the same i think.

I wonder if the next step should be calling the GTAC.


Regards,
Tomas

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor