Files
kabellaengen/bin/getexdraw.bat
T
2025-06-18 18:56:33 +02:00

30 lines
628 B
Batchfile

@echo off
if [%1]==[] goto usage
for /F %%i in ("%1") do set FILENAME=%%~ni
call C:\10-Develop\gitrepos\kabellaengen\bin\setenv.bat
echo --hole Positionen
call getpositions.bat --filename %1 -s -r -w %FILENAME%_positions.json
echo --erzeuge Graph mit Routing
call routing.bat --filename %FILENAME%_positions.json -w %FILENAME%_todraw.json
echo --zeichne Kabel in dxf Datei
call draw_dxf.bat --filename %FILENAME%_todraw.json --new %FILENAME%_cables.dxf -x %FILENAME%_cables.xlsx
move %PROJECT_WORK%\%FILENAME%_* %INSTALL_DIR%
pause
goto :eof
:usage
@echo Usage: %0 ^<dxfinWorkOrdner.dxf^>
exit /B 1
goto :eof