Repository navigation
feat(elements): draw steel columns as their type's I section (#94) (RE-104) - #476
Merged
Merged
Conversation
…E-104) A structural column's flanges run along its instance's X axis. All 40 of Snowdon Towers' steel columns export as their type's IfcIShapeProfileDef turned to it, where the turned section fills the record box; Revit's own mesh is that I at that turn on all 24 its VIM export can score. The type-value readers now take block owners from every declared ElementId, secondary ids included (RE-41).
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 10:48
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_7443be7a-3485-4266-986f-838727a0dec7) |
Merged
4 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Sep 28, 2026
…r section (#94) (RE-105) (#477) ## Summary Steel members carry their section as a material profile (RE-105, #94). Every beam and column drawn as its type's I section (#475, #476) is now written with an `IfcMaterialProfileSetUsage`, as IFC4 models a profiled member's material, instead of an `IfcMaterialConstituentSet`: - one `IfcMaterialProfileSet` per type, named after it; - its `IfcMaterialProfile` pairs the type's one material (RE-82) with an `IfcIShapeProfileDef` equal to the member's body. `IfcMaterialProfile` used to be written with a 1 × 1 m rectangle stand-in. It now writes the model's real profile where there is one, and the stand-in only where there is none. ## Results | Snowdon Towers structural | main | this PR | |---|---:|---:| | I-section beams and columns with a material profile set usage | 0 | 417 of 417 | | their material profile equal to their body's I, material Steel | – | 417 | - **Measured:** IfcOpenShell 0.8.5 via `tools/re/beam_sections_in_ifc.py`, which now checks the material too. `tools/ci/ifc_schema_arity.py` passes on the file. - **GLB:** byte-identical. A member whose profile set has one material takes that material's colour, as one with a one-material constituent set did. - **Schedule:** `rvt-schedule`'s material column names a one-material profile set's material (Steel), not the set's name. - **CardinalPoint comment:** the writer said 5 was "bottom-left". In IFC4 it is the mid-depth centre, which is where every profile is centred, so the value stays and the comment is corrected. ## Changes - src/ifc/entities.rs: `MaterialProfile.profile`; `ProfileDef` derives `PartialEq`. - src/ifc/step_writer.rs: real profile in `IfcMaterialProfile`, and the CardinalPoint comment. - src/ifc/mod.rs: `material_profile_sets_from_sections`. - src/ifc/gltf.rs: one-material profile sets colour the member. - src/ifc/schedule_csv.rs: a profile set's material names the material. - tests/ifc_synthetic_structural.rs: the new field on its struct literal. - tools/re/beam_sections_in_ifc.py; reports/element-framing/RE-105-material-profile-sets.md; supported profile, support matrix, CHANGELOG. ## Testing Unit tests are banned in this repository; none were added. - [x] Gates: fmt, clippy -D warnings, rustdoc -D warnings, `cargo +1.85.0 check`, fuzz workspace check (`--locked`), and `tools/ci/verify-real-files.sh --profile ci` with both corpora. - [x] End to end with IfcOpenShell on the written IFC, as above. - [x] Only Snowdon Towers structural changes. Every other local file is byte-identical to #476's output apart from the timestamp, so no witness observation changes. ## Legal and contribution hygiene - [x] Apache-2.0. No Autodesk code. ## Breaking changes `MaterialProfile` gains a field (`profile`, serde default `None`). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes IFC material association for hundreds of structural elements and adds a serialized field on `MaterialProfile`; geometry and other exports stay byte-identical on measured corpora. > > **Overview** > **Steel members drawn as I sections** (377 beams + 40 columns on Snowdon structural) no longer get **`IfcMaterialConstituentSet`**; they are associated via **`IfcMaterialProfileSetUsage`**, with one **`IfcMaterialProfileSet` per type** pairing Steel with an **`IfcIShapeProfileDef`** that matches the member body. > > The model builder adds **`material_profile_sets_from_sections`**, which moves eligible members off their constituent set, deduplicates sets by type name + profile + material, and sets **`MaterialProfile.profile`** to the real section. The STEP writer emits that profile in **`IfcMaterialProfile`** instead of the old **1×1 m rectangle** placeholder; **`ProfileDef`** gains **`PartialEq`** for dedup. > > Downstream: **glTF** applies material colour from single-material profile sets (same visual result as before); **`rvt-schedule`** reports the profile set’s material name (e.g. Steel) rather than the set name. Docs, changelog, RE-105 report, and **`beam_sections_in_ifc.py`** are updated to assert profile-set material linkage. > > **Breaking:** `MaterialProfile` adds optional **`profile`** (`serde` default `None`). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 05a8114. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
2 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 13, 2026
…nds by its base elevation, as its record box did (#1947) (#1951) ## Summary `record_base_elevation_feet` lists the body sources whose `location_feet` is still the record box's base, so that `apply_element_record_storeys` can bind them by their base elevation. A beam drawn along its line is listed for that reason (RE-328). A column or beam drawn as its type's I section (RE-104, since #476) or hollow section was not, though the section replaces the box's footprint, must fit it, and keeps the element at the box's plan centre and base. Such an element whose record names no single Level lost the binding its record box gave it. Both sources are now listed. ## Testing The unfiltered Measure with the samples is in this PR's comments. Its storey scorers say which section columns now bind, and whether to Revit's storey. Refs #1947. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] A user-visible change has its entry as a fragment under `changelog.d/fixed/`
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.
Summary
Steel columns are drawn as their I section (RE-104, #94). A structural column whose type stores an I section (RE-103) runs its flange width along the X axis of its instance transform (RE-87) and its depth along the Y axis, centred on its record box. Such a column is now drawn as that I, extruded through its box's height and turned to that axis, only where the turned section fills the record box in plan within 0.01 ft.
The box alone can't decide the turn:
The type-value readers (RE-77, RE-93, RE-94, RE-103) now take a value block's owner from every ElementId
Global/ElemTabledeclares, secondary ids included (RE-41), not only primary ids. Before, a type whose block opens with a secondary id lent its values to the block before it; W8x31 (type 709888) is one. No exported value changes on any local file from that alone.Results
tools/re/beam_sections_in_ifc.py, which now checks columns too). The 377 beams of feat(elements): draw steel beams as their type's I section (#94) (RE-103) #475 are unchanged.Changes
attach_beam_sectionsalso coversStructuralColumnand stores an upright column's plan X axis (COLUMN_I_AXIS_FIELDS).column_i_section,COLUMN_I_SECTION_BODY_SOURCE(family_type_i_section) and the turned IShape extrusion.elem_table::declared_idsin all four readers.Testing
Unit tests are banned in this repository; none were added.
cargo +1.85.0 check, fuzz workspace check (--locked), andtools/ci/verify-real-files.sh --profile ciwith both corpora.Legal and contribution hygiene
Breaking changes
None.
Note
Medium Risk
Changes IFC geometry for structural columns and broadens ElemTable id matching for type parameters; scoped to I-section columns with validation, but geometry export paths are sensitive.
Overview
Steel structural columns whose types carry an I section (building on RE-103 beams) now export as turned
IfcIShapeProfileDefextrusions through the record-box height, with flanges along the instance X axis in plan—only when that orientation fits the column’s plan box within 0.01 ft (40 columns on Snowdon structural; tubes/concrete/reference columns stay boxes).Type-value ownership for partition readers switches from primary
ElemTableids todeclared_ids(primary + secondary), so blocks like W8x31 attach to the correct type without changing other local exports.Adds
column_i_section/COLUMN_I_AXIS_FIELDSwiring, extendsattach_beam_sectionstoStructuralColumn, a VIM probe (probe_re104_column_sections), and IfcOpenShell checks for columns inbeam_sections_in_ifc.py, plus docs/changelog updates.Reviewed by Cursor Bugbot for commit 79e15bd. Configure here.