REM #Doc: This is the Custom Refile Environ Script
REM #Doc: it Can be used to set special settings for custom bevor refile start's
REM #New: 19.11.2013/J.Fes
REM #LUp: 22.11.2015/J.Fes
REM #LUp: 23.02.2016/J.Fes add set UGII_CONVERT_LEGACY..
REM #LUp: 02.01.2017/J.Fes add :CustomRefile :CustomEvaluate
REM #LUp: 15.03.2018/J.Fes Re.Org UGII_LOAD_OPTIONS_NE / Re.Org UGII_LOCAL_USER_DEFAULTS_NE

if /I "%~1" equ "DEFAULTS" call :CustomDefaults
if /I "%~1" equ "REFILE"   call :CustomRefile
if /I "%~1" equ "EVALUATE" call :CustomEvaluate

if /I "%RfReplica%" equ "YES" Call :CustomRefileRO
if /I "%RfReplica%" neq "YES" Call :CustomRefileSO

goto :eof

rem ----------------------------------------------------------------------------
:CustomDefaults
 rem set's Custom default settings
 REM use JobMgr_use_TcServerKill [default=OFF]
 set JobMgr_use_TcServerKill=OFF
 goto :eof
rem ----------------------------------------------------------------------------
:CustomRefile
 rem set's Custom environ for refile

 REM #Doc: Example Usage TC load rule
 REM  set TC_UG_Navigator_Override_UG_Load_Option=XX
 REM  set TC_NX_Navigator_Override_NX_Load_Option=XX

 REM #Doc: Usage of JM RfNxSylog_ResClRules_Custom.xml
 REM set ResultClassificationCustom_DPNE=%CmdCurRoot_DP%\Resources\RfNxSylog_ResClRules_Custom.xml

 rem set UGII_LOAD_OPTIONS -------------
 REM  set UGII_LOAD_OPTIONS=%CmdCurRoot_DP%\startup\CustomXX_load_options_refile.def
 REM  set UGII_LOCAL_USER_DEFAULTS=%CmdCurRoot_DP%\startup\CustomXX_nx_refile.dpv
 REM  set UGII_SITE_DIR=%CmdCurRoot_DP%
 REM  set UGII_USER_DIR=%CmdCurRoot_DP%

 REM  TC Config Rule name Example: Latest Working
 REM  set TC_config_rule_name=Latest Working
 REM  set TC_UG_Navigator_Override_UG_Load_Option=%TC_config_rule_name%

 REM disable TC_SHARED_MEMORY_DIR, via:
 set TC_SHARED_MEMORY_DIR_Disable=true
 REM disable Refile Process Monitoring via: ON/OFF
 REM set JobMgr_RfPMon_USE=OFF

 REM  #New 25.05.2017  disable  New Iray+ Ray Traced Studio Rendering
 rem Set NX_RTS_IRAY=0

 REM set JobMgr_BOMCompair=OFF

 REM until TC9
 REM set FMS_HOME=%TC_ROOT%\fcc
 REM from TC9 use
 REM set FMS_HOME=%TC_ROOT%\tccs

 REM disable fccCheck
 REM set JobMgr_fccCheck_USE=false
 REM !! ugii_env_ug.dat !!
 REM  Using ugii_env.dat file from ..\NX10\ugii\ugii_env.dat
 REM 23.02.2016/J.Fes set UGII_CONVERT_LEGACY_XXX_LINEWIDTH_
 REM  # (0.25)
 REM  set UGII_CONVERT_LEGACY_THIN_LINEWIDTH_TO_NEW_LINEWIDTH=3
 REM  # (0.35)
 REM  set UGII_CONVERT_LEGACY_NORMAL_LINEWIDTH_TO_NEW_LINEWIDTH=4
 REM  # (0.50)
 REM  set UGII_CONVERT_LEGACY_THICK_LINEWIDTH_TO_NEW_LINEWIDTH=5

 REM #Doc: If use TC.Pref is to read from TC_PREFERENCES_OVERLAY_FILE
 REM #Doc: Please Copy first from: .\OptionFiles\Rf_TC_PREFERENCES_OVERLAY.xml
 REM #Doc:                   to..: .\ClientScripts\Resources\Rf_TC_PREFERENCES_OVERLAY.xml
 REM #Doc: and uncommand next lines
 REM Echo ---------------------------------------------------------------------------
 REM set TC_PREFERENCES_OVERRIDE_FROM_FILE=TRUE
 REM set TC_PREFERENCES_OVERLAY_FILE=%CmdCurRoot_DP%\Resources\Rf_TC_PREFERENCES_OVERLAY.xml
 REM Call Echo "TC.Pref.Override.from.Fi: [%TC_PREFERENCES_OVERRIDE_FROM_FILE%]"
 REM Echo ---------------------------------------------------------------------------

 REM #Doc: if use TC.Test.Attribut should be used please uncommand next lines
 REM Echo ---------------------------------------------------------------------------
 REM set TC_USE_TEST_ATTR_MAPPINGS=YES
 REM Call Echo "TC.Use.Test_Attr.Mapp...: [%TC_USE_TEST_ATTR_MAPPINGS%]"
 REM Echo ---------------------------------------------------------------------------

 REM #Doc: if fccPurge should be used
 REM       uncommand next lines
 REM  if /I "%ComputerName:~0,5%" equ "?????" goto :fccClearPurgeJumbOver
 REM   rem #New: 15/11/2014 21:57 / J.Fes prevent missing discspace on Rf.Clients
 REM   call Banner fccP:YES
 REM   Call Echo "fccPurge................: [DO:YES]"
 REM   call "%fms_home%\bin\fccstat.exe" -clear>>"%temp%\zzfcc2ClearPurge.log"
 REM   call "%fms_home%\bin\fccstat.exe" -purge>>"%temp%\zzfcc2ClearPurge.log"
 REM  goto :Next
 REM :fccClearPurgeJumbOver
 REM   call Banner fccP:NO
 REM   Call Echo "fccPurge................: [DO:NO]"
 REM   goto :Next
 goto :eof
rem ----------------------------------------------------------------------------
:CustomEvaluate
 rem set's Custom environ for Evaluate
 rem set JobMgr_RfExtEvalROpt=-Custom02Log_DPNE "%temp%\JobTempSO\NX_updatePattern_results.txt"
 rem set JobMgr_RfExtEvalROptForPrint=ON ..
 goto :eof
rem ----------------------------------------------------------------------------
:CustomRefileSO
 rem set's Custom environ IF SO Side Objects is refiled
 goto :eof
rem ----------------------------------------------------------------------------
:CustomRefileRO
 rem set's Custom environ IF RO Replica Objects is refiled
 goto :eof
