Repository navigation
feat(elements): place elements whose record names no Level on Revit's storey (#369) (RE-68) - #383
Merged
Merged
Conversation
… storey (#369) (RE-68) A multistory stair takes the Level its base sits exactly at, and its railings follow it. An element takes the Level of the one element of its own class its record names, as the parts of a nested light fixture follow the chandelier. Slab edges, light fixtures, wall sweeps, generic models, hardscape and stairs take the Level their base elevation gives, within a fail-closed band: the Level just above within 0.25 ft, the Level at or below from 0.5 ft, and none in between. On Snowdon Towers, measured against every copy Revit writes of each element, the elements on no storey fall from 102 to 5 and none is placed wrongly. The storey scorer gains --any-copy for the multistory copies.
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_9e95e850-7c91-4d17-abd4-887fd89e7359) |
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
Elements whose record names no Level now reach the storey Revit's own export gives them (RE-68, #369). On Snowdon Towers the elements on no storey fall from 102 to 5, and none is placed on a wrong storey.
Three rules, applied to record-backed elements still without a Level after RE-59 and RE-60:
elevation_band_level):Revit puts the elements whose base is 0.013 to 0.233 ft below a Level on that Level, and keeps the nearest other one (0.333 ft below) on the Level below. The measured gap is only 0.1 ft wide, so the uncertain part of the band stays closed.
Tag.tools/re/storeys_vs_ifc.py --any-copy(new) counts any copy's storey. Without it, 42 of Curtain-panel and mullion parents that differ from Revit's, and nested curtain walls #370's "different storey" elements are copies of these stairs, and with it only 2 remain: curtain panel 1593696 and railing 1646280.Changes
resolve_base_at_level,resolve_remaining_levels,ELEVATION_PLACED_CLASSESandrecord_base_feet.elevation_band_level, the band constants and three Level-bind source values.--any-copy.Testing
End to end, against real files. No tests were added.
rvt-ifcon Snowdon, scored withstoreys_vs_ifc.py --any-copy, plus a per-element semantic diff against main.--profile ci,cargo +1.85.0 checkand the fuzz workspace check.Audit-honesty checklist
Legal and contribution hygiene
Related issues
Refs #369, #370.
Note
Medium Risk
Changes IFC storey containment for many element categories; behavior is fail-closed and Snowdon-validated, but export spatial structure shifts for real projects.
Overview
RE-68 extends partition-level storey binding for record-backed elements that still have no Level after RE-59/RE-60. The MVP pipeline now runs
resolve_base_at_level(stairs/ramps whose base matches a Level elevation exactly, so multistory stairs and following railings get a storey) andresolve_remaining_levels(nested same-class hosts, then elevation-band placement for slab edges, fixtures, sweeps, generic models, hardscape, and stairs).elevation_band_levelinelement_record_level_refsimplements a fail-closed band (0.25 ft / 0.5 ft tolerances) with three newLevelBindSourcevalues. Measurement tooling addsprobe_re68_remaining_levels, an RE-68 report, support-matrix/CHANGELOG updates, andstoreys_vs_ifc.py --any-copyso Revit’s duplicate multistory copies under oneTagcompare correctly.On Snowdon Towers, elements with no storey drop from 102 to 5, with 97 newly placed and none on a wrong storey.
Reviewed by Cursor Bugbot for commit af3e7a3. Configure here.