Repository navigation
feat(ifc): a column that names three or more Levels, and a footing that names none, are put in a storey on Revit 2027, as in the one structural model that holds them (#1842) (RE-469) - #2013
Merged
Conversation
…at names none, are put in a storey on Revit 2027, as in the one structural model that holds them (#1842) (RE-469)
…reporter's save, and all hold (#1842)
DrunkOnJava
marked this pull request as ready for review
November 15, 2026 00:30
…re left as they were: the rules cover the cases measured (#1842) (RE-469)
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
On Revit 2027, a column whose element record names three or more Levels is put in the storey of the highest of them at or below its record box's base (else the lowest), and a footing whose record names no Level in the storey of the highest Level of the model at or below its base. A field reporter's Revit 2027 structural model (counts only, #1842) holds 48 such (structural) columns and 88 such footings; the storey-rule scorer of their run puts 48 of 48 columns (
<base) and 88 of 88 footings (base*) in the storey Revit's export has them in, where 0.22.0 left 48 columns and 3 footings on no storey and 6 footings on another. Both rules rest on that model alone (no model of ours with Revit's export holds either case), so they apply to Revit 2027 only (RE-353), are listed under "Rules that rest on one project", and mark each element they place with aLevelBindSourceof their own (partition_element_record_column_base_level,..._footing_base_level). Part of #1842. The reporter's run of the build of this head read all four rows registered before it as holding (comment of 2026-11-15).Motivation
#1842: the reporter's run of
probe_1842_storey_rulesandstorey_rules_vs_ifc.pyon a newer save, scored against the rows registered on the issue before the run (comment 6876940245). RE-469 has the table.Changes
src/research/element_record_level_refs.rs:below_base_leveland the two source values.src/research/partition_schema_mvp.rs: a column keeps the Levels it names when it names more than two.src/research/partition_schema_mvp/levels.rs:resolve_base_constraint_levelstakes the release and binds the two cases on 2027.tests/value_sources_offsets.rs: the two new values, with the other bind sources.docs/export-diagnostics.md,docs/one-project-rules.md, a changelog fragment.Testing
Registered before the runs. Measure, unfiltered with nordic, r2025, samples, holdout and racadv: (1) no export of a model we hold with a Revit export moves, since none holds either case; (2) the held-out 2027 pairs (counts only) do not move. The reporter's own save, run with a probe build of this head: (3) the 48 columns and 88 footings read Revit's storey in
ours, (4) the 51 elements on no storey go to 0, and (5) no other class'sourschanges.Measure 43593169935 (
dbfbe6b1againstmainat16e7b089): rows 1 and 2 hold: 126 of 126 exports and 102 of 102diagnostics.jsonfiles are identical, no scorer line moves on any model, held-out 2027 pairs included, andsame-project gatespasses (15 samples held). The second reader found two cases the rules reached beyond the evidence (a footing that names two Levels, and an architectural column), and the head56f721a2narrows both: the footing rule needs a record that names no Level, and the column rule aStructuralColumn(the reporter'sStructural Columnscategory). That is a code change, so the head has its own Measure, 43658890673 (nordic, r2025, samples, holdout, racadv, againstmainat0cc8c061); its result goes here when it reads.The reporter's run of the probe build of the head (43593171560), same save and same export as the table before it, counts only (#1842, comment of 2026-11-15), read the rows registered before it:
IFCCOLUMN 3+readsours48 (was 0), all in Revit's storey;IFCFOOTING 0readsours88 (was 79).oursis 48 of 48 and 88 of 88, all in Revit's storey.ours0 and 1 as before, being parts of their stair.RE-469 section 3 has the table.
tools/check-local.sh: no local builds;rustfmt --checkpasses; CI runs the rest.Audit-honesty checklist
Legal and contribution hygiene
revit-ifc'sLevelUtil.FindAllLevelsis cited for what Revit writes, not quoted); no fixtures.Breaking changes
None on Revit 2015 to 2026. On 2027 a column naming three or more Levels, and a footing naming none, move from no storey (or the storey the elevation join gave) to the Level rule's storey.
Related issues
Part of #1842.