Expose Copy Nested Objects in the Modify extension

This commit is contained in:
ramox81 committed 2026-09-11 09:35:23 +03:00
1 parent 7d0c059b30
commit 0af477544d
3 files changed
+14

No files matched your search

+7
View File
@@ -659,6 +659,13 @@ impl OpenCADStudio {
// every nested object is copied — the block is not exploded).
"NCOPY" | "NCOPYALL" => {
use crate::modules::draw::modify::explode::explode_entity;
if cmd == "NCOPY" && self.tabs[i].scene.selected.is_empty() {
use crate::modules::draw::select::SelectObjectsCommand;
let selection = SelectObjectsCommand::new("NCOPY");
self.command_line.push_info(&selection.prompt());
self.tabs[i].active_cmd = Some(Box::new(selection));
return Some(self.finish_dispatch(cmd));
}
let inserts: Vec<acadrust::Handle> = self.tabs[i]
.scene
.selected_entities()
+6
View File
@@ -0,0 +1,6 @@
Tool {
command: "NCOPY",
label: "Copy Nested Objects",
icon: include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/assets/icons/modify_ncopy.svg")),
options: &[],
}