← Back to Pull requests

Use dimension text height for DIMSPACE Auto #3431

Closed
unknown closed this pull request without merging on Nov 24, 2026 22:55 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 03:38 UTC
Author

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 -->

Diff: 265 lines (+198 / -67) across 3 files Reviewer: rahul05ranjan Review duration: 1156m
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
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.3% (MEDIUM) · Higher = larger blast radius
39.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 17% · Safe to merge
17%