Skip to content

Apply model length units to measurements and camera exports - #279

Merged
mahach666 merged 1 commit into
mainfrom
codex/issue-64-length-units
Nov 19, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/issue-64-length-units

Conversation

@mahach666

Copy link
Copy Markdown
Collaborator

Summary

  • Carry the model unit into grid labels, measurement strings, HTML measurement labels and default viewpoint XML labels.
  • Write BCF camera coordinates and orthogonal scales in metres, including revision diff, clash results and groups, assembly overlap reports, and saved viewpoints.
  • Report mixed units when an assembly is created and retain original coordinates. Publish the existing document-unit tolerance convention in CLI help and the public API docs.

Acceptance checks

  • Existing document unit, metres-per-unit and reader override tests pass.
  • Clash and revision diff tests cover the same geometry in metres and millimetres, with tolerance values in the coordinate unit.
  • Tests cover grid labels and grid XML round-trip, measurements, mixed-unit diagnostics, IFC coordinate scaling, and BCF camera and orthogonal scale equivalence across both units.
  • Full Release suites pass on .NET 8 and .NET 10.

BCF fixed units follow the buildingSMART BCF 2.1 specification.

Closes #64.

@mahach666
mahach666 merged commit 5d06377 into main Nov 19, 2026
5 checks passed
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.

Add a document length-unit model; analysis tolerances and labels assume metres while IFC export assumes millimetres

1 participant