Skip to content

Project units and New project defaults - #213

Merged
trailcode merged 2 commits into
mainfrom
Trailcode/project-units
Jul 19, 2026
Merged

Project units and New project defaults#213
trailcode merged 2 commits into
mainfrom
Trailcode/project-units

Conversation

@trailcode

@trailcode trailcode commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add File -> Project units (Inches / Millimeters) for on-the-fly display/input mapping; model space stays inch-scaled and geometry is not rewritten.
  • Persist projectUnit in .ezy; older files default to Inches.
  • Add Settings -> New project defaults (default unit + 2D view width/height shown in that unit; stored as inches) applied by File -> New.
  • Wire length I/O (dims, Tab distance, add dialogs, chamfer/fillet, grid Settings, scripts dim()) through get_display_to_model_scale().

Test plan

  • Build Debug EzyCad / EzyCad_tests
  • Run EzyCad_tests.exe --gtest_filter=Sketch_test.ProjectUnit_displayConversionAndJsonRoundTrip
  • File -> Project units: switch Inch/mm; confirm dims remap (1 in -> 25.4 mm) and geometry unchanged
  • Save/reload .ezy; confirm projectUnit round-trips; open old file without field -> Inches
  • Settings -> New project defaults: set Millimeters and framing; File -> New applies unit and framing
  • Grid Settings step/padding show unit suffix matching open project
  • File -> Export unit picker still independent
  • Spot-check docs: usage.md, usage-settings.md, CHANGELOG

Closes #212

@cursor

cursor Bot commented Jul 19, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@trailcode
trailcode merged commit 7f185b5 into main Jul 19, 2026
3 checks passed
@trailcode
trailcode deleted the Trailcode/project-units branch July 19, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project units: Inch/Millimeter display for sketches and New defaults

1 participant