Cancel
Showing results for 
Search instead for 
Did you mean: 

Executable fails on TCE Server but works fine in a TC command promt

Valued Contributor
Valued Contributor

Hello,

 

I have an executable that creates a 3DPDF and attaches it as a dataset to the item revision in Teamcenter. This executable uses some exernal SDK. I am able to execute it in a TC command promt but when I get an error while executing it on the TCE server. 

 

set UGII_BASE_DIR=D:\app_plm\NX11

set UGII_ROOT_DIR=D:\app_plm\NX11\UGII

set UGII_USERFCN= D:\app_plm\NX11\UGOPEN

set UGII_UGOPENPP= D:\app_plm\NX11\UGOPENAPP

set UGII_SDI_BASE= D:\app_plm\NX11\NXPLOT

Set %PATH%=D:\app_plm\NX11\NXBIN;%PATH%

 

set PDF3D_LICENSE_PATH=hjvls001%%6200

 

I am setting the above mentioned environment variables before executing the executable. The executable is able to connect to the NX manager session and open the part but it fails to acquire the License for 3d PDF SDK. It works fine in a TC command promt.

Any idea or suggestion as to what is wrong or missing here?

4 REPLIES

Re: Executable fails on TCE Server but works fine in a TC command promt

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
It's likely that %%6 is being interpreted as a variable in the batch file. Any change those characters can be removed from the PDF3D_LICENSE_PATH variable? The command line uses % and batch files use %% for variable declaration.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Executable fails on TCE Server but works fine in a TC command promt

Valued Contributor
Valued Contributor

@RandyEllsworth thanks for the reply. Yes I can use the full name of the server i.e.  HJVLS001.tiretech.contiwan.com but then how to pass in the missing things such as 6200 ? I guess 6200 represents here the port. And I finally want to execute this executable in a TCE server command prompt.

Re: Executable fails on TCE Server but works fine in a TC command promt

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
I usually setup the license variable like:

:: Set license server system environment variable. ____________________________
set LICSVR_PORT=7279
set LICSVR_NAME=krsm-as-teamcpv
set LICSVR=%LICSVR_PORT%@%LICSVR_NAME%

@echo.
@echo.Setting SPLM_LICENSE_SERVER
setx SPLM_LICENSE_SERVER %LICSVR% /m
set SPLM_LICENSE_SERVER=%LICSVR%

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Executable fails on TCE Server but works fine in a TC command promt

Valued Contributor
Valued Contributor

@RandyEllsworth Thanks again for the reply. I was able to execute it on server. The problem was that I was using %% in the command line argument instead  of %