@echo off
					
REM **************************************************************************
REM Starts ProEWildFire 3.0 and creates folders if necessary
REM **************************************************************************


echo Create PDF & STEP Folder in H:
IF NOT EXIST H:\PROE_to_PDF MKDIR H:\PROE_to_PDF
IF NOT EXIST H:\PROE_to_STEP MKDIR H:\PROE_to_STEP
IF NOT EXIST H:\PROE_to_IGES MKDIR H:\PROE_to_IGES
IF NOT EXIST H:\PROE_to_PROE MKDIR H:\PROE_to_PROE

IF NOT EXIST C:\PTC\ATTools MKDIR C:\PTC\ATTools
IF NOT EXIST C:\PTC\ATTools\text MKDIR C:\PTC\ATTools\text
IF NOT EXIST C:\PTC\Proe\text\java MKDIR C:\PTC\Proe\text\java


REM **** creates local directories *******************************************
if not exist C:\PTC\%USERNAME% mkdir C:\ptc\%USERNAME%
if not exist C:\PTC\%USERNAME%\pdm_cache mkdir C:\ptc\%USERNAME%\pdm_cache
if not exist C:\PTC\trails mkdir C:\ptc\trails
if not exist C:\PTC\pdf mkdir C:\ptc\pdf
if not exist C:\Temp mkdir C:\Temp



REM ****  set LOAD POINT directory  **************************************************
#if exist C:\ptc\proewildfire3 set proe_load=C:\ptc\proewildfire3
if exist O:\proewildfire3 set proe_load=O:\proewildfire3

REM **** set work dir ********************************************************
if exist C:\ptc\%USERNAME% set work_dir=C:\ptc\%USERNAME%

REM **** set pro dir *********************************************************
if exist O:\pro_stds set pro_dir=O:\pro_stds

REM **** set graphiclib dir *********************************************************
if exist O:\graphiclib set graphiclib_dir=O:\graphiclib

REM **** PDMLink work folder **********************************************
set PTC_WF_ROOT=%work_dir%\pdm_cache

REM **** set path *********************************************************
set path=%path%;%proe_load%\bin
REM set classpath=C:\PTC\ATTools;C:\PTC\Proe\text\java\pfc.jar;C:\PTC\Proe\text\java\pfcasync.jar
set UWGM_BACKGROUND=off

REM ****  SWITCHING TO USER WORKING DIR  ******************************************
cd /D %work_dir%

REM **** clean workdir *******************************************************
REM call %pro_dir%\text_wf3\clean.bat

REM **** copy files to local computer ****************************************
if not exist %work_dir%\config.pro copy %pro_dir%\configs\config_local.pro %work_dir%\config.pro


REM echo Downloading ATTools...
REM del /S /Q C:\PTC\ATTools
REM copy O:\pro_stds\ATTools\*.* C:\PTC\ATTools
REM copy O:\pro_stds\ATTools\text\atinterface.txt C:\PTC\ATTools\text
REM The two pfc*jar files is ProE version dependent.
REM If ProE is updated to a newer version these files must be updated.
REM copy O:\pro_stds\ATTools_jars\pfc*.jar C:\PTC\Proe\text\java


echo Printing banner...
echo
echo      #####  #####   ###   #   #  #####  #####  #  #   #
echo      #      #      #   #  ##  #  #      #   #  #  ##  #
echo      #####  #      #####  # # #  #      #   #  #  # # #
echo          #  #      #   #  #  ##  #      #   #  #  #  ##
echo      #####  #####  #   #  #   #  #####  #####  #  #   #
echo


REM **** start ProE *****************************************************
call %proe_load%\bin\proe.exe




