Skip to content

research(params): RE-158, a door's and a floor's IsExternal is its type's Function (B28, B32, #35) - #620

Merged
DrunkOnJava merged 4 commits into
mainfrom
re/re158-value-entries
Oct 3, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
re/re158-value-entries

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

RE-158 (Measure run 37144392154) looks for the boolean and integer values of Revit's property sets. A door's and a floor's IsExternal is its type's FUNCTION_PARAM (-1001006, Interior 0 or Exterior 1), stored as i64 id then u32 in the type's own data object: the only candidate separating the doors' two values (5 of 5), and 2 of 2 floors. The walls' IsExternal, LoadBearing and ExtendToStructure and NumberOfPoles never vary on RE1, so no parameter is identified for them.

Adds examples/probe_re158_value_entries.rs and reports/element-framing/RE-158-value-entries.md. No tests: a research probe and its report.


Note

Low Risk
Adds an example binary and documentation only; no changes to parsing, export, or tests in the main crate.

Overview
Adds RE-158 research artefacts only: a Measure-oriented example probe and a framing report. No library or export behavior changes.

probe_re158_value_entries extends the RE-154/RE-156 line of work to booleans and integers in IFC property sets (IsExternal, LoadBearing, ExtendToStructure, NumberOfPoles). It parses the reference IFC export for written values, scans verified element/type data objects for BuiltInParameter ids with small trailing words, scores candidates against Revit’s values, and dumps context around project/shared parameter definition ids. Output is JSON lines for CI Measure runs.

The report records that door and floor IsExternal align with the type’s FUNCTION_PARAM (-1001006) as i64 id · u32 in the type object; wall booleans, LoadBearing, ExtendToStructure, and NumberOfPoles stay inconclusive on RE1 because values do not vary (or definition lookup misses duplicate “Number of Poles” names). Reproduction is via measure.yml with probe=probe_re158_value_entries.

Reviewed by Cursor Bugbot for commit 5c8228d. Configure here.

DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
… (B28, #35) (#621)

RE-158 (#620): a door's and a floor's IsExternal is its type's
FUNCTION_PARAM (-1001006: Interior 0, Exterior 1), an i64 id followed by
a u32 in the type's own data object (5 of 5 RE1 doors, interior and
exterior; 2 of 2 floors).

- partition_room_parameters: FUNCTION_PARAMETER and
scan_integer_parameter.
- partition_schema_mvp: m_type_function on doors and slabs whose type is
known.
- export_content: IsExternal (IfcBoolean) in the element's
Pset_DoorCommon or Pset_SlabCommon for Function 0 or 1, nothing
otherwise.

The walls' IsExternal, LoadBearing and ExtendToStructure stay out: they
never vary on RE1, so no parameter is identified (RE-158 §3).

Test: tests/is_external.rs (real target). Red on main: draft #618, run
37145114521, 7 of 7 missing; the output is in the test commit's message.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes IFC property-set output for doors and slabs and adds partition
binary scanning; behavior is gated on Revit 2024+ and fail-closed on
conflicting parameter reads, but export parity affects downstream IFC
consumers.
> 
> **Overview**
> **RE-158** wires Revit type **Function** (`FUNCTION_PARAM`, interior
`0` / exterior `1`) from partition data into IFC **`IsExternal`** on
doors and floor slabs, aligned with Revit's export.
> 
> Partition scanning adds **`scan_integer_parameter`** and
**`FUNCTION_PARAMETER`**, used by **`attach_type_functions`** to set
**`m_type_function`** on door and slab instances from their type
ElementIds (Revit 2024+). During IFC export, **`add_is_external`**
appends **`IsExternal`** (`IfcBoolean`) to **`Pset_DoorCommon`** or
**`Pset_SlabCommon`** when Function is `0` or `1`; other values are
omitted.
> 
> A new corpus test **`tests/is_external.rs`** compares **`IsExternal`**
on tagged elements against Revit's reference IFC for RE1 Architecture,
and CI lists **`is_external`** as a real target.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
87cd770. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@DrunkOnJava
DrunkOnJava merged commit ba4494f into main Oct 3, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/re158-value-entries branch October 3, 2026 19:55
@puzzbobb puzzbobb mentioned this pull request Oct 6, 2026
14 tasks done
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.
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