Skip to content

Verify historical element types, categories and RVT page framing - #326

Draft
mahach666 wants to merge 6 commits into
mainfrom
codex/historical-format-replay
Draft

mahach666 wants to merge 6 commits into
mainfrom
codex/historical-format-replay

Conversation

@mahach666

@mahach666 mahach666 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

What changes and why

Refs #192. This is a checkpoint for historical project reads and physical page framing.

  • Resolve historical type references using the owner, class and links in the retained partition records. In keep-all-copies mode, keep the selected record for other fields. Derive curve names from their own records and family/sketch membership.
  • Read the two category parameters from the verified header or linked owner, including references to custom import categories. Preserve the distinction between an unset parameter and an ElementId value of -1.
  • Omit a verified stacked-wall parent from mesh and IFC export while retaining its member walls.
  • Add the read-only RootProbe command stream-tail and document how to verify short final pages, including repacked streams with a zero padding count.

How it was checked

  • The earlier TypeId checkpoint covered ten historical RVTs in both read modes against Revit 2027.2. All 1,631 originally reported keep-all-copies TypeId discrepancies were accounted for.
  • For the category changes, both parameters matched Revit build 27.2.0.39 for 408,782 source owners in each read mode. Another 240 owners per mode lacked a native reference and are excluded from that comparison.
  • Three full model/mode comparisons on the frozen reader build have finished against the preceding snapshots. The first model corrected 16,880 category values in each mode. The second corrected 25,418 in default mode. All three IFC exports were byte-identical to their respective baselines. The remaining runs and unexplained category values are tracked in Files with shared work saved in several increments lose values against the reference after current-copy resolution #192.
  • Two independent implementations agreed on the layout of all 3,846 distinct final pages checked. Across 6,749 stream occurrences, the padding count matched the independent end of the stream 6,676 times. Another 72 repacked occurrences had a zero count despite trailing padding. One damaged gzip stream failed CRC validation.
  • On PR head 60b8e1d, dotnet build RvtIO.slnx -c Release succeeded with 321 warnings and zero errors. The Release build of tools/RootProbe/RootProbe.csproj also succeeded.
  • Ran dotnet test tests/RvtIO.Tests/RvtIO.Tests.csproj -c Release separately with -f net8.0 and -f net10.0, filtering to the historical type, category, curve-name, mesh, routing, page codec and diagnostic suites. Each framework passed 576/576 with no skips. The rebuilt RootProbe agreed with the independent decoder on all 3,846 distinct final pages.

The diff contains source, synthetic tests and documentation. Private models and element-level reports remain local. This PR leaves #192 open.

Drawing category follow-up (e71a3ba)

The reader now recovers both built-in category parameters for verified historical views, dimensions, room tags and legend components. For nine further record classes it also preserves an explicitly stored invalid category as an ElementId value. The rules require a complete record linked to the owner.

  • On ten historical projects, both parameters matched Revit 2027.2 for 87,682 additional owners in each read mode. A further 213 owners per mode had no native reference and are excluded from the match count.
  • The focused regression suites passed 595/595 on both .NET 8 and .NET 10 with zero skips, including 19 new cases.
  • At publication, 3 of 20 full before/after model-and-mode comparisons against the preceding PR commit had finished. Across those runs, 20093 previously mismatching parameter values matched Revit after the change. IFC output was byte-identical to its baseline in every completed comparison. These counts include each read mode separately. The outstanding comparisons and remaining discrepancies keep Files with shared work saved in several increments lose values against the reference after current-copy resolution #192 open.

Historical boundary hosts and MEP quantities (36eb5b5)

  • Read a structural boundary condition's point, line or area category from its body and its analytical host from the saved pick. Require matching owner records, a compatible header and a verified analytical target. Recover both category parameters for walls, family instances and additional historical project classes.
  • Recover missing volumes for pipe, duct, conduit and cable tray runs from their own closed Coarse geometry. Use saved owner links to read supported center-line quantities. Recover fitting volumes at the appropriate detail level, and distinguish a missing Area parameter from an unset Double. Include fittings without center lines.
  • On the frozen fitting build immediately before adding cable trays, all 20 historical comparisons against Revit 2027.2 completed (10 projects in both read modes). All 1,631 tracked TypeIds matched in each mode. All 14 IFC comparisons (7 projects in both modes) were byte-identical to the immediately preceding historical-host build.
  • The cable tray addition was checked against all 47 physical trays in the Autodesk 2022 Japanese MEP sample. Their Coarse body volumes match Revit's per-element cubic-foot values (relative tolerance 1e-10, absolute 1e-12). Both read modes returned all 47 matching volumes. In the first full replay on the cable tray reader (default mode), the 47 volumes were the only changed fields among 49,918 elements checked and IFC was byte-identical. The other historical replays on this reader are pending.
  • The focused Release suites passed 659/659 on .NET 8 and 659/659 on .NET 10 with zero skips. The sample-dependent tests use external fixtures. Reports and source models remain local.

Open work under #192 includes the Area state on cable trays, classification of unreferenced cable tray types by the collector and the remaining fitting volumes without a verified measurement. This checkpoint keeps #192 open.

Duct fitting solids and cable tray parameters (ee2f28b)

  • Recover a missing historical duct fitting volume by integrating the stored coedges of its closed physical bodies at Medium detail when the first measurement cannot complete. On the 2021 and 2023 Autodesk Golden Nugget MEP samples, each of the 16 affected instances per version had three solids. Per-solid face counts, surface areas and volumes agreed with Revit 2027.2, as did all 32 instance Volume parameters.
  • Expose an unset Double Area on verified physical cable trays and recognize unused cable tray type records in both collector filters. On the Autodesk 2022 Japanese MEP sample, the public document had all 47 instances and nine types in both modes. The eight previously misclassified types were the only changes in the document identity/type comparison. All 47 Area states and volumes agreed with Revit in both modes.
  • Ran the focused Release suites for framed records, solid quantities and native field domains. On .NET 8 and .NET 10 each run passed 345/345 with zero skips. The new ruled fitting regression reproduced the missing volume on the previous build.
  • The ten historical projects are checked in both read modes. The two Golden Nugget engineering project versions have separate before/after comparisons. On this head, the default-mode comparison of the 2021 Golden Nugget MEP project changed only the 16 expected volumes among 41,263 element rows. Its IFC with base quantities was byte-identical before and after. The remaining runs are pending. The 20 completed comparisons reported above belong to the earlier fitting checkpoint.
  • The issue remains open for multi-edition tray volumes in keep-all-copies and category queries that also return records outside the original element table.

This branch has not been deployed

No deployments
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.

1 participant