From 23e6bf77d6682513d08f2be9cab09b97a9caec4d Mon Sep 17 00:00:00 2001 From: mistangl Date: Wed, 25 Jun 2025 14:55:07 +0200 Subject: [PATCH] =?UTF-8?q?Abfrage=20=C3=BCber=20gelingen=20nach=20jedem?= =?UTF-8?q?=20Schritt=20in=20der=20getexdraw?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/getexdraw.bat | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/bin/getexdraw.bat b/bin/getexdraw.bat index 402483e..c8659ec 100644 --- a/bin/getexdraw.bat +++ b/bin/getexdraw.bat @@ -17,20 +17,28 @@ call C:\10-Develop\gitrepos\kabellaengen\bin\setenv.bat echo --hole Positionen call getpositions.bat --filename %1 -s -r -w %FILENAME%_positions.json +if not exist "%FILENAME%_positions.json" ( + @echo getpositions failed + goto :eof +) echo --erzeuge Graph mit Routing call routing.bat --filename %FILENAME%_positions.json -w %FILENAME%_todraw.json +if not exist "%FILENAME%_todraw.json" ( + @echo routing failed + goto :eof +) echo --zeichne Kabel in dxf Datei call draw_dxf.bat --filename %FILENAME%_todraw.json --new %FILENAME%_cables.dxf -x %FILENAME%_cables.xlsx - +if not exist "%FILENAME%_cables.xlsx" ( + @echo draw_dxf failed + goto :eof +) mkdir %INSTALL_DIR%\%FILENAME% move %PROJECT_WORK%\%FILENAME%_* %INSTALL_DIR%\%FILENAME% pause -goto :eof - - :usage @echo Usage: %0 ^ exit /B 1