Skip to content

red: B49 parameter diagnostics (scratch, do not merge) - #637

Closed
DrunkOnJava wants to merge 1 commit into
mainfrom
red/b49-parameter-diagnostics
Closed

DrunkOnJava wants to merge 1 commit into
mainfrom
red/b49-parameter-diagnostics

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

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 cli integration test (parameter_diagnostics) runs rvt-ifc --diagnostics on corpus models when RVT_PROJECT_CORPUS_DIR is set, parses the exported STEP for IFCPROPERTYSET/Pset_ property references, and asserts decoded.parameter_value_count matches that count and revit_element_parameters_to_ifc_property_sets is listed only when the count is zero. tools/ci/test-targets.txt registers 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.

… values the export writes (B49, #35)

Red run pending on the scratch draft PR.
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Red runs recorded in #638's test commit (corpus 37208793324, viewer 37208793339).

@DrunkOnJava DrunkOnJava closed this Oct 4, 2026
@DrunkOnJava
DrunkOnJava deleted the red/b49-parameter-diagnostics branch October 4, 2026 14:27
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 -->
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