Bugfix im Pfad der Fehlerabfrage. Vollständiger Pfad zu den Zwischendateien nötig.
This commit is contained in:
+18
-10
@@ -10,29 +10,37 @@ for %%i in ("%~1") do (
|
|||||||
REM echo Dateiname ohne Erweiterung: %FILENAME%
|
REM echo Dateiname ohne Erweiterung: %FILENAME%
|
||||||
REM echo Erweiterung: %EXT%
|
REM echo Erweiterung: %EXT%
|
||||||
REM echo Verzeichnis: %DIR%
|
REM echo Verzeichnis: %DIR%
|
||||||
|
REM
|
||||||
|
REM Namen der Zwischenergebnis Dateien
|
||||||
|
set JSON_POS=%FILENAME%_positions.json
|
||||||
|
set JSON_TODRAW=%FILENAME%_todraw.json
|
||||||
|
REM Namen der Ergebnisdateien
|
||||||
|
set EXCEL_RES=%FILENAME%_cables.xlsx
|
||||||
|
set DXF_RES=%FILENAME%_cables.dxf
|
||||||
|
|
||||||
|
|
||||||
call C:\kabellaengen\bin\setenv.bat
|
call C:\10-Develop\gitrepos\kabellaengen\bin\setenv.bat
|
||||||
|
|
||||||
|
|
||||||
echo --hole Positionen
|
echo --hole Positionen
|
||||||
call getpositions.bat --filename %1 -s -r -w %FILENAME%_positions.json
|
call getpositions.bat --filename %1 -s -r -w %JSON_POS%
|
||||||
if not exist "%FILENAME%_positions.json" (
|
|
||||||
@echo getpositions failed
|
if not exist "%PROJECT_WORK%\%JSON_POS%" (
|
||||||
|
@echo -failed- getpositions
|
||||||
pause
|
pause
|
||||||
goto :eof
|
goto :eof
|
||||||
)
|
)
|
||||||
echo --erzeuge Graph mit Routing
|
echo --erzeuge Graph mit Routing
|
||||||
call routing.bat --filename %FILENAME%_positions.json -w %FILENAME%_todraw.json
|
call routing.bat --filename %JSON_POS% -w %JSON_TODRAW%
|
||||||
if not exist "%FILENAME%_todraw.json" (
|
if not exist "%PROJECT_WORK%\%JSON_TODRAW%" (
|
||||||
@echo routing failed
|
@echo -failed- routing
|
||||||
pause
|
pause
|
||||||
goto :eof
|
goto :eof
|
||||||
)
|
)
|
||||||
echo --zeichne Kabel in dxf Datei
|
echo --zeichne Kabel in dxf Datei
|
||||||
call draw_dxf.bat --filename %FILENAME%_todraw.json --new %FILENAME%_cables.dxf -x %FILENAME%_cables.xlsx
|
call draw_dxf.bat --filename %JSON_TODRAW% --new %DXF_RES% -x %EXCEL_RES%
|
||||||
if not exist "%FILENAME%_cables.xlsx" (
|
if not exist "%PROJECT_WORK%\%EXCEL_RES%" (
|
||||||
@echo draw_dxf failed
|
@echo -failed- draw_dxf
|
||||||
pause
|
pause
|
||||||
goto :eof
|
goto :eof
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user