You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b67c7b4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
1
# Changelog
2
2
3
+
## 1.6.6 - 2026-09-26
4
+
5
+
- Refactored single-file CLI export and added `batch-export` around one shared execution, validation and NC/DXF export pipeline.
6
+
- Added semantic mm/inch conversion for expanded NC and DXF, milling arc output choices, coordinate and formatting controls, and byte-identical single/batch output.
7
+
- Added mirrored directory exports with JSON/CSV manifests, input safety checks, and four Windows/Linux batch-export presets.
8
+
- Aligned single-file `analyze` with `batch`: both now use milling arc-type detection and turning unsupported-M-code diagnostics, and report matching per-file statuses and diagnostic counts.
9
+
3
10
## 1.6.5 - 2026-09-25
4
11
5
12
- Linux releases now include a versioned x64 archive with GUI and CLI executables plus a SHA-256 checksum. CI builds and smoke-tests both batch presets before publication.
The scripts use UTF-8, read `tests/fixtures/milling` or `tests/fixtures/turning`, and write reports under the system temporary directory in `easy_gcode_plot/batch/milling` or `easy_gcode_plot/batch/turning`. They do not build or run tests. Milling batch analysis detects Arc Type for each file from IJK arcs. If the file has no unambiguous arc, the kernel uses relative IJK.
469
-
The terminal shows each batch file as it is processed, its diagnostics, and the final result. All CLI commands print a readable execution result in the terminal. `trace` and `analyze` write detailed JSON only when `-o` is supplied; `batch` writes JSON and CSV reports to its output directory.
468
+
The scripts use UTF-8, read `tests/fixtures/milling` or `tests/fixtures/turning`, and write reports under the system temporary directory in `easy_gcode_plot/batch/milling` or `easy_gcode_plot/batch/turning`. They do not build or run tests. Both `analyze` and `batch` detect milling Arc Type per program from IJK arcs. If the file has no unambiguous arc, the kernel uses relative IJK.
469
+
The terminal shows each batch file as it is processed, its diagnostics, and the final result. All CLI commands print a readable execution result in the terminal. `trace` and `analyze` write detailed JSON only when `-o` is supplied; `batch` writes JSON and CSV reports to its output directory. For the same program and language, `analyze` and `batch` report matching status, diagnostics, motion and executed-block counts, and unsupported G/M codes; their JSON layouts differ because `analyze` includes detailed trace statistics and `batch` aggregates files.
470
470
471
-
Use `--encoding cp1251` for Windows-1251 input. Export modes include `program`and `cycles`; use `--lang fanuc_mill` for milling. `batch` writes detailed JSON and Excel-friendly CSV reports with per-file `CLEAN` / `WARNINGS` / `ERRORS` status, diagnostic totals and aggregated unsupported G/M codes.`CLEAN`means no diagnostics from this analyzer, not machine validation. An empty scan has overall status `NO_FILES` and a nonzero exit code. It scans `.nc`, `.cnc`, `.ptp`, `.tap` and `.txt` recursively by default; override with `--extensions` or `--top-level-only`.
471
+
Use `--encoding cp1251` for Windows-1251 input. Single `export` and directory `batch-export` share NC/DXF exporters and accept the same options. `full` preserves controller structure; `expanded` exports resolved execution and supports semantic units, milling arc representation, coordinates, sequence numbers, spaces, leading zeroes and comments. `batch-export` writes a mirrored output tree with `batch_export_report.json` and CSV manifest. The existing `batch` command remains analysis-only and writes diagnostic reports with`CLEAN`/ `WARNINGS` / `ERRORS` status. An empty scan has overall status `NO_FILES` and a nonzero exit code. Both directory commands scan `.nc`, `.cnc`, `.ptp`, `.tap` and `.txt` recursively by default and recognize FANUC programs with nonstandard names from their contents; use `--extensions`to restrict suffixes or `--top-level-only` to disable recursion.
472
472
473
473
CLI runs use the same temporary tool discovery as the GUI for a newly opened program: literal `T` words and nearby comments determine geometry for G41/G42. The GUI's manually assigned Current Program tools and Saved Library are separate from that discovery and are not loaded by the CLI. Check inferred tool dimensions before using a compensated trace.
From the repository root, use `.\dist\easy_gcode_plot_cli.exe` instead. When running from source, replace `.\easy_gcode_plot_cli.exe` with `uv run --no-dev python -m app`.
The scripts use UTF-8, read `tests/fixtures/milling` or `tests/fixtures/turning`, and write reports under the system temporary directory in `easy_gcode_plot/batch/milling` or `easy_gcode_plot/batch/turning`. They run the executable in `dist/` directly without building or running tests. For milling batch files, Arc Type is detected separately for each program from IJK arcs. When no arc identifies the type unambiguously, relative IJK is used.
194
-
The terminal shows each batch file as it is processed, its diagnostics, and the final result. All CLI commands print a readable execution result in the terminal. `trace` and `analyze` write detailed JSON only when `-o` is supplied; `batch` writes JSON and CSV reports to its output directory.
194
+
`export` writes one NC or DXF file; `batch-export` reads a directory and writes a separate mirrored tree plus `batch_export_report.json` and `batch_export_report.csv`. Both commands use the same execution and export path, so identical inputs and options produce identical files. `--mode full` preserves controller structure; `--mode expanded` serializes resolved execution geometry and supports `--units auto|mm|inch`, milling `--arc-type auto|ijk-relative|ijk-absolute|radius|linearized`, `--coordinates absolute|incremental`, and `--force-addresses`. NC formatting supports sequence numbers and their start/increment/spacing, spaces, leading zeroes, comments and a safety line. `--format dxf` exports resolved geometry and supports output units. Incompatible options fail with a CLI error.
195
+
196
+
Batch export scans recursively by default; `--top-level-only` and `--extensions` control discovery. With default extensions, batch analysis and export also recognize FANUC programs named without an NC extension or with a part-number suffix by inspecting their first blocks; binary files and unrelated documents are skipped. An explicit `--extensions` list limits the scan to those suffixes. The output directory must be outside the input tree. Files with invalid or incomplete execution are not exported; other files continue. The manifest records each file's diagnostics and output path. Source files are never modified. With an existing packaged CLI, run the four presets using the two scripts above and:
197
+
198
+
```powershell
199
+
.\scripts\ps1\batch\batch_export_mill.ps1
200
+
.\scripts\ps1\batch\batch_export_turn.ps1
201
+
```
202
+
203
+
```bash
204
+
bash scripts/sh/batch/batch_export_mill.sh
205
+
bash scripts/sh/batch/batch_export_turn.sh
206
+
```
207
+
208
+
The scripts use UTF-8, read `tests/fixtures/milling` or `tests/fixtures/turning`, and write reports under the system temporary directory in `easy_gcode_plot/batch/milling` or `easy_gcode_plot/batch/turning`. They run the executable in `dist/` directly without building or running tests. Both `analyze` and `batch` detect milling Arc Type per program from IJK arcs. When no arc identifies the type unambiguously, relative IJK is used.
209
+
The terminal shows each batch file as it is processed, its diagnostics, and the final result. All CLI commands print a readable execution result in the terminal. `trace` and `analyze` write detailed JSON only when `-o` is supplied; `batch` writes JSON and CSV reports to its output directory. For the same program and language, `analyze` and `batch` use the same execution settings and report matching status, diagnostics, motion and executed-block counts, and unsupported G/M codes. Their JSON layouts differ because `analyze` also includes detailed trace statistics while `batch` aggregates files.
195
210
196
211
Use `--lang fanuc_mill` for milling and `--encoding cp1251` for Windows-1251 input. The `batch` command scans `.nc`, `.cnc`, `.ptp`, `.tap` and `.txt` recursively by default and writes `batch_report.json` plus an Excel-friendly `batch_report.csv`. File status is `CLEAN` (no diagnostics), `WARNINGS` (review needed) or `ERRORS` (analysis or input failed); an empty scan has overall status `NO_FILES`. `CLEAN` is not machine validation. The summary includes diagnostic frequencies and unknown/unsupported G/M codes. Use `--extensions .nc,.mpf` to override the file set or `--top-level-only` to disable recursive scanning.
0 commit comments