Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Open NX Teamcenter data without opening Teamcenter

Status
Not open for further replies.

Techomick

Mechanical
Jun 21, 2011
46
Hello,
I want to create a batch file that will allow me to run NX and utilize Teamcenter data without actually opening Teamcenter. Here is what I have so far:

set TC_ROOT=C:\PLM\Teamcenter\TC83\TCRE
set TC_DATA=???????????????

rem set environment variables for UGNX
set UGII_BASE_DIR=C:\CAD\NX75set UGII_ROOT_DIR=C:\CAD\NX75\UGII
set FMS_HOME=%TC_ROOT%\fcc
set JAVA_HOME=%TC_ROOT%\portal\jre
call %TC_DATA%\tc_profilevars.bat
cd /d %TEMP%
call "C:\CAD\NX75\UGMANAGER\ugmanager"


I have spent tons of time trying to figure out where Teamcenter defines the data directory varialbe "TC_DATA". Can someone please help me find where this variable is defined.

I am using NX7.5 with TC 8


Design Engineer, NX 7.5
 
Replies continue below

Recommended for you

Awhomick,

Check the value(s) using a traditional interactive NX session on the computer where you intend to run your batch file ...

Run an NX session (managed mode)
Press "Help -> Log File"
(If it is a 2-tier session)
Edit -> Find -> TC_DATA
(if it is a 4-tier session)
Edit - > Find -> UGII_UGMGR_HTTP_COMMUNICATION
Edit - > Find -> UGII_UGMGR_HTTP_URL

HTH,

Joe
 
For a 2-tier client look in %TC_ROOT%\iiopservers for a batch file named something like start_TcServer1.bat. (probably exactly like that, but it's possible the name was changed).

For a 4-tier client it's probably the same, only it'll be installed on the pool server, not your local client.

But you need a 2-tier client anyway if you're running your code from your desktop.

Scott Pigman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor