rem CGTech environment
call "%CGTECH_INSTALL%\windows\commands\cgtenv"
rem set CGTECH_IGNORELAST=TRUE
set CGTECH_CLASSES=%CGTECH_INSTALL%\classes
set CGTECH_PRODUCTS=%CGTECH_INSTALL%\windows
set CGTECH_LIBRARY=%CGTECH_INSTALL%\library\
if "%CGTECH_LICENSE%" == "" set CGTECH_LICENSE=%CGTECH_PRODUCTS%\license
if "%TEMP%" == "" set TEMP=C:\TEMP
if "%TMP%" == "" set TMP=C:\TEMP
if "%CGTECH_LOCALE%" == "" set CGTECH_LOCALE=english
set CGTECH_LANGUAGE=%CGTECH_CLASSES%\%CGTECH_LOCALE%
set CGTECH_HELP=%CGTECH_INSTALL%\hhelp
set CGTECH_SHOWROOM=%CGTECH_INSTALL%\showroom\
set CGTECH_SAMPLES=%CGTECH_INSTALL%\samples\
set CGTECH_TRAINING=%CGTECH_INSTALL%\training\
set CGTECH_DEFAULT_UNITS=MILLIMETER
set CGTECH_RGB_TXT=%CGTECH_PRODUCTS%\vericut\rgbhues.txt
if "%CGTECH_JRE%" == "" set CGTECH_JRE=%CGTECH_PRODUCTS%\jre
if NOT "%CGTPATH%" == "" goto cgtpathset
set path=%CGTECH_PRODUCTS%\vericut;%CGTECH_PRODUCTS%\license;%PATH%
set cgtpath=true
:cgtpathset
set waitopt=
set argstr=
if test%1==test goto cgtchkend
if %1==BATCH set waitopt=/wait
if %1==batch set waitopt=/wait
if %1==BATCHP set waitopt=/wait
if %1==batchp set waitopt=/wait
set argstr=%1
shift
:cgtgetarg
if test%1==test goto cgtchkend
if %1==BATCH set waitopt=/wait
if %1==batch set waitopt=/wait
if %1==BATCHP set waitopt=/wait
if %1==batchp set waitopt=/wait
set argstr=%argstr% %1
shift
goto cgtgetarg
:cgtchkend
if "%OS%" == "Windows_NT" set start_cmd=start "VERICUT" %waitopt%
if "%OS%" == "" set start_cmd=start %waitopt%
set UGII_VENDOR_DIR=%CGTECH_INSTALL%\windows\nx\v18
"%UGII_ROOT_DIR%\UGII.BAT" %argstr%
:end_cgtech