Abfrage in ioconverter.bat ob die Erzeugung der TIA, etc. xlsx files geklappt aht
This commit is contained in:
+5
-2
@@ -19,8 +19,11 @@ set ERROR_DOUBLE=%FILENAME%_errors.json
|
|||||||
set EXCEL_RES=%FILENAME%_cables.xlsx
|
set EXCEL_RES=%FILENAME%_cables.xlsx
|
||||||
set DXF_RES=%FILENAME%_cables.dxf
|
set DXF_RES=%FILENAME%_cables.dxf
|
||||||
|
|
||||||
|
echo on
|
||||||
call C:\10-Develop\gitrepos\kabellaengen\bin\setenv.bat
|
call C:\kabellaengen\bin\setenv.bat
|
||||||
|
if exist "_setenv_local.bat" (
|
||||||
|
call _setenv_local.bat
|
||||||
|
)
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo === Fetching Positions ===
|
echo === Fetching Positions ===
|
||||||
|
|||||||
+10
-8
@@ -16,31 +16,33 @@ set JSON_POS=%FILENAME%_positions.json
|
|||||||
set JSON_TODRAW=%FILENAME%_todraw.json
|
set JSON_TODRAW=%FILENAME%_todraw.json
|
||||||
REM Namen der Ergebnisdateien
|
REM Namen der Ergebnisdateien
|
||||||
set ERROR_DOUBLE=%FILENAME%_errors.json
|
set ERROR_DOUBLE=%FILENAME%_errors.json
|
||||||
|
set RESULT_TIA=%FILENAME%-*_TIA.xlsx
|
||||||
|
|
||||||
|
|
||||||
call C:\kabellaengen\bin\setenv.bat
|
call C:\10-Develop\gitrepos\kabellaengen\bin\setenv.bat
|
||||||
if exist "_setenv_local.bat" (
|
|
||||||
call _setenv_local.bat
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo === Fetching Positions ===
|
echo === Fetching Positions ===
|
||||||
call getpositions.bat --filename %1 -s -r -w %JSON_POS% -e %ERROR_DOUBLE%
|
call getpositions.bat --filename %1 -s -r -w %JSON_POS% -e %ERROR_DOUBLE%
|
||||||
if exist "%PROJECT_WORK%\%ERROR_DOUBLE%" (
|
if exist "%PROJECT_WORK%\%ERROR_DOUBLE%" (
|
||||||
@echo -failed- duplicate IDs in given layout
|
@echo == failed: duplicate IDs in given layout
|
||||||
pause
|
pause
|
||||||
move %PROJECT_WORK%\%ERROR_DOUBLE% %INSTALL_DIR%
|
move %PROJECT_WORK%\%ERROR_DOUBLE% %INSTALL_DIR%
|
||||||
goto :eof
|
goto :eof
|
||||||
)
|
)
|
||||||
if not exist "%PROJECT_WORK%\%JSON_POS%" (
|
if not exist "%PROJECT_WORK%\%JSON_POS%" (
|
||||||
@echo -failed- getpositions
|
@echo == failed: getpositions
|
||||||
pause
|
pause
|
||||||
goto :eof
|
goto :eof
|
||||||
)
|
)
|
||||||
echo === Creating Excel Files for TIA, WSCAD, .. ===
|
echo === Creating Excel Files for TIA, WSCAD, .. ===
|
||||||
call ioconvert.bat --filename %JSON_POS% -outname %FILENAME%
|
call portalexport.bat --filename %JSON_POS% --outname %FILENAME%
|
||||||
|
if not exist %RESULT_TIA% (
|
||||||
|
@echo == failed: creating .xlsx files
|
||||||
|
pause
|
||||||
|
goto :eof
|
||||||
|
)
|
||||||
mkdir %INSTALL_DIR%\%FILENAME%
|
mkdir %INSTALL_DIR%\%FILENAME%
|
||||||
move %PROJECT_WORK%\%FILENAME%_* %INSTALL_DIR%\%FILENAME%
|
move %PROJECT_WORK%\%FILENAME%_* %INSTALL_DIR%\%FILENAME%
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|||||||
Reference in New Issue
Block a user