Skip to content

Sloped roofs need a Revit 2024/2025 pitched-roof oracle #356

Closed

Description

@DrunkOnJava

Roofs export with their sketched outline (RE-50), but as level plates: a roof's slope is not read. A slope decode needs an oracle, a Revit 2024 or 2025 file with pitched roofs and Revit's own geometry of it (an IFC or VIM export), and none of the public sources checked has one.

Searched (2026-09-23)

source what it has why it does not serve
Snowdon Towers (bldrs-ai/test-models, local only) 20 roofs with Revit's IFC4 and a VIM all flat except one small piece, 2112673, whose faces slope 10.8 to 16.7 degrees; the "sloped" patches on the others are tapered insulation
RE1 (Drshelden/IFC-ECS, MIT), Core Interior, Einhoven, Projeto1, teste_export_2025 Revit exports no roofs
255ribeiro/intro_ifc modelo_bim one IfcRoof aggregating four 30-degree slab parts Revit 2023; element records are read from 2024
vimaec/vim-hackathon Wolford_Residence.r2024 v1 and v2 VIMs no matching .rvt published
datadrivenconstruction samples rac_basic_sample_project with pitched roofs, and a DAE of it Revit 2023; the only 2024 sample holds four walls
buildingSMART/Sample-Test-Files Revit-exported IFCs no native .rvt

What would unblock it

Any of these, with the .rvt and Revit's IFC or VIM export of it:

  • a 2024 or 2025 upgrade of rac_basic_sample_project;
  • the Wolford Residence .rvt;
  • a small purpose-made project with a hip roof and a gable roof.

Clean-room: the oracle is Revit's exported geometry, compared against byte observations.

Activity

  1. DrunkOnJava commented on Sep 24, 2026

    @DrunkOnJava
    OwnerAuthor

    Landed in #362 (RE-56). Each roof sketch line carries its edge's slope block: the slope angle, then flags 00 00 01 00, or 01 01 01 00 on an edge that defines the roof's slope, followed by −rise/run. A 2024 roof with exactly one defining edge is now drawn rising from it at its slope, with its type's thickness square to the slope, when that reproduces its record box height. The oracle is the MIT 4.567 copy of the Autodesk tutorial house (Revit 2024 and 2025, local only): its 1:12 shed matches its recorded 2.959193880 ft to 1e-9 ft.

    Still open here:

    • Hip and gable roofs (two or more defining edges). No oracle has one yet.
    • Roofs sloped some other way. Snowdon's 2112673 has no defining edge but is sloped in Revit's export; a slope arrow is the likely carrier.
  2. added
    area:geometry
    priority:P2
    research-critical
    type:research
    on Sep 30, 2026
  3. puzzbobb commented on Oct 5, 2026

    @puzzbobb
    Contributor

    I've attached R2025_Models.zip: 23 purpose-made Revit 2025 projects, all but one with Revit's own IFC4 Reference View export. I made them myself and release the .rvt and .ifc files under Apache-2.0, the same licence as rvt-rs. They contain no client or personal content.

    file content
    00_Blank, 01_Walls blank project; four walls
    02_1Slope shed, 20°
    02_1Slope_Rafter2PlumbCut, …_Rafter2SquareCut the same shed with each two-cut
    02_1Slope_Rafter2SquareCut_Overhang square two-cut, one edge 33 mm off its wall
    03_2Slope_Rafter2SquareCut gable with a square two-cut, one edge's plane raised 54 mm
    04_Gable hip despite its name, all edges 30°
    04_Gable_Swapped_Slopes hip, 15° and 35°
    05_1Slope_ArrowDefined slope arrow, Height at Tail 22 → 3000 mm
    06_1Slope_ArrowDefined_SetToSlope the same arrow set by Slope, 1:3
    07_1Slope_ArrowDefined_2Cut50mmFascia 06 with a two-cut and a 50 mm fascia (no export)
    08_LShapedHipRoof L-shaped hip, 30°
    09_…_1Edge300Offset 08 with one edge raised 300 mm
    10_…_Hole 09 with a hole in the roof
    11_RoofByExtrusion roof by extrusion
    12_Rooms_Door_Windows rooms, a door, windows
    13_Rooms_Stairs, 14_…_endwithriserOFF one stair, End with Riser on and off (see #357)
    15, 16, 17 the stair with no risers, monolithic, and spiral
    18_WallJoins wall joins

    What they settle

    Measured against c4063a9; the PR below has the detail (RE-170).

    • Gables, hips and L-shaped hips. Each roof is its defining edges' straight-skeleton roof. Each edge's plane counts within the wedge between its neighbours' meeting lines, which converge at hips and part at valleys, and the roof's top is the lowest counting plane. The planes' tops share the eave height T / cos θ of the shallowest defining edge (04_Gable_Swapped_Slopes).
    • 2025. RE-56's block is on 2025 sketch lines, but its f64 at +0x3b is how far the edge's plane is raised (54 mm on 03, 300 mm on 09), not −rise/run. 2025 sketch lines hold RE-49 bounded lines, and edited sketches are listed by their Sketch, as on 2024.
    • Rafter cut and fascia depth.
      • The cut is parameter −1001710 of the roof's ProfileRoof record: 33615 plumb, 33619 two-cut plumb, 33618 two-cut square. The three 02_1Slope files isolate it, and all 13 roofs agree.
      • The fascia depth is the f64 before −1001711 in the roof's data (50 mm on 07). A two-cut's planes stand that far above the cut at the eave.
    • Slope arrows are sketch lines carrying SlopeCurveData: tail and head height offsets, levels, angle and m_useAngle. Set by "Height at Tail", the roof rises from the tail's height to the head's; set by "Slope", it rises at the angle.

    With the PR, rvt-ifc matches all 12 exported roofs: every Revit vertex within 3.3e-6 ft and volumes within 1e-6. Before, each roof was a level block as tall as its record box.

    R2025_Models.zip SHA-256: 8673d803fb0b9b6aa20d08448eeed16eb34222566bfaf7a2dc761c064dc30d6a

    pr356-roof-planes.patch

    pr-body.md

    R2025_Models.zip

  4. DrunkOnJava commented on Oct 18, 2026

    @DrunkOnJava
    OwnerAuthor

    Thank you, and sorry this sat unanswered for two weeks. Nobody was watching the tracker, and a check now flags any comment that waits more than two days.

    R2025_Models.zip is exactly what this issue was missing: purpose-made models that isolate one roof feature each, with Revit's own IFC4 export beside each, under the project's licence. Two steps, so your measurements can be reproduced on CI rather than taken on trust:

    1. The models as a pinned corpus. I'll add the archive to the Measure workflow's fetched inputs by its URL and sha256 (8673d803…6a), never committed, the way Autodesk's samples are fetched. Every Measure run then scores roofs against Revit's own exports. CI can only use the files under the licence you state, so please confirm here that you're the author of all 23 models and their exports and that they're released under Apache-2.0.
    2. The roof patch as a pull request. Patches attached to comments don't get CI or review, and a format finding needs the contributor declaration from CLEANROOM.md in its PR description. Please open pr356-roof-planes.patch as a PR. One renumbering: RE-170 is taken on main (re: the joins the list form missed (RE-170) and the native connectors that hold every join (RE-171) #717, the joins the list form missed), so please use RE-183. RE-172 to RE-182 are claimed by the open PRs and the tuples report from #85 Tuples Question RE-174 Elemtable Records #739.

    The measurements you describe (every Revit vertex within 3.3e-6 ft on all 12 exported roofs, straight-skeleton planes, the 2025 meaning of the f64 at +0x3b, the rafter-cut parameter, slope arrows through SlopeCurveData) are what the PR's Measure run will reproduce once the corpus is pinned.

  5. 6 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:geometrypriority:P2research-criticaltype:research

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions