Repository navigation
feat(elements): export roofs from element records as IfcRoof (#323) - #326
Merged
Merged
Conversation
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_9da033e2-b238-4237-b248-3b6e41d33bfc) |
This was referenced Sep 23, 2026
Roofs Revit's export decomposes into IfcSlab .ROOF. parts (7 of Snowdon's 20) are written whole
#323
Open
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
Roofs (
OST_Roofs, −2000035) are now a recovered element-record category and export asIfcRoofwith the record's bounding box. On Snowdon Towers all 20 placed roofs match anIfcRoofin Revit's own IFC4 export byTag.Motivation
#323. RE-39 exported stairs as aggregates and left roofs out, because Revit also writes some roofs as aggregates.
Changes
src/partition_element_records.rs:OST_ROOFSjoinsPRODUCT_RECORD_CATEGORIESandRECOVERED_CATEGORIESas classRoof.Roof→IFCROOFalready existed incategory_map.reports/element-framing/RE-39-stair-aggregates.md§5 "Roofs", the support-matrix row, README, status and CHANGELOG.Measurements (Snowdon Towers Architectural, local only)
IfcRoofbyTagRevit writes 13 of the roofs with a body and 7 as a bodiless
IfcRoofaggregating a same-TagIfcSlab.ROOF.. No decoded byte says which roofs take the second form, so rvt-rs writes every roof as oneIfcRoofwith its box and does not guess at the decomposition. Core Interior, the RE1 models, Einhoven,teste_export_2025and Projeto1 have no placed roof records and export unchanged.Testing
tools/check-local.shcargo +1.85.0 check --profile ci --all-targets,cargo +nightly check --manifest-path fuzz/Cargo.tomlpython -m ifcopenshell.validate(no issues, 127,432 instances) andtools/ci/ifc_schema_arity.pyon the Snowdon exportAudit-honesty checklist
experimental: no licensed CI file has roofs.Legal and contribution hygiene
Breaking changes
None.
PRODUCT_RECORD_CATEGORIESandRECOVERED_CATEGORIESgain one entry each, so their array lengths change.Related issues
Refs #323.