REM #Doc: Custom NX.Part_Utility Environ-script
REM #Doc: it is used to set customer environment before Part_Utility start's
REM #LUp: 17.01.2019/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 "NxPartUtil" call :CustomNxPartUtil
if /I "%~1" equ "EVALUATE"   call :CustomEvaluate

if /I "%JobMgr_NxPartUtilReplica%" equ "YES" Call :CustomNxPartUtilRO
if /I "%JobMgr_NxPartUtilReplica%" neq "YES" Call :CustomNxPartUtilSO

goto :eof

rem ----------------------------------------------------------------------------
:CustomDefaults
 REM use JobMgr_use_TcServerKill [default=OFF]
 set JobMgr_use_TcServerKill=OFF
 goto :eof
rem ----------------------------------------------------------------------------
:CustomNxPartUtil
 REM set's Custom environ for NX.Part_Utility

 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 ResultClassification
 REM set ResultClassificationCustom_DPNE=%CmdCurRoot_DP%\Resources\NxPartUpdNxSylog_ResClRules.xml

 REM #Dco: Optional set Site dir -------
 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 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 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 30.01.2019/J.Fes eingestelt nach absprache AMAZONE Team set UGII_CONVERT_LEGACY_XXX_LINEWIDTH_
 REM  # (0.13)
 set UGII_CONVERT_LEGACY_THIN_LINEWIDTH_TO_NEW_LINEWIDTH=1
 REM  # (0.18)
 set UGII_CONVERT_LEGACY_NORMAL_LINEWIDTH_TO_NEW_LINEWIDTH=2
 REM  # (0.25)
 set UGII_CONVERT_LEGACY_THICK_LINEWIDTH_TO_NEW_LINEWIDTH=3

 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\Pu_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\Pu_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 ---------------------------------------------------------------------------

 goto :eof
rem ----------------------------------------------------------------------------
:CustomEvaluate
 REM set's Custom environ for Evaluate
 REM set JobMgr_ProcessExtEvalROpt=-Custom02Log_DPNE "%temp%\JobTempSO\NX_updatePattern_results.txt"
 REM set JobMgr_ProcessExtEvalROptForPrint=ON ..
 goto :eof
rem ----------------------------------------------------------------------------
:CustomNxPartUtilSO
 REM set's Custom environ IF SO Site Objects is processed
 goto :eof
rem ----------------------------------------------------------------------------
:CustomNxPartUtilRO
 REM set's Custom environ IF RO Replica Objects is processed
 goto :eof
