Xref attach: Attach dialog, reference prompts, and xref drawings other applications can open

Attach External Reference dialog after XATTACH / ATTACH; ATTACH routes
drawings, PDFs and images; placement prompts and messages follow the
reference (presets, Corner/XYZ, nonzero check, existing definition reuse,
missing file, self-reference); name keeps the file's case; overlay and
path type at attach; one undo step for definition and INSERT; -XREF option
prompt and `?` table; XREF opens the palette; ER alias; xref Properties
rows; dependent symbols flagged and remapped and resolved content left out
of the saved file; dialog_ok automation action; localized labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-09-23 14:44:12 +03:00
1 parent f2d534bf71
commit 6bd55bc32e
44 files changed
+2514 -359

No files matched your search

+22
View File
@@ -265,6 +265,28 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"Added annotation scale {arg}." => Some(("view", "added-annotation-scale-arg")),
"Added from GitHub" => Some(("plugins", "added-from-github")),
"Adjust" => Some(("insert", "adjust")),
"Attach External Reference" => Some(("insert", "xref-attach-dialog-title")),
"Browse..." => Some(("insert", "xref-attach-browse")),
"Reference Type" => Some(("insert", "xref-attach-reference-type")),
"Specify On-screen" => Some(("insert", "xref-attach-specify-on-screen")),
"Uniform Scale" => Some(("insert", "xref-attach-uniform-scale")),
"Insertion point" => Some(("insert", "xref-attach-insertion-point")),
"Angle:" => Some(("insert", "xref-attach-angle")),
"Block Unit" => Some(("insert", "xref-attach-block-unit")),
"Unit:" => Some(("insert", "xref-attach-unit")),
"Factor:" => Some(("insert", "xref-attach-factor")),
"Found in:" => Some(("insert", "xref-attach-found-in")),
"Saved path:" => Some(("insert", "xref-attach-saved-path")),
"Show Details" => Some(("insert", "xref-attach-show-details")),
"Hide Details" => Some(("insert", "xref-attach-hide-details")),
"Select Reference File" => Some(("insert", "xref-attach-select-file")),
"All Reference Files" => Some(("insert", "xref-attach-all-files")),
"Inserts references to external files such as other drawings, raster images, and underlays." => Some(("insert", "xref-attach-help")),
"Invalid input." => Some(("insert", "xref-attach-invalid-input")),
"Insertion point X" => Some(("insert", "xref-insertion-point-x")),
"Insertion point Y" => Some(("insert", "xref-insertion-point-y")),
"Insertion point Z" => Some(("insert", "xref-insertion-point-z")),
"Layer property overrides" => Some(("insert", "xref-layer-property-overrides")),
"Adjust Colors for Background" => Some(("properties", "adjust-colors-for-background")),
"Advanced" => Some(("properties", "advanced")),
"Alias" => Some(("command", "alias-title-case")),