Repository navigation
feat(ifc): the diagnostics, rvt-inspect and the viewer say when a file's release is read experimentally (#871) - #876
Merged
Merged
Conversation
…e's release is read experimentally (#871) Since 0.6.0 rvt-rs reads Revit 2015 to 2022 and 2027 element records by default, and 2026 since 0.5.0, all experimental, but only the docs and rvt-doc said so. The export diagnostics now carry input.release_support: the support-matrix row that rates the release's element records and that row's status, read from the matrix built into the crate (capability::release_support), so it cannot disagree with the matrix. An experimental release adds a warning. rvt-inspect reports file.release_support, prints the status beside the version, and classifies an experimental release's export as experimental_release. The viewer's file status shows Experimental Revit release. A contract check in tests/support_matrix.rs fails when a release's element records are read without a matrix row that rates them, and a CLI check runs rvt-inspect on every release of the family corpus.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #871. Every output now says when a file's Revit release is read experimentally. Before, only the docs and
rvt-docdid: a Revit 2021 export and a Revit 2024 export looked alike in the diagnostics,rvt-inspectand the viewer.Motivation
0.6.0 reads Revit 2015 to 2022 and 2027 element records by default (and 2026 since 0.5.0). Those releases are experimental: they are measured against the same models saved by a neighbouring release, or on one project, not against a same-release Revit export (RE-124, RE-179 to RE-181). The 1.0 criteria (#875, W8) require every approximation to be visible.
Changes
capability::release_support(revit_version): thedocs/support-matrix.jsonrow that rates a release's element records (release_capability_id), and that row's status, read from the matrix the crate embeds, so the two cannot disagree. 2024 is rated bytyped-project-elements(partial), not byelement-record-instance-recovery: that row is verified for six categories only.input.release_support(schema updated; additive,schema_versionstays 1). An experimental release adds a warning.rvt-inspect:file.release_support; the text report prints the status beside the version; a newexperimental_releasefailure mode, afterincomplete_modeland beforepartial_decode; a next step.export-diagnostics.md,inspect.md,diagnostic-semantics.md,supported-profile.md, CHANGELOG.Testing
tests/support_matrix.rs::every_release_read_has_a_support_matrix_statuswalks Revit 2000 to 2100. It fails when a release whose element records are read (partition_element_records::supports_revit_versionoris_32bit_release) has no matrix row, or names a row the matrix lacks.tests/rvt_inspect_cli.rs::rvt_inspect_json_reports_how_each_release_is_readrunsrvt-inspect --jsonon every release of the family corpus (2016 to 2026). It checks that the report and the export diagnostics agree, that the status is a rated one, and that the experimental warning appears exactly when the status is experimental.Audit-honesty checklist
Legal and contribution hygiene