Skip to content

M4-01: Recover project units from Revit bytes #29

Closed

Description

@DrunkOnJava

Created from the roadmap audit in TODO.md.

Source: https://github.com/DrunkOnJava/rvt-rs/blob/main/TODO.md#L534
Tracking commit: 1ec8105

Scope

Labels: priority:P0, type:feature, area:reader, area:ifc

  • Extract autodesk.unit.* identifiers from relevant streams.
  • Map to IFC units:
    • length
    • area
    • volume
    • angle
    • mass where present
  • Preserve unknown unit ids as diagnostics.

Acceptance criteria:

  • IFC no longer defaults blindly to millimeters for real files.
  • Unit tests cover metric and imperial inputs.
  • Real corpus files report their unit assignment.

Definition of done

  • The TODO acceptance criteria for this section are implemented or explicitly superseded by a linked decision.
  • Tests, fixtures, or documentation are added at the level appropriate to the change risk.
  • User-facing behavior and limitations remain honest in README/docs/viewer messaging.
  • Relevant CI checks pass before the issue is closed.

Activity

  1. added
    area:ifc
    area:reader
    priority:P0
    type:feature
    on Apr 25, 2026
  2. DrunkOnJava commented on Aug 28, 2026

    @DrunkOnJava
    OwnerAuthor

    Triage (2026-08-28) — closing as done on main

    Verified against main @ 21aa0e0 / 287e05e.

    Acceptance criteria

    • IFC no longer defaults blindly to millimeters for real files — recover_project_units reads autodesk.unit.* from partition string records and feeds IfcModel.units (src/ifc/mod.rs)
    • Unit tests cover metric and imperial inputs + unknown preservation (project_unit_recovery_selects_modal_metric_units, project_unit_recovery_maps_imperial_and_preserves_unknowns)
    • Real corpus files report unit assignment (tests/walker_to_ifc_integration.rs asserts recovered autodesk.unit.unit:meters-1.0.0 and metre IFCSIUNIT on 2024 family corpus; removes project_units_from_revit_bytes from unsupported features)

    Shipped in 287e05e (“feat: recover Revit project units for IFC”).

    Honesty note: Recovery is a best-effort modal read of Forge unit identifiers from partition bytes, not a full ProjectUnits element decode. That still satisfies this issue’s stated AC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ifcarea:readerpriority:P0type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions