Abfrage in ioconverter.bat ob die Erzeugung der TIA, etc. xlsx files geklappt aht

This commit is contained in:
2025-07-08 10:02:57 +02:00
parent 304a103a78
commit d0bda8c38a
2 changed files with 15 additions and 10 deletions
+5 -2
View File
@@ -19,8 +19,11 @@ set ERROR_DOUBLE=%FILENAME%_errors.json
set EXCEL_RES=%FILENAME%_cables.xlsx
set DXF_RES=%FILENAME%_cables.dxf
call C:\10-Develop\gitrepos\kabellaengen\bin\setenv.bat
echo on
call C:\kabellaengen\bin\setenv.bat
if exist "_setenv_local.bat" (
call _setenv_local.bat
)
echo.
echo === Fetching Positions ===
+10 -8
View File
@@ -16,31 +16,33 @@ set JSON_POS=%FILENAME%_positions.json
set JSON_TODRAW=%FILENAME%_todraw.json
REM Namen der Ergebnisdateien
set ERROR_DOUBLE=%FILENAME%_errors.json
set RESULT_TIA=%FILENAME%-*_TIA.xlsx
call C:\kabellaengen\bin\setenv.bat
if exist "_setenv_local.bat" (
call _setenv_local.bat
)
call C:\10-Develop\gitrepos\kabellaengen\bin\setenv.bat
echo.
echo === Fetching Positions ===
call getpositions.bat --filename %1 -s -r -w %JSON_POS% -e %ERROR_DOUBLE%
if exist "%PROJECT_WORK%\%ERROR_DOUBLE%" (
@echo -failed- duplicate IDs in given layout
@echo == failed: duplicate IDs in given layout
pause
move %PROJECT_WORK%\%ERROR_DOUBLE% %INSTALL_DIR%
goto :eof
)
if not exist "%PROJECT_WORK%\%JSON_POS%" (
@echo -failed- getpositions
@echo == failed: getpositions
pause
goto :eof
)
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%
move %PROJECT_WORK%\%FILENAME%_* %INSTALL_DIR%\%FILENAME%
goto :eof