Harden revolve validation and properties

This commit is contained in:
ramox81 committed 2026-09-03 15:01:38 +03:00
1 parent 2e112f9aeb
commit 5bbb0bbe1f
8 files changed
+223 -26

No files matched your search

+19
View File
@@ -283,6 +283,7 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"Angle = 0.0000° (degenerate rays)" => Some(("inquiry", "angle-0-0000-degenerate-rays")),
"Angle format" => Some(("properties", "angle-format")),
"Angle precision" => Some(("properties", "angle-precision")),
"Angle of revolution" => Some(("properties", "angle-of-revolution")),
"Angles" => Some(("model", "angles")),
"Angular" => Some(("annotate", "angular")),
"Angular decimals (DIMADEC)" => Some(("common", "angular-decimals-dimadec")),
@@ -357,6 +358,12 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"Axis Point" => Some(("model", "axis-point")),
"Axis Vector" => Some(("model", "axis-vector")),
"Axis, End" => Some(("draw", "axis-end")),
"Axis direction X" => Some(("properties", "axis-direction-x")),
"Axis direction Y" => Some(("properties", "axis-direction-y")),
"Axis direction Z" => Some(("properties", "axis-direction-z")),
"Axis position X" => Some(("properties", "axis-position-x")),
"Axis position Y" => Some(("properties", "axis-position-y")),
"Axis position Z" => Some(("properties", "axis-position-z")),
"BACKGROUND colour [Default/Black/DarkGray/Gray/LightGray/White] or R G B (0–255):" => Some(("file", "background-colour-default-black-darkgray-gray")),
"BASE Specify base point:" => Some(("insert", "base-specify-base-point")),
"BEDIT Select block reference to edit:" => Some(("modify", "bedit-select-block-reference-to-edit")),
@@ -2177,9 +2184,18 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"REVOLVE Angle of revolution <360>:" => Some(("insert", "revolve-angle-of-revolution-360")),
"REVOLVE Axis end point:" => Some(("insert", "revolve-axis-end-point")),
"REVOLVE Axis start point:" => Some(("insert", "revolve-axis-start-point")),
"REVOLVE Creation mode [Solid/Surface]" => Some(("insert", "revolve-creation-mode-solid-surface")),
"REVOLVE Enter angle expression:" => Some(("insert", "revolve-enter-angle-expression")),
"REVOLVE Select line, ray, or construction line for axis:" => Some(("insert", "revolve-select-line-ray-or-construction-line-for-axis")),
"REVOLVE Select objects to revolve or [Mode] (Enter to finish):" => Some(("insert", "revolve-select-objects-or-mode")),
"REVOLVE Select profile:" => Some(("insert", "revolve-select-profile")),
"REVOLVE Specify angle of revolution or [Start angle/Reverse/Expression]" => Some(("insert", "revolve-specify-angle-or-options")),
"REVOLVE Specify axis start point or [Object/X/Y/Z/Mode]:" => Some(("insert", "revolve-specify-axis-start-or-options")),
"REVOLVE Specify start angle" => Some(("insert", "revolve-specify-start-angle")),
"REVOLVE: created %{created} object(s); %{failed} source(s) could not be revolved." => Some(("common", "revolve-created-objects-failed-sources")),
"REVOLVE: could not revolve profile." => Some(("common", "revolve-could-not-revolve-profile")),
"REVOLVE: entity not found." => Some(("common", "revolve-entity-not-found")),
"REVOLVE: no selected object could be revolved with the requested options." => Some(("common", "revolve-no-selected-object-could-be-revolved")),
"REVOLVE: solid created ({:.0}°)." => Some(("common", "revolve-solid-created-0")),
"ROTATE Specify first reference point or type reference angle:" => Some(("modify", "rotate-specify-first-reference-point-or-type-r")),
"ROTATE Specify new absolute angle [ref=%{a}]:" => Some(("modify", "rotate-specify-new-absolute-angle-ref-a")),
@@ -2477,6 +2493,7 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"Show Annotation Objects" => Some(("ui", "show-annotation-objects")),
"Show Clipping" => Some(("properties", "show-clipping")),
"Show Cropping" => Some(("properties", "show-cropping")),
"Show History" => Some(("properties", "show-history")),
"Show Intensity" => Some(("properties", "show-intensity")),
"Show Lineweight" => Some(("ui", "show-lineweight")),
"Show Lineweight\nLWDISPLAY" => Some(("ui", "show-lineweight-lwdisplay")),
@@ -2494,6 +2511,8 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"Snap to\nUnderlays" => Some(("insert", "snap-to-underlays")),
"Softness" => Some(("properties", "softness")),
"Solid" => Some(("properties", "solid")),
"Solid History" => Some(("properties", "solid-history")),
"Solid type" => Some(("properties", "solid-type")),
"Solid created." => Some(("common", "solid-created")),
"Solid3D" => Some(("properties", "solid3d")),
"Source Files" => Some(("properties", "source-files")),