| @echo off |
| REM HEG BRep batch CLI: STEP folder -> Excel. |
| REM |
| REM Usage: |
| REM heg_brep_batch.bat <step_folder> [output.xlsx] [--device cpu|cuda] ... |
|
|
| setlocal |
| set HERE=%~dp0 |
| set PYTHONPATH=%HERE%;%HERE%BRepExtractor;%PYTHONPATH% |
| set PYTHONUNBUFFERED=1 |
| set PYTHONWARNINGS=ignore::DeprecationWarning |
| REM Mimic conda activation so MKL / OCC / torch DLLs are findable. |
| set PATH=%HERE%python;%HERE%python\Library\bin;%HERE%python\Scripts;%PATH% |
|
|
| "%HERE%python\python.exe" -u -m heg_brep.batch ^ |
| --pass1_model "%HERE%models\pass1.pt" ^ |
| --elbow_model "%HERE%models\elbow.pt" ^ |
| --tee_model "%HERE%models\tee.pt" ^ |
| %* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| @echo off |
| REM HEG BRep classification service launcher. |
| REM |
| REM Spawns the FastAPI service from the bundled Python. Prints `READY port=<N>` |
| REM to stdout once models are loaded; from then on the host (C# 3D viewer) |
| REM should POST to http://127.0.0.1:<N>/classify. |
| REM |
| REM Forward all command-line args (e.g. --device cpu, --pass2_min_conf 0.9). |
|
|
| setlocal |
| set HERE=%~dp0 |
| set PYTHONPATH=%HERE%;%HERE%BRepExtractor;%PYTHONPATH% |
| set PYTHONUNBUFFERED=1 |
| set PYTHONWARNINGS=ignore::DeprecationWarning |
| REM Mimic conda activation so MKL / OCC / torch DLLs are findable. |
| set PATH=%HERE%python;%HERE%python\Library\bin;%HERE%python\Scripts;%PATH% |
|
|
| REM Override default model locations to point at the bundled models folder. |
| set HEG_PASS1_MODEL=%HERE%models\pass1.pt |
| set HEG_ELBOW_MODEL=%HERE%models\elbow.pt |
| set HEG_TEE_MODEL=%HERE%models\tee.pt |
|
|
| "%HERE%python\python.exe" -u -m heg_brep.server ^ |
| --pass1_model "%HEG_PASS1_MODEL%" ^ |
| --elbow_model "%HEG_ELBOW_MODEL%" ^ |
| --tee_model "%HEG_TEE_MODEL%" ^ |
| %* |
|
|