Skip to content

fix(ifc): a family instance Revit writes as a covering takes the area of its saved mesh's face where the mesh is one part with one-piece faces, as Revit's export gives it (#1209) - #2060

Merged
DrunkOnJava merged 6 commits into
mainfrom
fix/1209-roofing-covering-areas
Nov 15, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

A family instance that Revit writes as an IfcCovering (ROOFING: ventilation units, snow guards, downpipe casings) with no Qto_CoveringBaseQuantities.GrossArea takes the area of its saved mesh's face. The mesh must be one connected part, and its largest upward and downward horizontal faces must each be one piece and agree to 0.1%. It extends #2056's ceiling rule (RE-480). Rows: #1209 (comment 6893635627, registered before the run).

Motivation

#1209's roofing coverings. revit-ifc 24.2's GrossAreaCalculator (CLEANROOM.md source 5) gives a family instance the area of the extrusion its body was exported as. It has no computed-area fallback.

The census (tools/re/covering_areas_vs_ifc.py, branch research/1209-covering-areas, Measure 43708847856) paired every covering by Tag on the BIM4LCA office and housing:

  • With Revit's value. Of the 72 that are one part with one-piece agreeing faces, all 72 have that face's area as Revit's GrossArea.
  • The vents. They have 2 to 4 parts and Revit gives them one solid's area, so the guard refuses them.
  • No value from Revit. These are the downpipes, 9 per housing file, and all fail the face test.
  • Which face. The snow guards (27.5 by 0.13 by 0.53 ft) show that Revit's value is the horizontal face.

Changes

  • reports/element-framing/RE-484-family-instance-covering-gross-area.md, docs/release-1.0-criteria.md, docs/contribution-map.md and changelog.d/fixed/1209-roofing-covering-gross-area.md.
  • src/ifc/saved_meshes.rs:
    • ceilings_without_area becomes coverings_without_area, taking the RevitClass to select.
    • The pass also selects the FamilyInstance coverings, requires one_part, and gives them one_piece_face_area.
    • The areas are collected for both kinds and written by add_covering_areas (formerly add_ceiling_areas).

Testing

Measure 43709928629 ran the code commit 049e4593 against its merge-base 340c8727: nordic, r2025, samples and holdout.

  • Gained. Qto_CoveringBaseQuantities.GrossArea equal rises by 12, 12, 13, 11, 13 and 11 on the two as-built office files and the four housing files: 72, all equal. different stays 0 on the housing and 1 on the office.
  • Nothing extra. "Values Revit does not write" is unchanged (1, 0, 2, 2 and 0, 3), and no covering Revit gives no value gains one.
  • Refused. The 10 vents (2 to 4 parts each, where Revit's value is one solid's) and the 36 downpipes (faces that do not agree, and no value from Revit) keep none. These are named and counted in RE-484 section 3.
  • What moves. 6 of 120 exports: those six files. Every sample of every release is identical, so the rule writes nothing on a model with no Revit export.
  • Held-out. All 65 held-out output files are identical.
  • Diagnostics. They move by exported.total_entities alone, one per covering given a new set.
  • Gates. same-project gates passes on 049e4593.
  • Rows. All five rows on W7: coverings' GrossArea: the BIM4LCA housing's 10 roof vents of several parts, where Revit's value is one solid's (RE-484), and the ceiling written as IfcSlab (#2074) #1209 are met or reported (RE-484 section 6).

The docs commit c8583cc5 changes no code: --carry-proof 43709928629.

Audit-honesty checklist

Legal and contribution hygiene

  • Apache-2.0. revit-ifc read and cited only (CLEANROOM.md source 5). No Autodesk SDK source or internals.

Breaking changes

None.

https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut

…ne-piece saved face, 22 of 22 equal on the BIM4LCA office, and the W7 line, contribution map, one-project rules and changelog say so (#1209) (RE-480)

Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
…ring-areas

# Conflicts:
#	src/ifc/saved_meshes.rs
… from their one-part saved mesh face, 72 of 72 equal on the BIM4LCA office and housing, and the W7 line, contribution map and changelog say so (#1209) (RE-484)

Claude-Session: https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 15, 2026 12:15
@DrunkOnJava
DrunkOnJava merged commit 7cbe982 into main Nov 15, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1209-roofing-covering-areas branch November 15, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant