Skip to content

Revit 2023 to 2025: roofs drawn as their sketch outline's level block are not drawn from their saved meshes, so one project's saves disagree #1612

Closed

Description

@DrunkOnJava

Revit 2023 to 2025: a roof drawn as the level block of its sketch outline is not drawn from its saved mesh, so one project's saves disagree about it (#1191, #1610).

What happens. On Autodesk's rac_advanced 2025 save, roofs 142430, 165755, 167036 and 167158 (and rac_basic's 724430) have BodySource partition_element_record_bbox with ProfileResolved true: the sketch outline extruded over the record box's full height (ProfileSource partition_element_record_sketch_lines, 4 vertices, no voids; the kept 2025 export of these roofs carries no SlabShapeRefusal). saved_meshes::attach skips a body whose outline is resolved, so none of them is a candidate for the saved mesh, which #1610 makes the default of every class. On the 2026 and 2027 saves the outline is not recovered (OUTLINE_LEAST is 82 there and 86 on 2025), so the same roofs are drawn from their saved meshes, and the same-project gate names three of them (ROOFS_NOT_THE_2025_BODY, Griffin 2026-11-09).

What is measured (Measure run 42638677373, the 2025 and 2026 exports of rac_advanced, counts and geometry only):

  • Roof 165755 on the 2025 save is an 8-vertex prism, 3.07 x 8.17 x 0.411 m, 10.29 m3. On the 2026 save it is a 32-vertex, 46-triangle mesh with two 15 degree planes (normals 0.26, 0, 0.97) whose box is 0.1035 m above the record box's top: a gable roof, not a level block. 167036 and 167158 are the same.
  • The record box holds the roof's reference surface, not its thickness, so a level block over it is not the roof's shape on a sloped roof (docs/status.md says as much of 2026 and 2027).
  • Of 5,527 bodies of the 2026 save, 5,523 are the 2025 save's within 3 mm and 0.1%; the four that are not are these three roofs and roof 201262, which keeps its record box (the pinned exception of 2026-11-05).

To do. Draw a roof whose body is the record-box outline block from its whole saved mesh on 2023 to 2025 as well, with the outline-specific properties (ProfileResolved, ProfileSource, ProfileVertexCount, ProfileVoidCount, SlabShapeRefusal) no longer claiming a body it is not; measure it against a Revit export that holds a sloped roof of this kind (the 24 Revit 2025 models draw theirs by roof readers, so none is a candidate today); then remove 165755, 167036 and 167158 from ROOFS_NOT_THE_2025_BODY (the list only shrinks). Roof 243274 of rac_basic is another case: the 2025 save's roof extrusion (35.4236 m3) against the mesh (34.9741 m3) in the same box, which needs the roof readers and the saved mesh compared on a roof Revit's export holds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:elementsarea:ifcpriority:P2type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions