Commit Graph
96 Commits
Author SHA1 Message Date
dotCooCoo cb45500f1f Merge main into fix/dwg-export 2026-12-05 07:12:45 -08:00
dotCooCoo 9706d36bc6 Merge main into feat/scripts-api-d10-print-options 2026-12-05 06:19:46 -08:00
dotCooCoo 36abc64b39 Merge main into fix/dwg-export 2026-12-05 05:37:17 -08:00
dotCooCoo 25cf207d81 Merge main into feat/scripts-api-d10-print-options 2026-12-04 21:01:02 -08:00
dotCooCoo ccedb75154 Merge main into fix/dwg-export 2026-12-04 19:23:02 -08:00
dotCooCoo 29187c520d Merge main into feat/print-per-job-settings 2026-12-04 18:53:20 -08:00
dotCooCooandAlex-BB44 335c7c64dd DWG: export writes the DXF drawing as DWG 2000 to 2018
DWG was read only: Export As listed it grayed out, document.export
answered with a hint to export DXF, and a script's
AutoCADExportFileFormat.DWG, the default, threw an error.

- document.export {format: dwg}, a .dwg path, and document.exportDxf
  with format: dwg write the drawing the DXF export writes, with the
  same options, converted by craft-dwg in the --dwg-worker copy of the
  app. Versions are 2000, 2004, 2007, 2010, 2013 and 2018; R12, R13
  and R14 are refused with an error that names them. Records the DWG
  writer can't write in that version are left out with a warning that
  counts them by type.
- Export As lists DWG and opens DWG Options: DXF Options with the DWG
  versions. A version remembered from DXF Options that DWG isn't
  written as starts on 2018.
- Scripts: AutoCADExportFileFormat.DWG writes a .dwg file;
  AutoCADRelease13 and 14 with DWG throw an error.

Docs: docs/mcp.md, docs/control-protocol.md, docs/file-format-parity.md,
docs/target-app-parity.md, docs/roadmap.md.

Co-authored-by: Alex-BB44 <[email protected]>
2026-12-04 14:52:49 -08:00
dotCooCoo ba27846c2a Merge main into feat/print-per-job-settings 2026-12-04 01:02:33 -08:00
dotCooCoo 52f59a730f Merge main into feat/scripts-api-d10-print-options 2026-12-03 11:32:04 -08:00
dotCooCoo 644a4e6b8c Merge main into feat/scripts-export-for-screens 2026-12-03 11:15:24 -08:00
.CooCoo 06d4971200 Merge pull request #10648 from dotCooCoo/fix/dxf-unit-scale-ratio-percent
Scripts: ExportOptionsAutoCAD.unitScaleRatio is a percentage
2026-12-03 07:34:11 -08:00
dotCooCoo 9e3327da32 Merge main into feat/print-per-job-settings 2026-12-02 18:25:50 -08:00
dotCooCoo 1922ba20c9 Scripts: ExportOptionsAutoCAD.unitScaleRatio is a percentage
The scripting reference gives unitScaleRatio as the ratio, as a
percentage, by which the output is scaled, from 0 to 1000. exportFile
passed it to the DXF writer as drawing units per unit, so 100 wrote
the drawing 100 times too large and 1 wrote it at full size.

- The value is divided by 100 before it reaches the DXF writer, and a
  value left out still writes at full size (100).
- A value below 0.0001, which the writer's smallest scale cannot
  represent, throws a range error at the script instead of an error
  about the DXF scale from the writer.
- docs/mcp.md describes the percentage and the default of 100.

The option was added in #9266.
2026-12-02 17:27:06 -08:00
dotCooCoo 0a2d25e334 Merge main into feat/scripts-export-for-screens 2026-12-02 17:00:47 -08:00
dotCooCoo fe2c3793d8 Merge main into feat/scripts-api-d10-print-options 2026-12-02 16:33:32 -08:00
dotCooCoo 7b433a52fe Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 16:27:15 -08:00
dotCooCoo 76dd6ac67f Merge main into feat/scripts-api-d10-print-options 2026-12-02 15:28:29 -08:00
dotCooCoo d73dad7ee0 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 14:38:27 -08:00
dotCooCoo e8ec89cbb1 Merge main into feat/scripts-export-for-screens 2026-12-02 14:09:48 -08:00
dotCooCoo c4b6636b28 Merge main into feat/print-per-job-settings 2026-12-02 14:05:16 -08:00
dotCooCoo 1f2e9bff33 Merge main into feat/scripts-export-autocad 2026-12-02 14:02:36 -08:00
dotCooCoo 98310a0be5 Merge main into feat/scripts-api-d10-print-options 2026-12-02 12:08:33 -08:00
dotCooCoo a65d251c87 Scripts: DXF scale tests fail on a drawing with no polyline vertices
dxf_widest and dxf_leftmost folded from f64::MIN and f64::MAX, so a DXF
that kept its header but lost every vertex gave an infinite product and
the unitScaleRatio and pica assertions still passed. Both now reduce the
coordinates and fail when there are none.

docs/mcp.md: a relative save or open path is resolved against the
working folder of the process that wrote or read the file.
2026-12-02 11:52:55 -08:00
dotCooCoo 26a5e413de Merge main into feat/scripts-export-for-screens 2026-12-02 11:48:42 -08:00
dotCooCoo fe3d001806 Merge main into feat/scripts-export-autocad 2026-12-02 11:48:42 -08:00
dotCooCoo 7f64fc6619 Merge main into feat/print-per-job-settings 2026-12-02 11:40:15 -08:00
dotCooCoo 497e2eb4e7 Merge main into feat/scripts-api-d8b-tracing 2026-12-02 11:33:20 -08:00
dotCooCoo b14d841476 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 11:28:17 -08:00
.CooCoo 0a14ee1d23 Merge pull request #10363 from dotCooCoo/fix/close-native-range
Scripts: close with SaveOptions.SAVECHANGES saves a native file whose last save named a range
2026-12-02 11:15:06 -08:00
dotCooCoo 7e4b336db2 Merge main into feat/print-per-job-settings 2026-12-02 05:30:15 -08:00
dotCooCoo b969a1fe38 Merge main into feat/scripts-api-d10-print-options 2026-12-02 05:22:13 -08:00
dotCooCoo edb70b666c Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 05:18:44 -08:00
dotCooCoo 47a8bcde18 Merge main into feat/scripts-api-d8b-tracing 2026-12-02 02:46:39 -08:00
dotCooCoo 1bb0553d8e Merge main into feat/print-per-job-settings 2026-12-02 02:20:58 -08:00
dotCooCoo fdd2c513e9 Merge main into feat/scripts-api-d10-print-options 2026-12-02 02:20:54 -08:00
dotCooCoo d09d00fa25 Merge main into feat/scripts-export-autocad 2026-12-02 02:20:49 -08:00
dotCooCoo c6f678e4a4 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-02 02:20:09 -08:00
dotCooCoo d8154cf5c3 Merge main into feat/scripts-export-for-screens 2026-12-02 02:04:56 -08:00
.CooCoo e3e84bd4fb Merge pull request #10539 from dotCooCoo/fix/ai-save-options-compatibility-default
Scripts: new IllustratorSaveOptions reads compatibility as ILLUSTRATOR19
2026-12-02 02:01:50 -08:00
dotCooCoo 4bcdc5d77c Merge main into feat/scripts-api-d8b-tracing 2026-12-02 01:26:36 -08:00
dotCooCoo 46dbb1fb28 Tests: script save tests remove their folders when an assertion fails
folder() in tests/script_save_open.rs returned a PathBuf, and each test
removed its folder only on its last line, so a failed assertion or a
panicking script left the folder in the system's temporary folder. It now
returns a Workspace guard, as tests/script_print.rs does, which removes
the folder when it is dropped and clears read-only flags first when the
first removal fails (Windows does not delete a read-only file).

a_script_gate_does_not_write_over_a_read_only_file in file_access.rs made
its file writable again and removed its folder only after its last
assertion; a guard now does both when the test ends.
2026-12-01 22:41:20 -08:00
dotCooCoo e5df2445e3 Scripts: new IllustratorSaveOptions reads compatibility as ILLUSTRATOR19
A new IllustratorSaveOptions left compatibility unset, so a script that
read it before setting it got undefined. It now starts at
Compatibility.ILLUSTRATOR19, the documented default, which saveAs already
accepts without changing what it writes.
2026-12-01 21:31:56 -08:00
dotCooCoo 7f10f7aa96 Merge main into feat/scripts-export-autocad 2026-12-01 15:10:18 -08:00
dotCooCoo 856d1a3870 Merge main into feat/scripts-api-d8c-rasterize-capture 2026-12-01 14:59:55 -08:00
dotCooCoo 784491b1bd Merge main into feat/scripts-api-d10-print-options 2026-12-01 14:13:21 -08:00
dotCooCoo a7129f3eed Merge main into feat/scripts-api-d8b-tracing 2026-12-01 14:07:15 -08:00
dotCooCoo 172a6c6c99 Merge main into feat/scripts-export-for-screens 2026-12-01 13:57:07 -08:00
dotCooCoo c0411d4e4b Export: a dangling link to the primary file counts as a collision
When an export's linked image path was a link to the primary file that did
not exist yet, the destination check compared the link as written. The
primary was written first, the link then led to it, and the image replaced
it. The check now compares such a link by the file it leads to.
2026-12-01 07:31:36 -08:00
dotCooCoo 32543571f3 Scripts: close with SaveOptions.SAVECHANGES saves a native file whose last save named a range
A native save keeps every artboard in its main file and reads `range` only
for the separate files of `separateArtboards`. The close check treated a
native document last saved with `range` and without `separateArtboards` as
a save of some artboards, and refused to close it although the save writes
every artboard.
2026-11-30 20:41:27 -08:00
dotCooCoo 406a612d7b Merge main into feat/scripts-export-for-screens 2026-11-30 16:01:57 -08:00