Repository navigation
red: B28 IsExternal test alone (#35) - #618
Closed
DrunkOnJava wants to merge 1 commit into
Closed
DrunkOnJava wants to merge 1 commit into
DrunkOnJava wants to merge 1 commit into
Conversation
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
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 -->
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 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.rvtand assertsPset_DoorCommon.IsExternalandPset_SlabCommon.IsExternalmatch Revit’s referenceRE1-Architecture.ifcfor 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 whenRVT_PROJECT_CORPUS_DIRor fixtures are missing, and reports mismatches with Revit vs rvt-rs values.CI: registers
is_externalintools/ci/test-targets.txtso the new target runs in the real corpus gate. This PR is meant to land before the exporter fix and go red untilIsExternalis implemented.Reviewed by Cursor Bugbot for commit df489f5. Configure here.