cancel
Showing results for 
Search instead for 
Did you mean: 

FMS error

Phenom
Phenom

Setting up NX11 NXcustom.  I have it working thru the Teamcenter rich client, but the version of Tc_NX110TCIN.bat that I edited to launch a managed session of NX, without the TC rich client, kicks up the error shown below.  BUT, if I run NX via the rich client, then exit NX and TC, and run managed without rich client, then it starts.  So, it seems FMS to me that isn't starting.

FMS_error.jpg

I don't see any reference to FMS in the standard Tc_NX110TCIN.bat that I don't have in my Tc_NX110TCIN-NoTeamcenter.bat (without rich client).  So I started looking in the start_NXmanager.bat, aka Tc_NX110Manager.bat.  I only see this:

set fms_home=C:\Zapps\Teamcenter91\UA4T\tccs
:: set fms_home=C:\Zapps\TCUA831\fcc

:: set UGII_UGMGR_FMS_PARTIAL_FILE=DISABLED

BUT, in the session, I see:

Teamcenter Integration: FMS_HOME=C:\Siemens\Teamcenter101\tccs

UGII_UGMGR_FMS_PARTIAL_FILE      DISABLED

FMS_HOME                         C:\Siemens\Teamcenter101\tccs




FMS_HOME is set on that machine though.

 

Thoughts?

 

 

-Dave
NX 11 | Teamcenter 11 | Windows 8.1
1 REPLY

Re: FMS error

Phenom
Phenom

This is the Tc_NX110TCIN-NoTeamcenter.bat file. In NX9 I have this working, but the start_NXmanager.bat I i started with was different, from the Tc_NX110TCIN.bat that @Gerritt is including with NX110custom now.

 

@echo off
:: This added to change directory for Win8.1 permissions issue, when running without TC rich client
cd %USERPROFILE%

:: Launch NXcustom
:: Call this file from start_ugmanager.bat
:: Last Modified: 30May2013

:: Edit this line to show NX release number
set NX_NUMBER=NX110

if %NX_NUMBER%==NX4  set NX_VERSION=V22.0
if %NX_NUMBER%==NX5  set NX_VERSION=V23.0
if %NX_NUMBER%==NX6  set NX_VERSION=V24.0
if %NX_NUMBER%==NX7  set NX_VERSION=V25.0
if %NX_NUMBER%==NX75 set NX_VERSION=V25.5
if %NX_NUMBER%==NX8  set NX_VERSION=V26.0
if %NX_NUMBER%==NX85 set NX_VERSION=V26.5
if %NX_NUMBER%==NX90 set NX_VERSION=V27.0
if %NX_NUMBER%==NX100 set NX_VERSION=V28.0
if %NX_NUMBER%==NX110 set NX_VERSION=V29.0

:: Edit this line to show NX package name (nx, view, camexpress, mechatronics, powerdrafting)
set NX_PACKAGE_NAME=NX

:: Edit this line for Routing units (set to metric or inch)
set UGII_ROUTING_KIT_UNITS=inch

:: Should Routing Administrative files be loaded from Teamcenter
:: set UGII_ROUTE_UGMANAGER_MODE=TRUE
set UGII_ROUTE_UGMANAGER_MODE=FALSE

:: **** DO NOT EDIT THE FOLLOWING LINES (start) ****
:: Determine location of NXcustom folder
set NX_CUSTOM_DIR=%~dp0
set NX_CUSTOM_DIR=%NX_CUSTOM_DIR:~0,-1%
set NX_CUSTOM_LIB=%NX_CUSTOM_DIR%\%NX_NUMBER%library
:: Common settings for all NX and PTS sessions
Call "%NX_CUSTOM_LIB%\%NX_NUMBER%common.bat"

:: Determine where NX is installed
set rk=hklm\software\Unigraphics Solutions\Installed Applications
if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" set rk=hklm\software\wow6432node\Unigraphics Solutions\Installed Applications
if /i "%PROCESSOR_ARCHITEW6432%"=="AMD64" set rk=hklm\software\wow6432node\Unigraphics Solutions\Installed Applications
for /f "tokens=3,* usebackq" %%h in (`reg query "%rk%" /v "Unigraphics %NX_VERSION%" ^| findstr /i %NX_VERSION%` ) do (set str1=%%~dpi) 
set UGII_BASE_DIR=%str1:\ugii\=%
set str1=
set UGII_ROOT_DIR=%UGII_BASE_DIR%\ugii\
:: **** DO NOT EDIT THE PREVIOUS LINES (end) ****

:: Customer Defaults Folder Location
set NX_CUSTOMER_DEFAULTS_DIR=%NX_CUSTOM_LIB%\CustomerDefaults\Tc

:: Create and verify USERNAME folder (You may change the User Defaults folder on the line below)
:: set NX_USER_DEFAULTS_DIR=%NX_CUSTOMER_DEFAULTS_DIR%\Users
:: ***  This line Seperates user defaults from site and group defaults.
set NX_USER_DEFAULTS_DIR=\\NCENTFILSRV02\NX_Files\NX\CustomerDefaults\%NX_NUMBER%\Tc\Users

:: **** DO NOT EDIT THE FOLLOWING LINES (start) ****
if not exist "%NX_USER_DEFAULTS_DIR%\%USERNAME%" mkdir "%NX_USER_DEFAULTS_DIR%\%USERNAME%" 
if not exist "%NX_USER_DEFAULTS_DIR%\%USERNAME%" ( 
echo Could not create the "%USERNAME%" folder 
echo Check permissions or existence of %NX_USER_DEFAULTS_DIR% folder 
pause 
exit /b
)
:: **** DO NOT EDIT THE PREVIOUS LINES (end) ****

@echo off
findstr /m %USERNAME% %NX_CUSTOM_LIB%\INListing.txt
if %errorlevel%==0 (
:: CGR Indy Engineers set to GroupIN defaults
set UGII_ENV_FILE=%NX_CUSTOM_LIB%\%NX_NUMBER%env.dat
set UGII_GROUP_DIR=%NX_CUSTOM_LIB%\CustomerDefaults\TC\GroupIN
echo *****************************************************
echo ***     Indy               Indy              Indy ***
echo *** CGR Indy Engineering Customization is Loading ***
echo ***     Indy               Indy              Indy ***
echo ***************************************************** ) else (
:: CGR Concord Engineers set to GroupNC defaults
echo ********************************************************
echo ***                                                  ***
echo *** CGR Concord Engineering Customization is Loading ***
echo ***                                                  ***
echo ********************************************************
set UGII_ENV_FILE=%NX_CUSTOM_LIB%\%NX_NUMBER%env.dat
set UGII_GROUP_DIR=%NX_CUSTOMER_DEFAULTS_DIR%\GroupNC)

:: Custom Environment Variable File
::set UGII_ENV_FILE=%NX_CUSTOM_LIB%\%NX_NUMBER%env.dat

:: Set Bundle Name Environment Variable
:: set UGS_LICENSE_BUNDLE=

:: set HOME=%HOMEDRIVE%%HOMEPATH%\NX
::  *** Individual user load options ***
:: set UGII_LOAD_OPTIONS=%NX_USER_DEFAULTS_DIR%\%USERNAME%\load_options.def
::  *** Single company wide load options ***
set UGII_LOAD_OPTIONS=%NX_CUSTOMER_DEFAULTS_DIR%\Site\load_options.def

:: Set Tc Specific Environment Variables
set UGII_UGMGR_FMS_PARTIAL_FILE=DISABLED

:: If the env var below, is set to anything, then exported parts will use the ItemID
:: as their name without the RevID.
set UGII_UGMGR_ITEMID_IS_OSFILE_NAME=1

:: cd /d %TEMP%

:: Line below may stop empty folders from being created in NXcustom
cd /d %TMP%

:: TC_DATA is not set if running 4-tier
:: if "%NTIER_ARG%"=="4-tier" goto no_set_tc_data

:: *** Edit the following line for the location of Tc_data folder, 2-tier only ***
:: set TC_DATA=P:\tcdata
:: *** Edit the following line for the location of Teamcenter Client Root ***
:: set TC_ROOT=C:\Siemens\Teamcenter101

:: if not exist "%TC_DATA%" ( 
::echo The following folder could not be found:
::set TC_DATA
::pause 
::)
:: call %TC_DATA%\tc_profilevars.bat

:: :no_set_tc_data
:: if not exist "%TC_ROOT%" (
:: echo The following folder could not be found:
:: set TC_ROOT
:: pause
:: )

:: set FMS_HOME=%TC_ROOT%\fcc
:: Killing old FCC.
:: %FMS_HOME%\bin\fccstat -stop


:: set HOME=%HOMEDRIVE%%HOMEPATH%\NX

set UGII_UGMGR_COMMUNICATION=http
:: set FMS_HOME=C:\Siemens\Teamcenter101\tccs

echo ****** %NX_NUMBER% for TCIN ******
set NX_CUSTOM_DIR
set NX_CUSTOM_LIB
set UGII_BASE_DIR
rem set TC_ROOT
set NTIER_ARG
:: if "%TC_DATA%" NEQ "" ( 
:: rem set TC_DATA
:: )
set UGII_ROUTING_KIT_UNITS
echo ******************************************************

:: start "" <== Add this to start of command to hide the console window
:: Start NX (remove the :: from only one of the NX lines below)

:: Starts individual NX sessions
:: "%UGII_ROOT_DIR%\ugraf" -%NX_PACKAGE_NAME% -pim=yes -retrieve:%*

:: Uses one NX session
:: "%UGII_ROOT_DIR%\ugs_router" -message="Starting %NX_NUMBER% TCIN" -ugm -version=%NX_VERSION% %* -opts -%NX_PACKAGE_NAME%

:: "%UGII_ROOT_DIR%\ugraf" -retrieve:%UGII_TEMP_DIR%\%username%_last_context.plmxml

start C:\Siemens\NX11\UGII\ugraf.exe -pim=yes -http_url=http://nctmctrapp01:80/tc
@echo on
-Dave
NX 11 | Teamcenter 11 | Windows 8.1