SAVEAS version and binary DXF, default save version (fixes #421) (#431)

Squash of PR #431 by @vangel76.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valentin Klein
2026-10-11 11:19:47 -04:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 9e3379882f
commit b3a73626b2
18 changed files with 359 additions and 32 deletions
+3
View File
@@ -132,6 +132,9 @@ fn install_io() {
write: |d, name| cadcraft_io::write(d, name).map_err(|e| e.to_string()),
plot: Some(|d, space, opts| cadcraft_io::plot(d, space, opts).map_err(|e| e.to_string())),
});
cadcraft_engine::cmd::file::set_write_as(|d, name, o| {
cadcraft_io::write_with(d, name, &cadcraft_io::SaveOptions { version: o.version, binary: o.binary }).map_err(|e| e.to_string())
});
}
fn open(s: &mut Session, path: &str) -> Result<(), String> {