cancel
Showing results for 
Search instead for 
Did you mean: 

connect to 4tier TCE in batch mode;

Creator
Creator

Hi All,

 

I have a requirement to connect to 4 tier TCE in batch mode; i have been able to connect to 2 tier and sucessfully launch in batch mode, but facing diffiulty with 4tier

Any help!

 

Thanks,

FL

/**THIS IS FOR 2TIER WHICH I AM USING**/

@echo off
set TC_DATA=%UGS_SHARE%\tc\tcdata\puntcp83
set TC_ROOT=C:\PROGRA~1\Siemens\TEAMCE~1.3\TC_2tier
set FMS_HOME=%TC_ROOT%\fcc
call cmd /c %TC_DATA%\tc_profilevars.bat
set UGII_BASE_DIR=C:\PROGRA~1\Siemens\NX 8.5
set UGII_ROOT_DIR=C:\Program Files\Siemens\NX 8.5\UGII
set PATH=%FMS_HOME%\lib;%UGII_ROOT_DIR%;%PATH%
rem call run_managed.exe D:\cloning_test\CloningUtility.exe

 

 

3 REPLIES

Re: connect to 4tier TCE in batch mode;

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

FL,

Remove the two lines defining

TC_ROOT

TC_DATA

Add two lines (edit the web tier server name and or port number as required)

set UGII_UGMGR_COMMUNICATION=HTTP
set UGII_UGMGR_HTTP_URL=http://tc91:8080/tc/aiws/aiwebservice

 

Regards,

 

Joe


FL wrote:

Hi All,

 

I have a requirement to connect to 4 tier TCE in batch mode; i have been able to connect to 2 tier and sucessfully launch in batch mode, but facing diffiulty with 4tier

Any help!

 

Thanks,

FL

/**THIS IS FOR 2TIER WHICH I AM USING**/

@echo off
set TC_DATA=%UGS_SHARE%\tc\tcdata\puntcp83
set TC_ROOT=C:\PROGRA~1\Siemens\TEAMCE~1.3\TC_2tier
set FMS_HOME=%TC_ROOT%\fcc
call cmd /c %TC_DATA%\tc_profilevars.bat
set UGII_BASE_DIR=C:\PROGRA~1\Siemens\NX 8.5
set UGII_ROOT_DIR=C:\Program Files\Siemens\NX 8.5\UGII
set PATH=%FMS_HOME%\lib;%UGII_ROOT_DIR%;%PATH%
rem call run_managed.exe D:\cloning_test\CloningUtility.exe

 

 


 

 

Re: connect to 4tier TCE in batch mode;

Creator
Creator

Joe, thanks for your reply;

 

I have made chages to batch file as you sujjested, still i am not able to initialize connection with TCE 4tier;

i am attaching the code which batch file calls

 

@echo off
rem -------------------------------------------
rem this is 4_tier batch file
rem -------------------------------------------


set TC_JRE_HOME="C:\Program Files\Siemens\Teamcenter8.3\TC_OTW8\otw\jre"
set JAVA_HOME=%TC_JRE_HOME%
set FMS_HOME=%TC_ROOT%\tccs
set UGII_UGMGR_COMMUNICATION=HTTP
set UGII_UGMGR_HTTP_URL=http://drpunpdm:8080/tc
set UGII_BASE_DIR=C:\PROGRA~1\Siemens\NX 8.5
set UGII_ROOT_DIR=C:\Program Files\Siemens\NX 8.5\UGII
call run_managed.exe "D:\Arun\GTAC\sol1_7278141\connectto4TierinCSharp\bin\Debug\connectto4TierinCSharp.exe"

Re: connect to 4tier TCE in batch mode;

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

FL

please modify your code as shown below:

 

 string[] tceCredentials = new string[4];
            tceCredentials[0] = "-pim=yes";
            tceCredentials[1] = "-u=" + sUserID.Trim(); //eu.d-rco.com\rarunkumar
            tceCredentials[2] = "-p=" + sPassword.Trim();
            tceCredentials[3] = "-http_url=http://drpunpdm:8080/tc";

 you can remove set UGII_UGMGR_HTTP_URL=http://drpunpdm:8080/tc as well if you want.