Repository navigation
red: B66 curtain part materials (scratch, do not merge) - #655
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 output recorded in #657's test commit. |
DrunkOnJava
added a commit
that referenced
this pull request
Oct 4, 2026
…ype holds (B66) (#657) RE-166: a mullion type's data object holds its material at +135 (every SysMullionFamSym object of the 2024 to 2026 samples and RE1), RE1's panel type at +139. Red on draft #655 (12 of 12 curtain parts without Revit's material); output in the test commit. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes IFC material output for curtain parts via version-specific binary offsets in partition data; behavior is gated to 2024–2026 and skips elements that already have a type material. > > **Overview** > **Curtain wall mullions and panels** now get **`TypeMaterial`** on IFC export when they did not already have one, using the material stored on their **mullion/panel type**—matching Revit’s material associations (RE-166 / B66). > > A new **`partition_curtain_materials`** pass scans partition streams for **`SysMullionFamSym`** and **`SysPanelFamSym`** type objects on **Revit 2024–2026**, reads the material **ElementId** at fixed byte offsets (+135 mullions, +139 panels), and only accepts IDs that appear in the file’s material set. **`attach_curtain_materials`** in the schema MVP pipeline maps each **`CurtainWallMullion`** / **`CurtainWallPanel`** instance via **`TypeId`** to that type material’s **name** and adds the same **`TypeMaterial`** field other products use. > > A **corpus integration test** (`curtain_part_materials`) exports RE1 Architecture and asserts every **`IfcMember`** / **`IfcPlate`** tag has the same material name set as Revit’s reference IFC; CI runs it as a **real** target. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 69a3822. 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.
Red run for B66's test alone; its output goes into the item PR's test commit.
Note
Low Risk
Only adds a corpus integration test and CI target listing; no exporter or library behavior changes in this diff.
Overview
Adds B66 corpus verification that curtain wall mullions (
IfcMember) and panels (IfcPlate) get the same material name sets as Revit’s IFC export on RE1 Architecture (10 mullions with “Aluminum 2”, 2 panels with “Glass”).The new
tests/curtain_part_materials.rsexports the RVT viaRvtDocExporter, parses STEP likeelement_materials.rs(IfcRelAssociatesMaterial→ reachableIfcMaterialnames), and compares by element Tag toRE1-Architecture.ifc. It skips whenRVT_PROJECT_CORPUS_DIRor the corpus files are missing.Registers
curtain_part_materialsunder therealclass intools/ci/test-targets.txtso CI runs it with the other real-file gates.Reviewed by Cursor Bugbot for commit 7c4d210. Configure here.