forked from 1b-agent/opencadstudio-upstream
SWEEP: Expression option, reference prompts and localized messages
- Scale and Twist take an Expression evaluated with the drawing's parameters; invalid input prints the reference message and asks again. - The scale and twist prompts use the reference wording and defaults. - The SWEEP prompts and refusal messages are in the locale catalog with translations in every locale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1a18fdd0cf
commit
56f3f68de9
27 files changed
+346
-64
No files matched your search
+13
-2
@@ -4463,13 +4463,24 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
|
||||
"SWEEP Select sweep path or [Alignment/Base point/Scale/Twist]:" => Some(("insert", "sweep-select-sweep-path-or-alignment-base-point-scale-twist")),
|
||||
"SWEEP Align sweep object perpendicular to path [Yes/No]" => Some(("insert", "sweep-align-sweep-object-perpendicular-to-path-yes-no")),
|
||||
"SWEEP Specify base point:" => Some(("insert", "sweep-specify-base-point")),
|
||||
"SWEEP Enter scale factor or [Reference]" => Some(("insert", "sweep-enter-scale-factor-or-reference")),
|
||||
"SWEEP Enter scale factor or [Reference/Expression]" => Some(("insert", "sweep-enter-scale-factor-or-reference")),
|
||||
"SWEEP Specify reference length or first point" => Some(("insert", "sweep-specify-reference-length-or-first-point")),
|
||||
"SWEEP Specify second reference point:" => Some(("insert", "sweep-specify-second-reference-point")),
|
||||
"SWEEP Specify new length or [Points]" => Some(("insert", "sweep-specify-new-length-or-points")),
|
||||
"SWEEP Specify first point of new length:" => Some(("insert", "sweep-specify-first-point-of-new-length")),
|
||||
"SWEEP Specify second point of new length:" => Some(("insert", "sweep-specify-second-point-of-new-length")),
|
||||
"SWEEP Specify twist angle or [Bank]" => Some(("insert", "sweep-specify-twist-angle-or-bank")),
|
||||
"SWEEP Enter twist angle or allow banking for a non-planar sweep path [Bank/EXpression]" => Some(("insert", "sweep-specify-twist-angle-or-bank")),
|
||||
"SWEEP Enter expression:" => Some(("insert", "sweep-enter-expression")),
|
||||
"SWEEP Specify start reference length" => Some(("insert", "sweep-specify-start-reference-length")),
|
||||
"SWEEP Specify end reference length" => Some(("insert", "sweep-specify-end-reference-length")),
|
||||
"SWEEP Specify second point:" => Some(("insert", "sweep-specify-second-point")),
|
||||
"The syntax is incorrect or a variable is not defined. Reenter the expression or value." => Some(("insert", "sweep-expression-invalid")),
|
||||
"Modeling Operation Error:" => Some(("insert", "sweep-modeling-operation-error")),
|
||||
"Error Code Number is {code}" => Some(("insert", "sweep-error-code-number")),
|
||||
"Unable to sweep {failed} selected objects." => Some(("insert", "sweep-unable-to-sweep-selected-objects")),
|
||||
"Cannot use scale option when path curve is closed." => Some(("insert", "sweep-scale-closed-path")),
|
||||
"Path curve must be smooth when using scale option." => Some(("insert", "sweep-scale-smooth-path")),
|
||||
"The selected path curve is not valid." => Some(("insert", "sweep-path-curve-not-valid")),
|
||||
"Point cross-sections are allowed only at the first or last end, with a curve between point ends." => Some(("insert", "point-cross-sections-are-allowed-only-at-the-first-or-last-end-with-a-curve-between-p")),
|
||||
"LOFT requires at least two cross-sections." => Some(("insert", "loft-requires-at-least-two-cross-sections")),
|
||||
"A closed loft requires at least three curve cross-sections and no point ends." => Some(("insert", "a-closed-loft-requires-at-least-three-curve-cross-sections-and-no-point-ends")),
|
||||
|
||||
Reference in new issue
Block a user