Use dimension text height for DIMSPACE Auto #3431
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 265 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.334
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3431"
general
weight: 0.35
rahul05ranjan
DIMSPACE Auto spaces parallel dimensions using the selected base dimension’s text height.
Fixes #3429.
With Auto, the distance between dimension lines was twice the scaled baseline increment (DIMDLI). The command now takes twice the effective text height of the base dimension. It uses the referenced text style’s height when that style has a fixed height, and otherwise uses the base dimension’s DIMTXT and dimension scale. DIMSPACE documentation · Dimension Style Manager documentation
The original synthetic regressions exercise JSON Auto with a text-height override and interactive Auto with a fixed-height text style. On main
ddb9a424, the JSON test measured 21 drawing units per interval with an expected 9, and the interactive test measured 28 with an expected 5.On macOS 27.0.1 arm64 with Rust 1.99.1, the four focused DIMSPACE checks passed. The CLI confirmed both Auto paths now produce y = 4, 8 and 12. Explicit spacing 4 produced the same positions, and zero aligned all three lines. The engine suite passed 2,010 tests, including the revised DIMSCALE 0 case. The existing invalid-filename fixture failed during setup because macOS rejected its filename with errno 92. CadCraft #2972
Strict engine Clippy, formatting, layering, assets, parity, and the nine-crate wasm check passed. Validation used synthetic CadCraft geometry and Autodesk's public documentation. Native AutoCAD was not exercised.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Bug Fixes
Automatic dimension spacing now uses twice the base dimension’s text height, including when the height comes from a text-style setting. Explicit valid spacing values still take precedence.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->