Repository navigation
red: B49 parameter diagnostics (scratch, do not merge) - #637
Closed
DrunkOnJava wants to merge 1 commit into
Closed
DrunkOnJava wants to merge 1 commit into
DrunkOnJava wants to merge 1 commit into
Conversation
… values the export writes (B49, #35) Red run pending on the scratch draft PR.
Owner
Author
|
Red runs recorded in #638's test commit (corpus 37208793324, viewer 37208793339). |
DrunkOnJava
added a commit
that referenced
this pull request
Oct 4, 2026
…in its Pset_ sets (B49, #35) (#638) B49. The export diagnostics said no Revit parameter reaches IFC while Core Interior's export wrote 2,111 Pset_ values: `decoded.parameter_value_count` counted walker AProperty instances (0 on every model), and `revit_element_parameters_to_ifc_property_sets` looked only at each element's own set. The viewer's Parameters row and `rvt-inspect` repeated it. - `parameter_value_count` now counts the property values `write_step` puts in Pset_ sets; the storey and building sets move into `PropertySet::storey_sets` / `building_set` so the writer and the count share them. - `revit_element_parameters_to_ifc_property_sets` is claimed only when no Pset_ value is written; `partial_revit_element_parameters` when some are. - An element panel no longer lists Revit parameters as missing when its further sets carry them. **Red** (draft #637): `tests/parameter_diagnostics.rs` (cli), every model counted 0 against 35 to 2,111 values in its file; `viewer/tests/parameters-row.spec.ts`, the row read "Revit's parameter table is not read yet". Output in the test commit's message. **Waiting on the maintainer:** the Core Interior count fixtures pin `property_sets` as a `known_gap` of `revit_element_parameters_to_ifc_property_sets`, so `project_count_fixtures` fails until that existing row changes (its own commit, after approval), and the witness observations need regenerating. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Diagnostics and messaging only; counting logic is aligned with existing STEP emission and covered by new integration tests. > > **Overview** > Fixes **B49 / #35** export diagnostics that falsely reported no Revit parameters in IFC while exports (e.g. Core Interior) already wrote thousands of `Pset_*` values. > > **`decoded.parameter_value_count`** now matches the IFC file: it counts property values emitted in common property sets (`Pset_*`) on building elements (including `ElementPropertySet`), plus storey and building sets, via shared `pset_property_value_count` used at diagnostics build time. Storey/building `Pset_*` definitions move to **`PropertySet::storey_sets`** / **`building_set`** so the STEP writer and the counter stay aligned. > > **`unsupported_features`** gains parameter coverage codes: `revit_element_parameters_to_ifc_property_sets` only when zero `Pset_*` values are written; **`partial_revit_element_parameters`** when some are. Element UI missing-field logic treats **further property groups** as satisfying “has parameters.” > > **`rvt-inspect`**, the viewer Parameters row, and **`docs/export-diagnostics.md`** describe `Pset_*` counts instead of pending AProperty joins. New **`parameter_diagnostics`** CLI test (corpus IFC vs sidecar) and a Playwright spec for the viewer row; CI adds the cli target. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a193d72. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
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.
Scratch branch: shows B49's new tests red on main. Deleted after the red runs are recorded.
Note
Low Risk
Test and CI registration only; no runtime or export logic changes in this PR.
Overview
Adds B49 (#35) verification that export diagnostics and the viewer agree with how many Revit parameter values land in IFC
Pset_*property sets—no production changes in this diff.A new
cliintegration test (parameter_diagnostics) runsrvt-ifc --diagnosticson corpus models whenRVT_PROJECT_CORPUS_DIRis set, parses the exported STEP forIFCPROPERTYSET/Pset_property references, and assertsdecoded.parameter_value_countmatches that count andrevit_element_parameters_to_ifc_property_setsis listed only when the count is zero.tools/ci/test-targets.txtregisters the target so CI/local gates cannot skip it silently.A Playwright test loads the Core Interior demo (when the RVT is present) and expects the status panel Parameters row to show a positive count instead of the “not read yet” copy.
Reviewed by Cursor Bugbot for commit 85c3843. Configure here.