Repository navigation
research(params): RE-156, SerialNumber is a shared parameter's text entry in the element's own data object (#35) - #606
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
October 3, 2026 17:54
DrunkOnJava
added a commit
that referenced
this pull request
Oct 3, 2026
…ialNumber sets (#35) (#608) RE-156 (#606) found Revit's SerialNumber stored as a text entry whose id is the shared parameter `Serial Number`'s ElementId, inside the element's own data object, and the parameter's definition as a data object holding its group, name and GUID. This reads it. - `partition_room_parameters`: `find_parameter_definitions` (parameter name -> ElementId, from the definitions' strings) and `scan_text_parameter`, RE-153's scan for any element set and parameter id; `scan_room_text_parameter` now calls it. - `partition_schema_mvp`: `m_serial_number` on every element with a value. - `export_content`: `Pset_ManufacturerOccurrence.SerialNumber` (IfcIdentifier), and on a building-element proxy `Pset_PrecastConcreteElementGeneral.SerialNumber` too, as Revit's RE1 Electrical (12 flow terminals, 19 proxies) and Plumbing (1 flow terminal) exports write them. Test: `tests/serial_number.rs` (real target). Red on main: draft #607, run 37142425779, 50 of 50 values missing on RE1 Electrical; the output is in the test commit's message. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Adds heuristic partition binary parsing and changes IFC property-set output for elements with Serial Number; export fidelity impact but no security or auth surface. > > **Overview** > **RE-156** wires Revit’s shared parameter **Serial Number** from partition data through to IFC export so values match Revit’s own exports. > > Partition scanning is generalized: **`scan_text_parameter`** reads any element’s text parameter by id inside its data object; **`find_parameter_definitions`** maps project/shared parameter **names** to ElementIds from definition blobs. Room floor-finish scanning now delegates to the shared helper. During MVP decode, **`attach_serial_numbers`** sets **`m_serial_number`** on walls, columns, doors, windows, slabs, and generic products when the parameter exists. > > IFC export adds **`serial_number_property_sets`**: **`Pset_ManufacturerOccurrence.SerialNumber`** (`IfcIdentifier`), and the same on **`Pset_PrecastConcreteElementGeneral`** for **`IFCBUILDINGELEMENTPROXY`**, emitted alongside existing Reference property sets. > > A new **`tests/serial_number.rs`** corpus test (RE1 Electrical/Plumbing vs reference IFC) and CI **`serial_number`** real target guard parity. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 80adbc2. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
9 of 10 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Oct 25, 2026
…deleted branch (#1001) ## Summary Sixteen reports' reproduce commands named a branch that was deleted when it landed (`feat/mullion-span`, `feat/bare-named-parameters`, `feat/wall-extend-to-structure`, `feat/824-hatch-openings`, `re/re155-reference-slots` ... `re/re163-content-documents`, `re/878-2015-episodes`, `re/223-flag-census`, `docs/re229-symbol-lengths`), so `gh workflow run` refused them. Each now names the commit that landed (`--ref main -f ref=<sha>`, and `-f base=<parent>` where it measured a change against `main`). CONTRIBUTING's reverse-engineering steps state the rule. ## Motivation A report's reproduce section is how its counts are checked again. Measure's `ref` input takes a commit, and every probe and scorer these reports name is on `main`. ## Changes - **`reports/element-framing/RE-155` to `RE-163`, `RE-208`, `RE-219`, `RE-225` to `RE-229`**: branch refs replaced by the squash commits of #601, #606, #611, #620, #627, #628, #630, #632, #642, #928, #963, #993, #994, #996, #997 and #998. RE-224's `re/saved-mesh-status` is kept: it is the ungated branch its scorer needs, and it stays. - **`CONTRIBUTING.md`**: a report's reproduce commands name a commit, never a branch. ## Testing Unit tests are banned in this repository: do not add them. - [ ] `tools/check-local.sh`: CI. - [x] Every probe and scorer the changed commands name exists on `main` (checked file by file), and each commit is the merge of the pull request that added the report. - N/A: no code change. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] No user-visible change, so no changelog fragment - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content - [x] No fixtures ## Breaking changes None.
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.
RE-156 looks for the text values of Revit's property sets anywhere in the file (Measure runs 37139488894, 37140018345, 37140355491).
i64 id · u32 n · UTF-16inside the element's own data object, whose id is a shared parameter's ElementId (490488 on Electrical, 447886 on Plumbing), not a BuiltInParameter, which is why RE-154 missed it.Serial Numberand its shared GUID. The property nameSerialNumberis nowhere in the file.Adds
examples/probe_re156_value_sources.rsandreports/element-framing/RE-156-shared-parameter-values.md. No tests: a research probe and its report.Note
Low Risk
Adds a standalone example and documentation only; no production parsing or API surface changes.
Overview
Adds RE-156 research artefacts to explain where IFC property-set text values live in
.rvtfiles when RE-154’s BuiltInParameter scan finds nothing.New example
probe_re156_value_sourcespulls text properties from a sibling IFC export, then scans every RVT stream (inflated or raw) for those strings as UTF-16/UTF-8. For hits it emits JSON with length prefixes, candidate parameter ids, RE-153 verified object ownership, and strings from parameter-definition objects. It also searches for property names under a synthetic(property name)set.reports/element-framing/RE-156-shared-parameter-values.mdrecords measured results:SerialNumberappears as length-prefixed UTF-16 in each element’s own data object with a shared parameter ElementId (not a BuiltInParameter); definition objects exposeSerial Numberand the shared GUID while the IFC property nameSerialNumberis absent from the binary.Finishis not stored as plain text (consistent with RE-154’s layer-material assembly). Reproduction is via the Measure workflow andprobe_re156_value_sources.No library or test changes—probe plus report only.
Reviewed by Cursor Bugbot for commit aef85be. Configure here.