Skip to content

red: B28 IsExternal test alone (#35) - #618

Closed
DrunkOnJava wants to merge 1 commit into
mainfrom
red/b28-is-external
Closed

DrunkOnJava wants to merge 1 commit into
mainfrom
red/b28-is-external

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Scratch PR: the new test is_external on its own, to show it red on CI before the implementation. Closed once the red run is recorded.


Note

Low Risk
Test-only and CI manifest changes; no exporter or runtime behavior is modified in this diff.

Overview
Adds a real-file integration test (RE-158 / B28) that exports RE1-Architecture.rvt and asserts Pset_DoorCommon.IsExternal and Pset_SlabCommon.IsExternal match Revit’s reference RE1-Architecture.ifc for every tagged door/slab rvt-rs emits (expects 7 such elements on Architecture).

The test parses exported STEP/IFC text (property-set relations and Tag-keyed elements), skips when RVT_PROJECT_CORPUS_DIR or fixtures are missing, and reports mismatches with Revit vs rvt-rs values.

CI: registers is_external in tools/ci/test-targets.txt so the new target runs in the real corpus gate. This PR is meant to land before the exporter fix and go red until IsExternal is implemented.

Reviewed by Cursor Bugbot for commit df489f5. Configure here.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Red run recorded (run 37145114521: 7 of 7 door and slab IsExternal values missing on RE1 Architecture); the test is cherry-picked onto the item branch with that output.

@DrunkOnJava DrunkOnJava closed this Oct 3, 2026
@DrunkOnJava
DrunkOnJava deleted the red/b28-is-external branch October 3, 2026 18:46
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 -->
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