forked from 1b-agent/opencadstudio-upstream
Merge review/1845: PR #1845 DGNIMPORT with fixes
# Conflicts: # src/app/commands/dgn_import.rs
This commit is contained in:
commit
fba1dfcd88
36 files changed
+2237
-501
No files matched your search
@@ -2277,6 +2277,7 @@ impl OpenCADStudio {
|
||||
// The DGN Import window, one field per call: "path=<file>" (as
|
||||
// Change… picks it), "model=<n>", "target=new|current",
|
||||
// "conflict=prefix|ignore", "units=master|sub", "explode=on|off",
|
||||
// "references=translate|ignore|underlay", "existing=prompt|overwrite|keep",
|
||||
// "mapping=layer|linetype|lineweight|color", "ok" or "cancel".
|
||||
"dgn_import_dialog" => {
|
||||
use crate::ui::window::import_dialogs::ImportDialogMsg as I;
|
||||
@@ -2314,6 +2315,18 @@ impl OpenCADStudio {
|
||||
_ => return Err(bad()),
|
||||
}),
|
||||
"explode" => I::DgnExplode(on(value)?),
|
||||
"references" => I::DgnReferences(match value {
|
||||
"translate" => crate::modules::insert::dgn_import::ReferenceMode::Translate,
|
||||
"ignore" => crate::modules::insert::dgn_import::ReferenceMode::Ignore,
|
||||
"underlay" => crate::modules::insert::dgn_import::ReferenceMode::Underlay,
|
||||
_ => return Err(bad()),
|
||||
}),
|
||||
"existing" => I::DgnExisting(match value {
|
||||
"prompt" => crate::modules::insert::dgn_import::ExistingReference::Prompt,
|
||||
"overwrite" => crate::modules::insert::dgn_import::ExistingReference::Overwrite,
|
||||
"keep" => crate::modules::insert::dgn_import::ExistingReference::Keep,
|
||||
_ => return Err(bad()),
|
||||
}),
|
||||
"mapping" => I::DgnMappingTab(match value {
|
||||
"layer" => 0,
|
||||
"linetype" => 1,
|
||||
|
||||
Reference in new issue
Block a user