PDFIMPORT: command-line file import, viewport measure scale, curve recognition

PDFIMPORT follows FILEDIA and -PDFIMPORT asks for the file, page,
insertion point, scale and rotation on the command line. A page with a
viewport measure is imported in its measured units. Straight polylines
that trace arcs, circles and ellipses, and runs of circular Bezier arcs
on one circle, become those objects; other Bezier curves become one
SPLINE each.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-10-15 14:46:52 +03:00
1 parent 39c3e9af58
commit 91624354c8
3 files changed
+584 -48

No files matched your search

+7 -2
View File
@@ -690,9 +690,14 @@ impl OpenCADStudio {
self.open_blocks_palette(Some(tab));
}
"PDFIMPORT" => {
"PDFIMPORT" | "-PDFIMPORT" => {
use crate::command::CadCommand;
let command = crate::modules::insert::pdf_import::PdfImportCommand::new();
use crate::modules::insert::pdf_import::PdfImportCommand;
let command = if cmd == "-PDFIMPORT" {
PdfImportCommand::command_line()
} else {
PdfImportCommand::new()
};
self.command_line.push_info(&command.prompt());
self.tabs[i].active_cmd = Some(Box::new(command));
}