forked from 1b-agent/opencadstudio-upstream
Merge pull request #1809 from ramox81/codex/pdfimport-parity
PDFIMPORT: command-line file import, measured scale and curve recognition
This commit is contained in:
commit
a66880be31
3 files changed
+584
-48
No files matched your search
@@ -749,9 +749,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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user