forked from 1b-agent/opencadstudio-upstream
Merge pull request #1845 from ramox81/codex/dgnimport-followups
DGNIMPORT: names, cells, text placement, curves, 3D, models and references # Conflicts: # Cargo.lock
This commit is contained in:
commit
2b807a7654
36 files changed
+2041
-461
No files matched your search
@@ -2237,6 +2237,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;
|
||||
@@ -2274,6 +2275,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